@team_yumi/ramen 0.4.0-next.20231120-0abf65f-d0d20f04b2c100ac8f48fd12954c9396 → 0.4.0-next.20231122-d263823-a18fd9e3731f8dd2df6191ed42cd9ab1

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,8 +1,17 @@
1
1
  import React from 'react';
2
2
  import { Collections } from './../../../models';
3
3
  export interface IProps {
4
+ /**
5
+ * Icon name
6
+ */
4
7
  icon?: (typeof Collections.IIcon)[number];
8
+ /**
9
+ * Icon size
10
+ */
5
11
  size?: (typeof Collections.ISize)[number];
12
+ /**
13
+ * Icon color can be any color from the palette fundamentals
14
+ */
6
15
  color?: (typeof Collections.IIconColor)[number];
7
16
  }
8
17
  declare const XIcon: React.FC<IProps>;
@@ -3,6 +3,7 @@ import { Collections } from '@yumi/models';
3
3
  export interface IProps {
4
4
  showNotApplicable: boolean;
5
5
  size?: (typeof Collections.IDecisionSize)[number];
6
+ width?: (typeof Collections.IWidth)[number];
6
7
  disabled?: boolean;
7
8
  checkText?: string;
8
9
  refuseText?: string;
package/index.core.d.ts CHANGED
@@ -4,7 +4,7 @@ declare const _default: {
4
4
  XCardCounter: import("react").FC<import("./components/core/xcard-counter/root").IProps>;
5
5
  XBox: import("react").FC<import("./components/core/xbox/root").IProps>;
6
6
  XText: import("react").FC<import("./components/core/xtext/root").IProps>;
7
- XIcon: import("react").FC<import("./components/core/xicon/root").IProps>;
7
+ XIcon: import("react").FC<import("./components/core/x-icon/root").IProps>;
8
8
  XButton: import("react").FC<import("./components/core/xbutton/root").IProps>;
9
9
  XButtonIcon: import("react").FC<import("./components/core/xbuttonicon/root").IProps>;
10
10
  XBadge: import("react").FC<import("./components/core/xbadge/root").IProps>;
package/index.css CHANGED
@@ -506,41 +506,44 @@
506
506
  color: var(--color-neutral-lightest);
507
507
  }
508
508
 
509
- .root-module_xicon__qDYRt {
509
+ .root-module_x-icon__YwX20 {
510
510
  display: inline-block;
511
- max-height: var(--xicon-size-xl);
511
+ box-sizing: content-box;
512
512
  max-width: var(--xicon-size-xl);
513
513
  color: var(--color-neutral-darkest);
514
- box-sizing: content-box;
514
+ max-height: var(--xicon-size-xl);
515
515
  }
516
- .root-module_icon_size-xs__YasmD {
516
+
517
+ .root-module_icon_size-xs__VJ8Yg {
517
518
  height: var(--xicon-size-xs);
518
519
  width: var(--xicon-size-xs);
519
520
  }
520
- .root-module_icon_size-s__spR6F {
521
+
522
+ .root-module_icon_size-s__QusCx {
521
523
  height: var(--xicon-size-s);
522
524
  width: var(--xicon-size-s);
523
525
  }
524
- .root-module_icon_size-m__q8qe4 {
526
+
527
+ .root-module_icon_size-m__8yA3P {
525
528
  height: var(--xicon-size-m);
526
529
  width: var(--xicon-size-m);
527
530
  }
528
- .root-module_icon_size-l__vdZri {
531
+
532
+ .root-module_icon_size-l__MPjv2 {
529
533
  height: var(--xicon-size-l);
530
534
  width: var(--xicon-size-l);
531
535
  }
532
- .root-module_icon_size-xl__pWJJQ {
536
+
537
+ .root-module_icon_size-xl__XlQMm {
533
538
  height: var(--xicon-size-xl);
534
539
  width: var(--xicon-size-xl);
535
540
  }
536
- .root-module_icon-spin__bKBJP {
537
- /* display: flex; */
538
- }
539
- .root-module_icon-spin__bKBJP > svg {
540
- animation: root-module_spin__4ShxB infinite 1s linear;
541
+
542
+ .root-module_icon-spin__uqWV8 > svg {
543
+ animation: root-module_spin__7LPA9 infinite 1s linear;
541
544
  }
542
545
 
543
- @keyframes root-module_spin__4ShxB {
546
+ @keyframes root-module_spin__7LPA9 {
544
547
  from {
545
548
  transform: rotate(0deg);
546
549
  }
@@ -549,67 +552,61 @@
549
552
  }
550
553
  }
551
554
 
552
-
553
- /* colors */
554
- .root-module_xicon--color-gray__i4eGf {
555
+ /**
556
+ * Colors
557
+ */
558
+ .root-module_x-icon--color-gray__jRldv {
555
559
  color: var(--color-neutral-light);
556
560
  }
557
561
 
558
- .root-module_xicon--color-black__dkBZA {
562
+ .root-module_x-icon--color-disabled__pL0O- {
563
+ color: var(--neutral-dark-50);
564
+ }
565
+
566
+ .root-module_x-icon--color-black__k2ZgM {
559
567
  color: var(--color-neutral-darkest);
560
568
  }
561
569
 
562
- /* color green */
563
- .root-module_xicon--color-green__soVpr {
570
+ .root-module_x-icon--color-green__2cdrt {
564
571
  color: var(--xicon-color-green);
565
572
  }
566
573
 
567
- /* color sky blue */
568
- .root-module_xicon--color-sky-blue__qmBYA {
574
+ .root-module_x-icon--color-sky-blue__mLai3 {
569
575
  color: var(--xicon-color-sky-blue);
570
576
  }
571
577
 
572
- /* color orange */
573
- .root-module_xicon--color-orange__pDL4U {
578
+ .root-module_x-icon--color-orange__-T6TO {
574
579
  color: var(--xicon-color-orange);
575
580
  }
576
581
 
577
- /* color red */
578
- .root-module_xicon--color-red__LNA1l {
582
+ .root-module_x-icon--color-red__deo-Z {
579
583
  color: var(--xicon-color-red);
580
584
  }
581
585
 
582
- /* color purple */
583
- .root-module_xicon--color-purple__9tpjx {
586
+ .root-module_x-icon--color-purple__0QLxp {
584
587
  color: var(--xicon-color-purple);
585
588
  }
586
589
 
587
- /* color pink */
588
- .root-module_xicon--color-pink__rbZmZ {
590
+ .root-module_x-icon--color-pink__sti-5 {
589
591
  color: var(--xicon-color-pink);
590
592
  }
591
593
 
592
- /* color green check */
593
- .root-module_xicon--color-green-check__8Io7V {
594
+ .root-module_x-icon--color-green-check__IsMGW {
594
595
  color: var(--xicon-color-green-check);
595
596
  }
596
597
 
597
- /* color red refuse */
598
- .root-module_xicon--color-red-refuse__LAOo3 {
598
+ .root-module_x-icon--color-red-refuse__tSafm {
599
599
  color: var(--xicon-color-red-refuse);
600
600
  }
601
601
 
602
- /* color yellow */
603
- .root-module_xicon--color-yellow__Dfi5S {
602
+ .root-module_x-icon--color-yellow__LyUe9 {
604
603
  color: var(--xicon-color-yellow);
605
604
  }
606
605
 
607
- /* color yellow */
608
- .root-module_xicon--color-turquoise__qmGHm {
606
+ .root-module_x-icon--color-turquoise__xokP5 {
609
607
  color: var(--xicon-color-turquoise);
610
608
  }
611
609
 
612
-
613
610
  .root-module_xbutton__isOXp {
614
611
  display: flex;
615
612
  align-items: center;