@team_yumi/ramen 0.4.0-next.20231219-decd25b-61c12120c13e6cf198e03e06cba26629 → 0.4.0-next.20231227-5618a4f-e5f6b9ce4a5e711b5af6aa6a9a1429bf

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.
@@ -0,0 +1,84 @@
1
+ import React from 'react';
2
+ import { Collections } from './../../../models';
3
+ export interface IAction {
4
+ /**
5
+ * The key of the action
6
+ */
7
+ key: string;
8
+ /**
9
+ * Text for button
10
+ */
11
+ text?: string;
12
+ /**
13
+ * Type of button 'default', 'solid', 'tonal', 'outline', 'clear'
14
+ */
15
+ type?: (typeof Collections.IType)[number];
16
+ /**
17
+ * Icon for button
18
+ */
19
+ icon?: (typeof Collections.IIcon)[number];
20
+ /**
21
+ * State disabled for button
22
+ */
23
+ disabled?: boolean;
24
+ /**
25
+ * Loading state in button
26
+ */
27
+ loading?: boolean;
28
+ /**
29
+ * Render custom component
30
+ */
31
+ render?: (key: string) => React.ReactNode;
32
+ /**
33
+ * Event fired when button is clicked
34
+ */
35
+ onAction?: () => void;
36
+ }
37
+ export interface IProps {
38
+ /**
39
+ * Child elements to wrap
40
+ */
41
+ children?: React.ReactNode;
42
+ /**
43
+ * Custom component, which is placed below the title and subtitle
44
+ */
45
+ headerChildren?: React.ReactNode;
46
+ /**
47
+ * Icon for modal
48
+ */
49
+ icon?: (typeof Collections.IIcon)[number];
50
+ /**
51
+ * Title for modal
52
+ */
53
+ title?: string;
54
+ /**
55
+ * Subtitle for modal
56
+ */
57
+ subtitle?: string;
58
+ /**
59
+ * Size of modal 'xxs', 'xs', 's', 'm', 'l', 'xl'
60
+ */
61
+ size?: (typeof Collections.ISize)[number];
62
+ /**
63
+ * Show or hide modal
64
+ */
65
+ visible: boolean;
66
+ /**
67
+ * If true, show icon close
68
+ */
69
+ closable?: boolean;
70
+ /**
71
+ * Event fired when icon close is clicked
72
+ */
73
+ onClose?: () => void;
74
+ /**
75
+ * Arrays for show button
76
+ */
77
+ actions?: Array<IAction>;
78
+ /**
79
+ * Event fired on buttons
80
+ */
81
+ onActionClick?: (key: string) => void;
82
+ }
83
+ declare const XModal: React.FC<IProps>;
84
+ export default XModal;
package/index.css CHANGED
@@ -103,23 +103,22 @@
103
103
  gap: var(--xbox-padding-xl);
104
104
  }
105
105
 
106
-
107
106
  /* PDA Support GAP FIXED VALUES */
108
107
  .root-module_xbox__6Wa3G.root-module_pda-support__rBZrl {
109
108
  gap: var(--xbox-padding-none);
110
109
  }
111
110
 
112
111
  /* HORIZONATL GAP FIXED VALUES */
