@team_yumi/ramen 0.4.0-next.20231206-6253219-dcdcb2fadbf4dcc8f2a3a4b8cc73f586 → 0.4.0-next.20231212-3c46c0e-13ac97040b546197bbc724b38edd52dc

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,10 +1,25 @@
1
1
  import React from 'react';
2
2
  import { Collections } from '../../../models';
3
3
  export interface IProps {
4
+ /**
5
+ * Child Elements
6
+ */
4
7
  children?: React.ReactNode;
8
+ /**
9
+ * Set title for alert
10
+ */
5
11
  title?: string;
12
+ /**
13
+ * Show or hide icon
14
+ */
6
15
  showIcon?: boolean;
16
+ /**
17
+ * Set style for alert 'success', 'success-neutral', 'info', 'info-neutral', 'warning', 'warning-neutral', 'error' or 'error-neutral'
18
+ */
7
19
  type?: (typeof Collections.IAlertType)[number];
20
+ /**
21
+ * Set icon
22
+ */
8
23
  icon?: (typeof Collections.IIcon)[number];
9
24
  }
10
25
  declare const XAlert: React.FC<IProps>;
package/index.core.d.ts CHANGED
@@ -26,7 +26,7 @@ declare const _default: {
26
26
  XCheckbox: import("react").FC<import("./components/core/xcheckbox/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
- XAlert: import("react").FC<import("./components/core/xalert/root").IProps>;
29
+ XAlert: import("react").FC<import("./components/core/x-alert/root").IProps>;
30
30
  XTextArea: import("react").FC<import("./components/core/x-text-area/root").IProps>;
31
31
  XFormItem: import("react").FC<import("./components/core/xform-item/root").IProps>;
32
32
  XList: typeof XList;
package/index.css CHANGED
@@ -731,6 +731,22 @@
731
731
  color: var(--xicon-color-turquoise);
732
732
  }
733
733
 
734
+ .root-module_x-icon--color-info-blue__7AESi {
735
+ color: var(--global-info-blue-60);
736
+ }
737
+
738
+ .root-module_x-icon--color-error-red__5JsnX {
739
+ color: var(--global-error-red-60);
740
+ }
741
+
742
+ .root-module_x-icon--color-success-green__iHsLc {
743
+ color: var(--global-success-green-60);
744
+ }
745
+
746
+ .root-module_x-icon--color-warning-orange__-W-6d {
747
+ color: var(--global-warning-orange-60);
748
+ }
749
+
734
750
  .root-module_xbutton__isOXp {
735
751
  display: flex;
736
752
  align-items: center;
@@ -2231,65 +2247,56 @@
2231
2247
  height: var(--xicon-size-xl);
2232
2248
  width: var(--xicon-size-xl);
2233
2249
  }
2234
- .root-module_xalert__Vf7Mh {
2250
+ .root-module_x-alert__Y8VV3 {
2235
2251
  border: 1px solid transparent;
2236
2252
  display: flex;
2237
2253
  align-items: center;
2238
2254
  border-radius: var(--xbox-rounding-l);
2239
2255
  }
2240
2256
 
2241
- .root-module_xalert__Vf7Mh.root-module_xalert-neutral__NrsGf {
2242
- border-color: var(--color-neutral-light);
2243
- background-color: var(--color-neutral-lightest);
2244
- }
2245
-
2246
- .root-module_xalert__Vf7Mh.root-module_xalert-neutral__NrsGf > div:nth-child(1) > div {
2247
- color: var(--color-neutral-medium);
2248
- }
2249
-
2250
- .root-module_xalert__Vf7Mh.root-module_xalert-success__jhm77 {
2251
- border-color: var(--color-success-light);
2252
- background-color: var(--color-success-lightest);
2257
+ .root-module_x-alert__Y8VV3.root-module_x-alert-success__Kwyp8 {
2258
+ border-color: var(--global-success-green-20);
2259
+ background-color: var(--global-success-green-10);
2253
2260
  }
2254
2261
 
2255
- .root-module_xalert__Vf7Mh.root-module_xalert-success__jhm77 > div:nth-child(1) > div {
2256
- color: var(--color-success-medium);
2262
+ .root-module_x-alert__Y8VV3.root-module_x-alert-success-neutral__UYcN2 {
2263
+ border-color: var(--global-success-green-20);
2257
2264
  }
2258
2265
 
2259
- .root-module_xalert__Vf7Mh.root-module_xalert-info__Z4H7f {
2260
- border-color: var(--color-info-light);
2261
- background-color: var(--color-info-lightest);
2266
+ .root-module_x-alert__Y8VV3.root-module_x-alert-info__XTWF1 {
2267
+ border-color: var(--global-info-blue-20);
2268
+ background-color: var(--global-info-blue-10);
2262
2269
  }
2263
2270
 
2264
- .root-module_xalert__Vf7Mh.root-module_xalert-info__Z4H7f > div:nth-child(1) > div {
2265
- color: var(--color-info-medium);
2271
+ .root-module_x-alert__Y8VV3.root-module_x-alert-info-neutral__rVGRp {
2272
+ border-color: var(--global-info-blue-20);
2266
2273
  }
2267
2274
 
2268
- .root-module_xalert__Vf7Mh.root-module_xalert-error__xyEdz {
2269
- border-color: var(--color-error-light);
2270
- background-color: var(--color-error-lightest);
2275
+ .root-module_x-alert__Y8VV3.root-module_x-alert-error__Pcrh9 {
2276
+ border-color: var(--global-error-red-20);
2277
+ background-color: var(--global-error-red-10);
2271
2278
  }
2272
2279
 
2273
- .root-module_xalert__Vf7Mh.root-module_xalert-error__xyEdz > div:nth-child(1) > div {
2274
- color: var(--color-error-medium);
2280
+ .root-module_x-alert__Y8VV3.root-module_x-alert-error-neutral__8onSX {
2281
+ border-color: var(--global-error-red-20);
2275
2282
  }
2276
2283
 
2277
- .root-module_xalert__Vf7Mh.root-module_xalert-warning__nGXLU {
2278
- border-color: var(--color-warning-light);
2279
- background-color: var(--color-warning-lightest);
2284
+ .root-module_x-alert__Y8VV3.root-module_x-alert-warning__7so2C {
2285
+ border-color: var(--global-warning-orange-20);
2286
+ background-color: var(--global-warning-orange-10);
2280
2287
  }
2281
2288
 
2282
- .root-module_xalert__Vf7Mh.root-module_xalert-warning__nGXLU > div:nth-child(1) > div {
2283
- color: var(--color-warning-medium);
2289
+ .root-module_x-alert__Y8VV3.root-module_x-alert-warning-neutral__pZ4ni {
2290
+ border-color: var(--global-warning-orange-20);
2284
2291
  }
2285
2292
 
2286
- .root-module_xalert__Vf7Mh > div:nth-child(1) {
2293
+ .root-module_x-alert__Y8VV3 > div:nth-child(1) {
2287
2294
  display: none;
2288
2295
  padding-top: 3px;
2289
2296
  padding-left: var(--xbox-padding-m);
2290
2297
  }
2291
2298
 
2292
- .root-module_xalert__Vf7Mh > div:nth-child(2) {
2299
+ .root-module_x-alert__Y8VV3 > div:nth-child(2) {
2293
2300
  width: 100%;
2294
2301
  display: block;
2295
2302
  padding-top: 16px;
@@ -2298,32 +2305,32 @@
2298
2305
  padding-bottom: var(--xbox-padding-m);
2299
2306
  }
2300
2307
 
2301
- .root-module_xalert-with_icon__kUABx > div:nth-child(1) {
2308
+ .root-module_x-alert-with_icon__Lrg-Q > div:nth-child(1) {
2302
2309
  display: block;
2303
2310
  }
2304
2311
 
2305
- .root-module_xalert-with_icon__kUABx > div:nth-child(2) {
2312
+ .root-module_x-alert-with_icon__Lrg-Q > div:nth-child(2) {
2306
2313
  width: 100%;
2307
2314
  display: block;
2308
2315
  padding-left: 6px;
2309
2316
  padding-top: var(--xbox-padding-m);
2310
2317
  }
2311
2318
 
2312
- .root-module_xalert-with_title__hffaQ > div:nth-child(2) {
2319
+ .root-module_x-alert-with_title__ekM7l > div:nth-child(2) {
2313
2320
  padding-top: 16px;
2314
2321
  }
2315
2322
 
2316
- .root-module_xalert-with_title__hffaQ .root-module_xalert__header__f0Wxr {
2323
+ .root-module_x-alert-with_title__ekM7l .root-module_x-alert__header__BHK9n {
2317
2324
  display: block;
2318
- padding-bottom: var(--xbox-padding-xs);
2325
+ padding-bottom: var(--xbox-padding-xxs);
2319
2326
  padding-top: 2px;
2320
2327
  }
2321
2328
 
2322
- .root-module_xalert__header__f0Wxr {
2329
+ .root-module_x-alert__header__BHK9n {
2323
2330
  display: none;
2324
2331
  }
2325
2332
 
2326
- .root-module_xalert__body__Do9mm {
2333
+ .root-module_x-alert__body__hmKDK {
2327
2334
  display: block;
2328
2335
  }
2329
2336