113
- .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_gap-none__5SZka>* {
112
+ .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_gap-none__5SZka > * {
114
113
  margin-left: var(--xbox-padding-none);
115
114
  margin-top: var(--xbox-padding-none);
116
115
  }
117
116
 
118
- .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_gap-xxs__2Pq9d>*:not(:first-child) {
117
+ .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_gap-xxs__2Pq9d > *:not(:first-child) {
119
118
  margin-left: var(--xbox-padding-xxs);
120
119
  }
121
120
 
122
- .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_flexWrap__4U4l5.root-module_gap-xxs__2Pq9d>* {
121
+ .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_flexWrap__4U4l5.root-module_gap-xxs__2Pq9d > * {
123
122
  margin-left: var(--xbox-padding-xxs);
124
123
  margin-top: var(--xbox-padding-xxs);
125
124
  }
@@ -129,11 +128,11 @@
129
128
  margin-top: calc(-1 * var(--xbox-padding-xxs));
130
129
  }
131
130
 
132
- .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_gap-xs__SYU-p>*:not(:first-child) {
131
+ .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_gap-xs__SYU-p > *:not(:first-child) {
133
132
  margin-left: var(--xbox-padding-xs);
134
133
  }
135
134
 
136
- .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_flexWrap__4U4l5.root-module_gap-xs__SYU-p>* {
135
+ .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_flexWrap__4U4l5.root-module_gap-xs__SYU-p > * {
137
136
  margin-left: var(--xbox-padding-xs);
138
137
  margin-top: var(--xbox-padding-xs);
139
138
  }
@@ -143,11 +142,11 @@
143
142
  margin-top: calc(-1 * var(--xbox-padding-xs));
144
143
  }
145
144
 
146
- .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_gap-s__ipYgr>*:not(:first-child) {
145
+ .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_gap-s__ipYgr > *:not(:first-child) {
147
146
  margin-left: var(--xbox-padding-s);
148
147
  }
149
148
 
150
- .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_flexWrap__4U4l5.root-module_gap-s__ipYgr>* {
149
+ .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_flexWrap__4U4l5.root-module_gap-s__ipYgr > * {
151
150
  margin-left: var(--xbox-padding-s);
152
151
  margin-top: var(--xbox-padding-s);
153
152
  }
@@ -157,11 +156,11 @@
157
156
  margin-top: calc(-1 * var(--xbox-padding-s));
158
157
  }
159
158
 
160
- .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_gap-m__CMXzK>*:not(:first-child) {
159
+ .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_gap-m__CMXzK > *:not(:first-child) {
161
160
  margin-left: var(--xbox-padding-m);
162
161
  }
163
162
 
164
- .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_flexWrap__4U4l5.root-module_gap-m__CMXzK>* {
163
+ .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_flexWrap__4U4l5.root-module_gap-m__CMXzK > * {
165
164
  margin-left: var(--xbox-padding-m);
166
165
  margin-top: var(--xbox-padding-m);
167
166
  }
@@ -171,11 +170,11 @@
171
170
  margin-top: calc(-1 * var(--xbox-padding-m));
172
171
  }
173
172
 
174
- .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_gap-l__FJTxi>*:not(:first-child) {
173
+ .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_gap-l__FJTxi > *:not(:first-child) {
175
174
  margin-left: var(--xbox-padding-l);
176
175
  }
177
176
 
178
- .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_flexWrap__4U4l5.root-module_gap-l__FJTxi>* {
177
+ .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_flexWrap__4U4l5.root-module_gap-l__FJTxi > * {
179
178
  margin-left: var(--xbox-padding-l);
180
179
  margin-top: var(--xbox-padding-l);
181
180
  }
@@ -185,11 +184,11 @@
185
184
  margin-top: calc(-1 * var(--xbox-padding-l));
186
185
  }
187
186
 
188
- .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_gap-xl__taf3g>*:not(:first-child) {
187
+ .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_gap-xl__taf3g > *:not(:first-child) {
189
188
  margin-left: var(--xbox-padding-xl);
190
189
  }
191
190
 
192
- .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_flexWrap__4U4l5.root-module_gap-xl__taf3g>* {
191
+ .root-module_pda-support__rBZrl.root-module_orientation-horizontal__8h-SN.root-module_flexWrap__4U4l5.root-module_gap-xl__taf3g > * {
193
192
  margin-left: var(--xbox-padding-xl);
194
193
  margin-top: var(--xbox-padding-xl);
195
194
  }
@@ -200,31 +199,31 @@
200
199
  }
201
200
 
202
201
  /* VERTICAL GAP FIXED VALUES */
203
- .root-module_pda-support__rBZrl.root-module_orientation-vertical__mSiJF.root-module_gap-none__5SZka>*:not(:first-child) {
202
+ .root-module_pda-support__rBZrl.root-module_orientation-vertical__mSiJF.root-module_gap-none__5SZka > *:not(:first-child) {
204
203
  margin-top: var(--xbox-padding-none);
205
204
  }
206
205
 
207
- .root-module_pda-support__rBZrl.root-module_orientation-vertical__mSiJF.root-module_gap-xxs__2Pq9d>*:not(:first-child) {
206
+ .root-module_pda-support__rBZrl.root-module_orientation-vertical__mSiJF.root-module_gap-xxs__2Pq9d > *:not(:first-child) {
208
207
  margin-top: var(--xbox-padding-xxs);
209
208
  }
210
209
 
211
- .root-module_pda-support__rBZrl.root-module_orientation-vertical__mSiJF.root-module_gap-xs__SYU-p>*:not(:first-child) {
210
+ .root-module_pda-support__rBZrl.root-module_orientation-vertical__mSiJF.root-module_gap-xs__SYU-p > *:not(:first-child) {
212
211
  margin-top: var(--xbox-padding-xs);
213
212
  }
214
213
 
215
- .root-module_pda-support__rBZrl.root-module_orientation-vertical__mSiJF.root-module_gap-s__ipYgr>*:not(:first-child) {
214
+ .root-module_pda-support__rBZrl.root-module_orientation-vertical__mSiJF.root-module_gap-s__ipYgr > *:not(:first-child) {
216
215
  margin-top: var(--xbox-padding-s);
217
216
  }
218
217
 
219
- .root-module_pda-support__rBZrl.root-module_orientation-vertical__mSiJF.root-module_gap-m__CMXzK>*:not(:first-child) {
218
+ .root-module_pda-support__rBZrl.root-module_orientation-vertical__mSiJF.root-module_gap-m__CMXzK > *:not(:first-child) {
220
219
  margin-top: var(--xbox-padding-m);
221
220
  }
222
221
 
223
- .root-module_pda-support__rBZrl.root-module_orientation-vertical__mSiJF.root-module_gap-l__FJTxi>*:not(:first-child) {
222
+ .root-module_pda-support__rBZrl.root-module_orientation-vertical__mSiJF.root-module_gap-l__FJTxi > *:not(:first-child) {
224
223
  margin-top: var(--xbox-padding-l);
225
224
  }
226
225
 
227
- .root-module_pda-support__rBZrl.root-module_orientation-vertical__mSiJF.root-module_gap-xl__taf3g>*:not(:first-child) {
226
+ .root-module_pda-support__rBZrl.root-module_orientation-vertical__mSiJF.root-module_gap-xl__taf3g > *:not(:first-child) {
228
227
  margin-top: var(--xbox-padding-xl);
229
228
  }
230
229
 
@@ -395,7 +394,6 @@
395
394
  display: none;
396
395
  }
397
396
 
398
-
399
397
  .root-module_background_thone-darkest__i0opu {
400
398
  background-color: var(--color-neutral-dark);
401
399
  }
@@ -424,37 +422,38 @@
424
422
  background-color: var(--neutral-dark-30);
425
423
  }
426
424
 
427
- .root-module_border_radius-xxs__fG-b3{
425
+ .root-module_background_thone-dark-10__UKKoN {
426
+ background-color: var(--neutral-dark-10);
427
+ }
428
+
429
+ .root-module_border_radius-xxs__fG-b3 {
428
430
  border-radius: var(--xbox-border-small);
429
431
  }
430
432
 
431
- .root-module_border_radius-xs__6rvkQ{
433
+ .root-module_border_radius-xs__6rvkQ {
432
434
  border-radius: var(--xbox-rounding-default);
433
435
  }
434
436
 
435
- .root-module_border_radius-s__HnVwV{
437
+ .root-module_border_radius-s__HnVwV {
436
438
  border-radius: var(--xbox-rounding-s);
437
439
  }
438
440
 
439
- .root-module_border_radius-m__Cz-lB{
441
+ .root-module_border_radius-m__Cz-lB {
440
442
  border-radius: var(--xbox-rounding-m);
441
443
  }
442
444
 
443
- .root-module_border_radius-l__PB9Hh{
445
+ .root-module_border_radius-l__PB9Hh {
444
446
  border-radius: var(--xbox-rounding-l);
445
447
  }
446
448
 
447
- .root-module_border_radius-xl__rGaRy{
449
+ .root-module_border_radius-xl__rGaRy {
448
450
  border-radius: var(--xbox-rounding-xl);
449
451
  }
450
452
 
451
- .root-module_border_radius-full__HuBVW{
453
+ .root-module_border_radius-full__HuBVW {
452
454
  border-radius: var(--xbox-rounding-circle);
453
455
  }
454
456
 
455
-
456
-
457
-
458
457
  .root-module_xtext__IcpGn {
459
458
  font-style: normal;
460
459
  font-family: var(--xtext-font);
@@ -3625,7 +3624,7 @@
3625
3624
  background-color: transparent;
3626
3625
  }
3627
3626
 
3628
- .root-module_xmodal__IIep8 {
3627
+ .root-module_x-modal__bOyFq {
3629
3628
  position: fixed;
3630
3629
  top: 0px;
3631
3630
  left: 0px;
@@ -3635,41 +3634,41 @@
3635
3634
  display: none;
3636
3635
  }
3637
3636
 
3638
- .root-module_xmodal__IIep8.root-module_xmodal-visible__rNM4C {
3637
+ .root-module_x-modal__bOyFq.root-module_x-modal-visible__kkdBb {
3639
3638
  display: flex;
3640
3639
  flex-direction: column;
3641
3640
  justify-content: flex-end;
3642
3641
  }
3643
3642
 
3644
- .root-module_xmodal-size_xl__uHWRl.root-module_xmodal-visible__rNM4C .root-module_xmodal__modal-show__vB6WU {
3643
+ .root-module_x-modal-size_xl__bYyI9.root-module_x-modal-visible__kkdBb .root-module_x-modal__modal-show__ygPq9 {
3645
3644
  height: 95%;
3646
3645
  }
3647
3646
 
3648
- .root-module_xmodal-size_l__-Np16.root-module_xmodal-visible__rNM4C .root-module_xmodal__modal-show__vB6WU {
3647
+ .root-module_x-modal-size_l__3Ur5b.root-module_x-modal-visible__kkdBb .root-module_x-modal__modal-show__ygPq9 {
3649
3648
  height: 85%;
3650
3649
  }
3651
3650
 
3652
- .root-module_xmodal-size_m__wi3d-.root-module_xmodal-visible__rNM4C .root-module_xmodal__modal-show__vB6WU {
3651
+ .root-module_x-modal-size_m__qnsVl.root-module_x-modal-visible__kkdBb .root-module_x-modal__modal-show__ygPq9 {
3653
3652
  height: 70%;
3654
3653
  }
3655
3654
 
3656
- .root-module_xmodal-size_s__qLBMt.root-module_xmodal-visible__rNM4C .root-module_xmodal__modal-show__vB6WU {
3655
+ .root-module_x-modal-size_s__9YkzV.root-module_x-modal-visible__kkdBb .root-module_x-modal__modal-show__ygPq9 {
3657
3656
  height: 415px;
3658
3657
  }
3659
3658
 
3660
- .root-module_xmodal-size_xs__jgYyX.root-module_xmodal-visible__rNM4C .root-module_xmodal__modal-show__vB6WU {
3659
+ .root-module_x-modal-size_xs__-1-Vc.root-module_x-modal-visible__kkdBb .root-module_x-modal__modal-show__ygPq9 {
3661
3660
  height: 352px;
3662
3661
  }
3663
3662
 
3664
- .root-module_xmodal-size_xxs__sqPRk.root-module_xmodal-visible__rNM4C .root-module_xmodal__modal-show__vB6WU {
3663
+ .root-module_x-modal-size_xxs__DcvRv.root-module_x-modal-visible__kkdBb .root-module_x-modal__modal-show__ygPq9 {
3665
3664
  height: 250px;
3666
3665
  }
3667
3666
 
3668
- .root-module_xmodal__IIep8.root-module_xmodal-visible__rNM4C .root-module_xmodal__backdrop__6xGWs {
3667
+ .root-module_x-modal__bOyFq.root-module_x-modal-visible__kkdBb .root-module_x-modal__backdrop__Kj2dm {
3669
3668
  display: block;
3670
3669
  }
3671
3670
 
3672
- .root-module_xmodal__modal__iutrg {
3671
+ .root-module_x-modal__modal__4ywZm {
3673
3672
  height: 0;
3674
3673
  position: relative;
3675
3674
  background-color: var(--color-neutral-lightest);
@@ -3681,7 +3680,7 @@
3681
3680
  justify-content: space-between;
3682
3681
  }
3683
3682
 
3684
- .root-module_xmodal__backdrop__6xGWs {
3683
+ .root-module_x-modal__backdrop__Kj2dm {
3685
3684
  position: fixed;
3686
3685
  top: 0px;
3687
3686
  left: 0px;
@@ -3691,58 +3690,64 @@
3691
3690
  opacity: 0.6;
3692
3691
  }
3693
3692
 
3694
- .root-module_xmodal__modal__iutrg > .root-module_xmodal__modal__close__87-1a {
3693
+ .root-module_x-modal__modal__4ywZm > .root-module_x-modal__modal__close__2-hP- {
3695
3694
  position: absolute;
3696
- right: var(--xbox-padding-m);
3697
- top: var(--xbox-padding-m);
3695
+ right: var(--xbox-padding-l);
3696
+ top: var(--xbox-padding-l);
3698
3697
  border-radius: 50%;
3699
3698
  }
3700
3699
 
3701
- .root-module_xmodal__modal__iutrg > .root-module_xmodal__modal__close__87-1a > button > div {
3700
+ .root-module_x-modal__modal__4ywZm > .root-module_x-modal__modal__close__2-hP- > button > div {
3702
3701
  background-color: var(--color-neutral-light);
3703
3702
  padding: 4px;
3704
3703
  border-radius: 50%;
3705
3704
  }
3706
3705
 
3707
- .root-module_xmodal__modal__iutrg > .root-module_xmodal__modal__header__FtI0L > .root-module_xmodal__modal__header__icon__s-sye {
3708
- padding-bottom: 4px;
3706
+ .root-module_x-modal__modal__header__icon__KbIDv, .root-module_x-modal__modal__header__icon__KbIDv > div{
3707
+ height: 36px;
3708
+ width: 36px;
3709
+ }
3710
+
3711
+ .root-module_x-modal__modal__4ywZm > .root-module_x-modal__modal__header__RlJEZ > .root-module_x-modal__modal__header__icon__KbIDv {
3712
+ padding-bottom: var(--xbox-padding-s);
3709
3713
  display: block;
3710
3714
  }
3711
3715
 
3712
- .root-module_xmodal__modal__iutrg > .root-module_xmodal__modal__header__FtI0L > .root-module_xmodal__modal__header__title__sYCME {
3713
- padding-top: 24px;
3716
+ .root-module_x-modal__modal__4ywZm > .root-module_x-modal__modal__header__RlJEZ > .root-module_x-modal__modal__header__title__WQZg7 {
3714
3717
  display: block;
3715
3718
  -webkit-user-select: none;
3716
3719
  -moz-user-select: none;
3717
3720
  user-select: none;
3718
3721
  }
3719
3722
 
3720
- .root-module_xmodal__modal__iutrg > .root-module_xmodal__modal__header__FtI0L > .root-module_xmodal__modal__header__subtitle__xPXVt {
3723
+ .root-module_x-modal__modal__4ywZm > .root-module_x-modal__modal__header__RlJEZ > .root-module_x-modal__modal__header__subtitle__2KWGW {
3721
3724
  display: block;
3722
3725
  padding-top: var(--xbox-padding-xs);
3723
3726
  opacity: 0.5;
3724
3727
  }
3725
3728
 
3726
- .root-module_xmodal__modal__iutrg > .root-module_xmodal__modal__header__FtI0L > .root-module_xmodal__modal__header__children__rTV29 {
3729
+ .root-module_x-modal__modal__4ywZm > .root-module_x-modal__modal__header__RlJEZ > .root-module_x-modal__modal__header__children__RYX9d {
3727
3730
  padding-top: var(--xbox-padding-xs);
3728
3731
  }
3729
3732
 
3730
- .root-module_xmodal__modal__iutrg > .root-module_xmodal__modal__header__FtI0L {
3733
+ .root-module_x-modal__modal__4ywZm > .root-module_x-modal__modal__header__RlJEZ {
3731
3734
  padding: 0 var(--xbox-padding-xl);
3732
- padding-top: 32px;
3733
- padding-bottom: 8px;
3735
+ padding-top: 24px;
3736
+ padding-bottom: 16px;
3734
3737
  }
3735
3738
 
3736
- .root-module_xmodal__modal__iutrg > .root-module_xmodal__modal__body__eiE3Y {
3739
+ .root-module_x-modal__modal__4ywZm > .root-module_x-modal__modal__body__bBjAl {
3737
3740
  padding: var(--xbox-padding-xl);
3741
+ padding-top: 0;
3738
3742
  overflow: auto;
3739
3743
  flex: 1;
3740
3744
  }
3741
3745
 
3742
- .root-module_xmodal__modal__iutrg > .root-module_xmodal__modal__actions__hybm9 {
3746
+ .root-module_x-modal__modal__4ywZm > .root-module_x-modal__modal__actions__cGHKS {
3743
3747
  display: block;
3744
3748
  padding: var(--xbox-padding-xl);
3745
3749
  margin-bottom: env(safe-area-inset-bottom);
3750
+ padding-bottom: 32px;
3746
3751
  }
3747
3752
 
3748
3753
  .root-module_xselect__eYomf {