norma-library 0.6.85 → 0.6.87

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.
Files changed (90) hide show
  1. package/.storybook/main.ts +7 -0
  2. package/dist/esm/components/Box/interfaces.d.ts +1 -0
  3. package/dist/esm/components/Breadcrumb/index.d.ts +2 -2
  4. package/dist/esm/components/Breadcrumb/index.js +13 -9
  5. package/dist/esm/components/Breadcrumb/index.js.map +1 -1
  6. package/dist/esm/components/Breadcrumb/interface.d.ts +11 -6
  7. package/dist/esm/components/Breadcrumb/styles.d.ts +3 -3
  8. package/dist/esm/components/Breadcrumb/styles.js +3 -3
  9. package/dist/esm/components/Breadcrumb/styles.js.map +1 -1
  10. package/dist/esm/components/Icons.js +6 -7
  11. package/dist/esm/components/Icons.js.map +1 -1
  12. package/dist/esm/components/ProductCard/ProductCard.js +13 -11
  13. package/dist/esm/components/ProductCard/ProductCard.js.map +1 -1
  14. package/dist/esm/components/ProductCard/ProductCard.style.js +2 -2
  15. package/dist/esm/components/ProductCard/ProductCard.style.js.map +1 -1
  16. package/dist/esm/components/ServiceCard/ServiceCard.js +6 -6
  17. package/dist/esm/components/ServiceCard/ServiceCard.js.map +1 -1
  18. package/dist/esm/components/ServiceCard/ServiceCard.style.js +1 -1
  19. package/dist/esm/components/ServiceCard/ServiceCard.style.js.map +1 -1
  20. package/dist/esm/components/Svgs.d.ts +12 -0
  21. package/dist/esm/components/Svgs.js +36 -0
  22. package/dist/esm/components/Svgs.js.map +1 -1
  23. package/dist/esm/components/Typography/Text/interfaces.d.ts +1 -0
  24. package/dist/esm/components/Typography/Title/interfaces.d.ts +1 -0
  25. package/dist/esm/hooks/useClickOutside.d.ts +1 -1
  26. package/dist/esm/hooks/useClickOutside.js.map +1 -1
  27. package/dist/esm/interfaces/Icons.d.ts +4 -3
  28. package/dist/esm/interfaces/ProductCard.d.ts +15 -5
  29. package/dist/esm/interfaces/ServiceCard.d.ts +12 -4
  30. package/dist/esm/types/index.d.ts +3 -3
  31. package/dist/esm/types/index.js.map +1 -1
  32. package/package.json +24 -26
  33. package/src/components/Box/interfaces.ts +2 -0
  34. package/src/components/Breadcrumb/index.tsx +16 -11
  35. package/src/components/Breadcrumb/interface.ts +12 -6
  36. package/src/components/Breadcrumb/styles.tsx +10 -11
  37. package/src/components/Icons.tsx +12 -8
  38. package/src/components/ProductCard/ProductCard.style.ts +5 -2
  39. package/src/components/ProductCard/ProductCard.tsx +27 -27
  40. package/src/components/ServiceCard/ServiceCard.style.ts +0 -1
  41. package/src/components/ServiceCard/ServiceCard.tsx +6 -6
  42. package/src/components/Svgs.tsx +224 -2
  43. package/src/components/Typography/Text/interfaces.ts +3 -1
  44. package/src/components/Typography/Title/interfaces.ts +2 -0
  45. package/src/hooks/useClickOutside.tsx +1 -1
  46. package/src/index.ts +0 -2
  47. package/src/interfaces/Icons.ts +4 -3
  48. package/src/interfaces/ProductCard.ts +29 -20
  49. package/src/interfaces/ServiceCard.ts +19 -10
  50. package/src/stories/Accordion.stories.tsx +19 -19
  51. package/src/stories/Avatar.stories.tsx +32 -28
  52. package/src/stories/Badge.stories.tsx +17 -15
  53. package/src/stories/Box.stories.tsx +16 -12
  54. package/src/stories/Breadcrumb.stories.tsx +62 -18
  55. package/src/stories/Button.stories.tsx +24 -16
  56. package/src/stories/Card.stories.tsx +21 -13
  57. package/src/stories/ChatMessage.stories.tsx +10 -9
  58. package/src/stories/ChatMessageBalloon.stories.tsx +83 -66
  59. package/src/stories/CheckBox.stories.tsx +23 -23
  60. package/src/stories/DateInput.stories.tsx +15 -16
  61. package/src/stories/DatePicker.stories.tsx +17 -12
  62. package/src/stories/DropDown.stories.tsx +16 -16
  63. package/src/stories/IconButton.stories.tsx +45 -21
  64. package/src/stories/Modal.stories.tsx +49 -49
  65. package/src/stories/ModalStatus.stories.tsx +34 -18
  66. package/src/stories/MultiSelectInput.stories.tsx +30 -28
  67. package/src/stories/NormaChatMessageBalloon.stories.tsx +119 -82
  68. package/src/stories/Paper.stories.tsx +14 -14
  69. package/src/stories/ProductCard.stories.tsx +78 -9
  70. package/src/stories/ProgressBar.stories.tsx +27 -19
  71. package/src/stories/RadioGroup.stories.tsx +28 -21
  72. package/src/stories/RangerSlider.stories.tsx +43 -35
  73. package/src/stories/Select.stories.tsx +61 -33
  74. package/src/stories/SelectInput.stories.tsx +27 -25
  75. package/src/stories/ServiceCard.stories.tsx +43 -15
  76. package/src/stories/Table.stories.tsx +211 -276
  77. package/src/stories/Tabs.stories.tsx +17 -17
  78. package/src/stories/Tag.stories.tsx +22 -14
  79. package/src/stories/Text.stories.tsx +9 -9
  80. package/src/stories/TextField.stories.tsx +116 -35
  81. package/src/stories/TextInput.stories.tsx +14 -15
  82. package/src/stories/TimeLine.stories.tsx +22 -20
  83. package/src/stories/TimePicker.stories.tsx +54 -30
  84. package/src/stories/Title.stories.tsx +9 -9
  85. package/src/stories/UncontrolledTable.stories.tsx +196 -66
  86. package/src/stories/UncontrolledTabs.stories.tsx +28 -23
  87. package/src/types/index.ts +4 -3
  88. package/src/components/IconifyIcon.tsx +0 -25
  89. package/src/stories/IconifyIcon.stories.tsx +0 -31
  90. /package/src/stories/{Colors.stories.mdx → Colors.mdx} +0 -0
@@ -498,9 +498,231 @@ export const iconsSVG = {
498
498
  warning: (
499
499
  <>
500
500
  <g id="warning">
501
- <path strokeWidth="0" d="M27.5 55C12.34 55 0 42.66 0 27.5S12.34 0 27.5 0 55 12.34 55 27.5 42.66 55 27.5 55Zm0-48.89c-11.79 0-21.39 9.6-21.39 21.39s9.6 21.39 21.39 21.39 21.39-9.6 21.39-21.39S39.29 6.11 27.5 6.11Z"/>
502
- <path strokeWidth="0" d="M27.5 29.89a3.06 3.06 0 0 1-3.06-3.06v-8.71a3.06 3.06 0 1 1 6.12 0v8.71a3.06 3.06 0 0 1-3.06 3.06ZM27.5 40.32c-.81 0-1.59-.33-2.16-.9-.57-.57-.9-1.34-.9-2.16s.33-1.59.9-2.16c1.12-1.14 3.18-1.14 4.32 0 .57.57.9 1.37.9 2.16s-.33 1.59-.9 2.16-1.37.9-2.16.9Z"/>
501
+ <path strokeWidth="0" d="M27.5 55C12.34 55 0 42.66 0 27.5S12.34 0 27.5 0 55 12.34 55 27.5 42.66 55 27.5 55Zm0-48.89c-11.79 0-21.39 9.6-21.39 21.39s9.6 21.39 21.39 21.39 21.39-9.6 21.39-21.39S39.29 6.11 27.5 6.11Z" />
502
+ <path strokeWidth="0" d="M27.5 29.89a3.06 3.06 0 0 1-3.06-3.06v-8.71a3.06 3.06 0 1 1 6.12 0v8.71a3.06 3.06 0 0 1-3.06 3.06ZM27.5 40.32c-.81 0-1.59-.33-2.16-.9-.57-.57-.9-1.34-.9-2.16s.33-1.59.9-2.16c1.12-1.14 3.18-1.14 4.32 0 .57.57.9 1.37.9 2.16s-.33 1.59-.9 2.16-1.37.9-2.16.9Z" />
503
503
  </g>
504
504
  </>
505
505
  ),
506
+ olosAcademy: (
507
+ <svg xmlns="http://www.w3.org/2000/svg" width="" height="" viewBox="0 0 32.902 19.741">
508
+ <path
509
+ id="Icon_awesome-graduation-cap"
510
+ data-name="Icon awesome-graduation-cap"
511
+ d="M31.994,9.086,17.654,4.68a4.107,4.107,0,0,0-2.405,0L.908,9.086a1.21,1.21,0,0,0,0,2.344l2.5.768a4.051,4.051,0,0,0-.919,2.411,1.586,1.586,0,0,0-.131,2.726L1.045,23.24a.822.822,0,0,0,.8,1H4.732a.823.823,0,0,0,.8-1L4.223,17.334a1.582,1.582,0,0,0-.093-2.7,2.425,2.425,0,0,1,1.064-1.888l10.054,3.089a4.111,4.111,0,0,0,2.405,0L31.994,11.43a1.211,1.211,0,0,0,0-2.344ZM18.137,17.408a5.755,5.755,0,0,1-3.372,0L7.31,15.118l-.729,5.833c0,1.817,4.419,3.29,9.871,3.29s9.871-1.473,9.871-3.29l-.729-5.833-7.456,2.291Z"
512
+ transform="translate(0 -4.5)"
513
+ />
514
+ </svg>
515
+ ),
516
+ olosFinancial: (
517
+ <svg xmlns="http://www.w3.org/2000/svg" width="" height="" viewBox="0 0 13.457 23.782">
518
+ <path
519
+ id="Icon_metro-money"
520
+ data-name="Icon metro-money"
521
+ d="M17.935,16.865c-3-.78-3.964-1.579-3.964-2.834,0-1.44,1.328-2.451,3.567-2.451,2.352,0,3.224,1.123,3.3,2.775h2.92A5.26,5.26,0,0,0,19.52,9.32V6.427H15.556V9.281c-2.563.562-4.624,2.213-4.624,4.77,0,3.052,2.53,4.571,6.21,5.457,3.31.793,3.964,1.949,3.964,3.191,0,.905-.641,2.358-3.567,2.358-2.722,0-3.8-1.222-3.937-2.775H10.688c.165,2.894,2.325,4.512,4.869,5.06v2.867H19.52V27.368c2.57-.5,4.624-1.982,4.624-4.7,0-3.739-3.211-5.021-6.21-5.807Z"
522
+ transform="translate(-10.688 -6.427)"
523
+ fill=""
524
+ />
525
+ </svg>
526
+ ),
527
+ olosSupport: (
528
+ <svg xmlns="http://www.w3.org/2000/svg" width="" height="" viewBox="0 0 27.599 27.599">
529
+ <g id="Icon_feather-help-circle" data-name="Icon feather-help-circle" transform="translate(-1.5 -1.5)">
530
+ <path
531
+ id="Caminho_2020"
532
+ data-name="Caminho 2020"
533
+ d="M27.6,15.3A12.3,12.3,0,1,1,15.3,3,12.3,12.3,0,0,1,27.6,15.3Z"
534
+ transform="translate(0 0)"
535
+ fill="none"
536
+ stroke=""
537
+ strokeLinecap="round"
538
+ strokeLinejoin="round"
539
+ strokeWidth="3"
540
+ />
541
+ <path
542
+ id="Caminho_2021"
543
+ data-name="Caminho 2021"
544
+ d="M13.635,12.959a3.69,3.69,0,0,1,7.171,1.23c0,2.46-3.69,3.69-3.69,3.69"
545
+ transform="translate(-1.915 -1.349)"
546
+ fill="none"
547
+ stroke=""
548
+ strokeLinecap="round"
549
+ strokeLinejoin="round"
550
+ strokeWidth="3"
551
+ />
552
+ <path
553
+ id="Caminho_2022"
554
+ data-name="Caminho 2022"
555
+ d="M18,25.5h0"
556
+ transform="translate(-2.701 -4.051)"
557
+ fill="none"
558
+ stroke=""
559
+ strokeLinecap="round"
560
+ strokeLinejoin="round"
561
+ strokeWidth="3"
562
+ />
563
+ </g>
564
+ </svg>
565
+ ),
566
+ olosSettings: (
567
+ <svg xmlns="http://www.w3.org/2000/svg" width="" height="" viewBox="0 0 23.536 23.536">
568
+ <g id="Icon_feather-settings" data-name="Icon feather-settings" transform="translate(-0.5 -0.5)">
569
+ <path
570
+ id="Caminho_2023"
571
+ data-name="Caminho 2023"
572
+ d="M19.373,16.437A2.937,2.937,0,1,1,16.437,13.5,2.937,2.937,0,0,1,19.373,16.437Z"
573
+ transform="translate(-4.169 -4.169)"
574
+ fill="none"
575
+ stroke=""
576
+ strokeLinecap="round"
577
+ strokeLinejoin="round"
578
+ strokeWidth="2"
579
+ />
580
+ <path
581
+ id="Caminho_2024"
582
+ data-name="Caminho 2024"
583
+ d="M19.512,15.2a1.615,1.615,0,0,0,.323,1.782l.059.059a1.959,1.959,0,1,1-2.77,2.77l-.059-.059A1.628,1.628,0,0,0,14.3,20.912v.166a1.958,1.958,0,1,1-3.916,0V20.99a1.615,1.615,0,0,0-1.057-1.478,1.615,1.615,0,0,0-1.782.323l-.059.059a1.959,1.959,0,1,1-2.77-2.77l.059-.059A1.628,1.628,0,0,0,3.624,14.3H3.458a1.958,1.958,0,1,1,0-3.916h.088A1.615,1.615,0,0,0,5.024,9.331,1.615,1.615,0,0,0,4.7,7.55l-.059-.059a1.959,1.959,0,1,1,2.77-2.77l.059.059A1.615,1.615,0,0,0,9.253,5.1h.078a1.615,1.615,0,0,0,.979-1.478V3.458a1.958,1.958,0,1,1,3.916,0v.088A1.628,1.628,0,0,0,16.986,4.7l.059-.059a1.959,1.959,0,1,1,2.77,2.77l-.059.059a1.615,1.615,0,0,0-.323,1.782v.078a1.615,1.615,0,0,0,1.478.979h.166a1.958,1.958,0,1,1,0,3.916H20.99a1.615,1.615,0,0,0-1.478.979Z"
584
+ transform="translate(0 0)"
585
+ fill="none"
586
+ stroke=""
587
+ strokeLinecap="round"
588
+ strokeLinejoin="round"
589
+ strokeWidth="2"
590
+ />
591
+ </g>
592
+ </svg>
593
+ ),
594
+ olosConsumption: (
595
+ <svg xmlns="http://www.w3.org/2000/svg" width="" height="" viewBox="0 0 31.138 23.47">
596
+ <path
597
+ id="Icon_feather-cloud"
598
+ data-name="Icon feather-cloud"
599
+ d="M23.232,13.67H21.621a10.227,10.227,0,1,0-9.9,12.784H23.232a6.392,6.392,0,1,0,0-12.784Z"
600
+ transform="translate(0.014 -4.485)"
601
+ fill="none"
602
+ stroke=""
603
+ strokeLinecap="round"
604
+ strokeLinejoin="round"
605
+ strokeWidth="3"
606
+ />
607
+ </svg>
608
+ ),
609
+ olosMarketing: (
610
+ <svg xmlns="http://www.w3.org/2000/svg" width="" height="" viewBox="0 0 24.76 22.856">
611
+ <path
612
+ id="Icon_ionic-md-business"
613
+ data-name="Icon ionic-md-business"
614
+ d="M16.053,9.577V4.5H3.375V27.356h24.76V9.577ZM8.446,24.814H5.911V22.273H8.446Zm0-5.077H5.911V17.2H8.446Zm0-5.077H5.911V12.119H8.446Zm0-5.083H5.911V7.036H8.446Zm5.071,15.237H10.982V22.273h2.536Zm0-5.077H10.982V17.2h2.536Zm0-5.077H10.982V12.119h2.536Zm0-5.083H10.982V7.036h2.536ZM25.6,24.814H16.053V22.273h2.536V19.737H16.053V17.2h2.536V14.654H16.053V12.119H25.6ZM23.362,14.66H20.826V17.2h2.536Zm0,5.077H20.826v2.541h2.536Z"
615
+ transform="translate(-3.375 -4.5)"
616
+ fill=""
617
+ />
618
+ </svg>
619
+ ),
620
+ olosDownload: (
621
+ <>
622
+ <svg xmlns="http://www.w3.org/2000/svg" width="" height="" viewBox="0 0 21.592 21.592">
623
+ <g id="Icon_feather-download" data-name="Icon feather-download" transform="translate(-3 -3)">
624
+ <path
625
+ id="Caminho_2025"
626
+ data-name="Caminho 2025"
627
+ d="M23.092,22.5v4.132A2.066,2.066,0,0,1,21.026,28.7H6.566A2.066,2.066,0,0,1,4.5,26.632V22.5"
628
+ transform="translate(0 -5.605)"
629
+ fill="none"
630
+ stroke=""
631
+ strokeLinecap="round"
632
+ strokeLinejoin="round"
633
+ strokeWidth="3"
634
+ />
635
+ <path
636
+ id="Caminho_2026"
637
+ data-name="Caminho 2026"
638
+ d="M10.5,15l5.165,5.165L20.829,15"
639
+ transform="translate(-1.868 -3.27)"
640
+ fill="none"
641
+ stroke=""
642
+ strokeLinecap="round"
643
+ strokeLinejoin="round"
644
+ strokeWidth="3"
645
+ />
646
+ <path
647
+ id="Caminho_2027"
648
+ data-name="Caminho 2027"
649
+ d="M18,16.895V4.5"
650
+ transform="translate(-4.204)"
651
+ fill="none"
652
+ stroke=""
653
+ strokeLinecap="round"
654
+ strokeLinejoin="round"
655
+ strokeWidth="3"
656
+ />
657
+ </g>
658
+ </svg>
659
+ </>
660
+ ),
661
+ olosPartners: (
662
+ <svg xmlns="http://www.w3.org/2000/svg" width="" height="" viewBox="0 0 27.924 16.76">
663
+ <path
664
+ id="Icon_awesome-handshake"
665
+ data-name="Icon awesome-handshake"
666
+ d="M18.966,4.5H15.218a1.4,1.4,0,0,0-.942.367L9.987,8.793s-.009.013-.013.017a1.736,1.736,0,0,0-.092,2.443,1.82,1.82,0,0,0,2.448.118s.013,0,.017-.009l3.486-3.194a.7.7,0,0,1,.942,1.03l-1.139,1.043L21.99,15.4a3.144,3.144,0,0,1,.345.336V7.292L19.952,4.91a1.386,1.386,0,0,0-.986-.41Zm4.769,2.8V17.07a1.4,1.4,0,0,0,1.4,1.4h2.792V7.3ZM25.83,17.07a.7.7,0,1,1,.7-.7A.7.7,0,0,1,25.83,17.07ZM0,18.462H2.792a1.4,1.4,0,0,0,1.4-1.4V7.3H0Zm2.094-2.788a.7.7,0,1,1-.7.7A.7.7,0,0,1,2.094,15.674Zm19.019.812L14.6,11.2,13.29,12.4A3.141,3.141,0,0,1,9.045,7.768L12.614,4.5H8.957a1.394,1.394,0,0,0-.986.41L5.585,7.292v9.769h.8l3.949,3.573a2.792,2.792,0,0,0,3.927-.406l.009-.009.781.676a1.621,1.621,0,0,0,2.282-.236l1.37-1.684.236.192a1.394,1.394,0,0,0,1.963-.205l.414-.51a1.4,1.4,0,0,0-.2-1.968Z"
667
+ transform="translate(0 -4.5)"
668
+ fill=""
669
+ />
670
+ </svg>
671
+ ),
672
+ olosAnalytics: (
673
+ <svg xmlns="http://www.w3.org/2000/svg" width="" height="" viewBox="0 0 29.538 24">
674
+ <path
675
+ id="Icon_metro-chart-bars"
676
+ data-name="Icon metro-chart-bars"
677
+ d="M2.571,26.092H32.109v3.692H2.571Zm3.692-7.385H9.955v5.538H6.263ZM11.8,11.323h3.692V24.246H11.8Zm5.538,5.538h3.692v7.385H17.34ZM22.878,5.784h3.692V24.246H22.878Z"
678
+ transform="translate(-2.571 -5.784)"
679
+ fill=""
680
+ />
681
+ </svg>
682
+ ),
683
+ olosJourneyX: (
684
+ <>
685
+ <svg xmlns="http://www.w3.org/2000/svg" width="26.052" height="22.796" viewBox="0 0 26.052 22.796">
686
+ <path
687
+ id="Icon_metro-table"
688
+ data-name="Icon metro-table"
689
+ d="M2.571,3.856v22.8H28.623V3.856H2.571Zm9.77,14.654V13.626h6.513v4.885Zm6.513,1.628v4.885H12.34V20.139Zm0-13.026V12H12.34V7.113h6.513Zm-8.141,0V12H4.2V7.113h6.513ZM4.2,13.626h6.513v4.885H4.2V13.626Zm16.283,0h6.513v4.885H20.482V13.626Zm0-1.628V7.113h6.513V12ZM4.2,20.139h6.513v4.885H4.2V20.139Zm16.283,4.885V20.139h6.513v4.885Z"
690
+ transform="translate(-2.571 -3.856)"
691
+ fill=""
692
+ />
693
+ </svg>
694
+ </>
695
+ ),
696
+ olosAnywhere: (
697
+ <svg xmlns="http://www.w3.org/2000/svg" width="" height="" viewBox="0 0 21.917 30.298">
698
+ <g id="Grupo_2083" data-name="Grupo 2083" transform="translate(-3.363 -1.039)">
699
+ <path
700
+ id="Icon_material-phonelink-erase"
701
+ data-name="Icon material-phonelink-erase"
702
+ d="M27.026,1.5H13.254A2.762,2.762,0,0,0,10.5,4.254V8.386h2.754V5.631H27.026V27.666H13.254V24.912H10.5v4.131A2.762,2.762,0,0,0,13.254,31.8H27.026a2.762,2.762,0,0,0,2.754-2.754V4.254A2.762,2.762,0,0,0,27.026,1.5Z"
703
+ transform="translate(-4.5 -0.461)"
704
+ fill=""
705
+ />
706
+ <path
707
+ id="Icon_awesome-map-marker-alt"
708
+ data-name="Icon awesome-map-marker-alt"
709
+ d="M3.828,11.147C.6,6.467,0,5.986,0,4.266a4.266,4.266,0,0,1,8.532,0c0,1.72-.6,2.2-3.828,6.881a.533.533,0,0,1-.877,0Zm.438-5.1A1.778,1.778,0,1,0,2.489,4.266,1.778,1.778,0,0,0,4.266,6.044Z"
710
+ transform="translate(3.363 10.5)"
711
+ fill=""
712
+ />
713
+ </g>
714
+ </svg>
715
+ ),
716
+ olosVm5: (
717
+ <svg xmlns="http://www.w3.org/2000/svg" width="" height="" viewBox="0 0 27.95 24.456">
718
+ <path
719
+ id="Icon_awesome-headphones-alt"
720
+ data-name="Icon awesome-headphones-alt"
721
+ d="M8.734,16.225H7.861a3.5,3.5,0,0,0-3.494,3.5v3.481a3.5,3.5,0,0,0,3.494,3.5h.873a1.749,1.749,0,0,0,1.747-1.75V17.975A1.748,1.748,0,0,0,8.734,16.225Zm11.355,0h-.873a1.748,1.748,0,0,0-1.747,1.75v6.981a1.749,1.749,0,0,0,1.747,1.75h.873a3.5,3.5,0,0,0,3.494-3.5V19.725a3.5,3.5,0,0,0-3.494-3.5ZM13.975,2.25C6.164,2.25.249,8.753,0,16.225v6.114a.873.873,0,0,0,.873.873h.873a.873.873,0,0,0,.873-.873V16.225a11.355,11.355,0,0,1,22.709,0v6.114a.873.873,0,0,0,.873.873h.873a.873.873,0,0,0,.873-.873V16.225C27.7,8.753,21.786,2.25,13.975,2.25Z"
722
+ transform="translate(0 -2.25)"
723
+ fill=""
724
+ />
725
+ </svg>
726
+ )
727
+
506
728
  } as const;
@@ -1,6 +1,8 @@
1
+ import { JSX } from 'react'
2
+
1
3
  export interface TextProps {
2
4
  children: JSX.Element[] | JSX.Element | string
3
5
  className?: string
4
6
  size: string
5
7
  type: string
6
- }
8
+ }
@@ -1,3 +1,5 @@
1
+ import { JSX } from "react"
2
+
1
3
  export interface TextProps {
2
4
  children: JSX.Element[] | JSX.Element | string
3
5
  className?: string
@@ -1,6 +1,6 @@
1
1
  import { useEffect } from 'react';
2
2
 
3
- const useClickOutside = (ref: React.RefObject<HTMLElement>, callback: () => void) => {
3
+ const useClickOutside = (ref: React.RefObject<HTMLElement | null>, callback: () => void) => {
4
4
  const handleClickOutside = (event: MouseEvent) => {
5
5
  if (ref.current && !ref.current.contains(event.target as Node)) {
6
6
  callback();
package/src/index.ts CHANGED
@@ -32,7 +32,6 @@ import { ModalStatus } from './components/StatusModal/StatusModal';
32
32
  import { breakpoints } from './utils/styledBreakpoints';
33
33
 
34
34
  import { useTheme } from '@mui/material';
35
- import { IconifyIcon } from './components/IconifyIcon';
36
35
 
37
36
  export {
38
37
  Accordion,
@@ -44,7 +43,6 @@ export {
44
43
  DatePicker,
45
44
  getPalette,
46
45
  IconButton,
47
- IconifyIcon,
48
46
  Icons,
49
47
  Modal,
50
48
  Paper,
@@ -1,15 +1,16 @@
1
1
  import { ComponentProps } from 'react';
2
2
  import { IconScale, IconColors, IconType } from '../types';
3
3
  import { Svg } from '../components/Icons';
4
+ import { SvgIconComponent } from '@mui/icons-material';
4
5
 
5
6
  export interface IconsProps extends ComponentProps<typeof Svg> {
6
7
  useSymbol?: boolean;
7
8
  scale?: IconScale;
8
9
  color?: IconColors;
9
- width?: number;
10
- height?: number;
10
+ width?: number | string;
11
+ height?: number | string;
11
12
  fill?: string;
12
- icon: IconType;
13
+ icon: SvgIconComponent | IconType;
13
14
  }
14
15
 
15
16
  export interface SvgProps {
@@ -1,25 +1,34 @@
1
+ import { iconsSVG } from '../components/Svgs'
2
+ import { IconScale } from '../types'
3
+ import { SvgIconComponent } from '@mui/icons-material'
1
4
  import { ReactNode } from 'react'
2
5
 
3
6
  export interface ProductCardProps {
4
- // product?: string
5
- onClick?: () => void
6
- disabled?: boolean
7
- color: string
8
- iconColor: string
9
- iconSize: string
10
- iconName: string
11
- title: string
12
- description: string
13
- hasBorder?: boolean
14
- flaggable?: boolean
15
- flagged?: boolean
7
+ // product?: string
8
+ onClick?: () => void
9
+ disabled?: boolean
10
+ color: string
11
+ title: string
12
+ description: string
13
+ hasBorder?: boolean
14
+ favorite?: {
15
+ flagged: boolean
16
+ onFlag: () => any
16
17
  }
17
-
18
-
18
+ icon?: {
19
+ bgColor?: string;
20
+ iconColor?: string;
21
+ iconName?: keyof typeof iconsSVG | SvgIconComponent;
22
+ iconWidth?: string | number;
23
+ iconHeight?: string | number;
24
+ scale?: IconScale;
25
+ }
26
+ }
27
+
28
+
19
29
  export interface BgIconProps {
20
- $bColor: string
21
- children?: ReactNode
22
- className?: string
23
- color: string
24
- }
25
-
30
+ $bColor: string
31
+ children?: ReactNode
32
+ className?: string
33
+ color: string
34
+ }
@@ -1,12 +1,21 @@
1
+ import { SvgIconComponent } from "@mui/icons-material";
2
+ import { iconsSVG } from "../components/Svgs";
3
+ import { IconColors, IconScale } from "../types";
4
+
1
5
  export interface ServiceCardProps {
2
- // service: string;
3
- title?: string;
4
- description: string;
5
- onClick?: () => void;
6
- disabled?: boolean;
7
- color?: string;
6
+ // service: string;
7
+ title?: string;
8
+ description: string;
9
+ onClick?: () => void;
10
+ disabled?: boolean;
11
+ icon?: {
12
+ bgColor?: string;
8
13
  iconColor?: string;
9
- iconName?: string;
10
- borderColor?: string;
11
- iconSize?: string;
12
- }
14
+ iconName?: keyof typeof iconsSVG | SvgIconComponent;
15
+ iconWidth?: string | number;
16
+ iconHeight?: string | number;
17
+ scale?: IconScale;
18
+ }
19
+ borderColor?: string;
20
+ color?: IconColors | string;
21
+ }
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ import React from 'react'
2
2
 
3
- import type { Meta, StoryObj } from '@storybook/react';
4
- import { Accordion } from '../components';
5
- import { DataAccordion } from '../types';
6
- import { Typography } from '@mui/material';
3
+ import type { Meta, StoryObj } from '@storybook/react'
4
+ import { Accordion } from '../components'
5
+ import { DataAccordion } from '../types'
6
+ import { Typography } from '@mui/material'
7
7
 
8
8
  const data: DataAccordion[] = [
9
9
  {
@@ -11,8 +11,8 @@ const data: DataAccordion[] = [
11
11
  id: 'panel-1',
12
12
  children: (
13
13
  <Typography>
14
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
15
- lobortis eget.
14
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit
15
+ amet blandit leo lobortis eget.
16
16
  </Typography>
17
17
  ),
18
18
  },
@@ -21,12 +21,12 @@ const data: DataAccordion[] = [
21
21
  id: 'panel-2',
22
22
  children: (
23
23
  <Typography>
24
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo
25
- lobortis eget.
24
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit
25
+ amet blandit leo lobortis eget.
26
26
  </Typography>
27
27
  ),
28
28
  },
29
- ];
29
+ ]
30
30
 
31
31
  const meta = {
32
32
  title: 'Display/Accordion',
@@ -38,28 +38,28 @@ const meta = {
38
38
  argTypes: {
39
39
  data: data,
40
40
  },
41
- } satisfies Meta<typeof Accordion>;
41
+ } satisfies Meta<typeof Accordion>
42
42
 
43
- export default meta;
43
+ export default meta
44
44
 
45
- type Story = StoryObj<typeof meta>;
45
+ type Story = StoryObj<typeof meta>
46
46
 
47
47
  export const AccordionBasic = () => {
48
48
  return (
49
49
  <div style={{ width: '480px', marginBottom: 30 }}>
50
50
  <Accordion data={data} />
51
51
  </div>
52
- );
53
- };
52
+ )
53
+ }
54
54
 
55
- AccordionBasic.storyName = 'Accordion Basic';
55
+ AccordionBasic.storyName = 'Accordion Basic'
56
56
 
57
57
  export const AccordionExpanded = () => {
58
58
  return (
59
59
  <div style={{ width: '480px', marginBottom: 30 }}>
60
60
  <Accordion data={data} defaultExpanded="panel-1" />
61
61
  </div>
62
- );
63
- };
62
+ )
63
+ }
64
64
 
65
- AccordionExpanded.storyName = 'Accordion Expanded';
65
+ AccordionExpanded.storyName = 'Accordion Expanded'
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ import React from 'react'
2
2
 
3
- import type { Meta } from '@storybook/react';
4
- import { Avatar, Icons } from '../components';
5
- import { AvatarGroup, Stack } from '@mui/material';
6
- import { green, pink } from '@mui/material/colors';
3
+ import type { Meta } from '@storybook/react'
4
+ import { Avatar, Icons } from '../components'
5
+ import { AvatarGroup, Stack } from '@mui/material'
6
+ import { green, pink } from '@mui/material/colors'
7
7
 
8
8
  const meta = {
9
9
  title: 'Display/Avatar',
@@ -13,28 +13,28 @@ const meta = {
13
13
  },
14
14
  tags: ['autodocs'],
15
15
  argTypes: {},
16
- } satisfies Meta<typeof Avatar>;
16
+ } satisfies Meta<typeof Avatar>
17
17
 
18
- export default meta;
18
+ export default meta
19
19
 
20
20
  function stringToColor(string: string) {
21
- let hash = 0;
22
- let i;
21
+ let hash = 0
22
+ let i
23
23
 
24
24
  /* eslint-disable no-bitwise */
25
25
  for (i = 0; i < string.length; i += 1) {
26
- hash = string.charCodeAt(i) + ((hash << 5) - hash);
26
+ hash = string.charCodeAt(i) + ((hash << 5) - hash)
27
27
  }
28
28
 
29
- let color = '#';
29
+ let color = '#'
30
30
 
31
31
  for (i = 0; i < 3; i += 1) {
32
- const value = (hash >> (i * 8)) & 0xff;
33
- color += `00${value.toString(16)}`.slice(-2);
32
+ const value = (hash >> (i * 8)) & 0xff
33
+ color += `00${value.toString(16)}`.slice(-2)
34
34
  }
35
35
  /* eslint-enable no-bitwise */
36
36
 
37
- return color;
37
+ return color
38
38
  }
39
39
 
40
40
  function stringAvatar(name: string) {
@@ -43,7 +43,7 @@ function stringAvatar(name: string) {
43
43
  bgcolor: stringToColor(name),
44
44
  },
45
45
  children: `${name.split(' ')[0][0]}${name.split(' ')[1][0]}`,
46
- };
46
+ }
47
47
  }
48
48
 
49
49
  export const AvatarBasic = () => {
@@ -51,8 +51,8 @@ export const AvatarBasic = () => {
51
51
  <>
52
52
  <Avatar src="https://mui.com/static/images/avatar/2.jpg" />
53
53
  </>
54
- );
55
- };
54
+ )
55
+ }
56
56
 
57
57
  export const AvatarVariants = () => {
58
58
  return (
@@ -61,8 +61,8 @@ export const AvatarVariants = () => {
61
61
  <Avatar src="https://mui.com/static/images/avatar/2.jpg" variant="rounded" />
62
62
  <Avatar src="https://mui.com/static/images/avatar/3.jpg" />
63
63
  </Stack>
64
- );
65
- };
64
+ )
65
+ }
66
66
 
67
67
  export const AvatarLetters = () => {
68
68
  return (
@@ -73,20 +73,24 @@ export const AvatarLetters = () => {
73
73
  <Avatar {...stringAvatar('Tim Neutkens')} />
74
74
  </Stack>
75
75
  </>
76
- );
77
- };
76
+ )
77
+ }
78
78
 
79
79
  export const AvatarSizes = () => {
80
80
  return (
81
81
  <>
82
82
  <Stack direction="row" spacing={2}>
83
- <Avatar src="https://mui.com/static/images/avatar/1.jpg" variant="square" sx={{ width: 24, height: 24 }} />
83
+ <Avatar
84
+ src="https://mui.com/static/images/avatar/1.jpg"
85
+ variant="square"
86
+ sx={{ width: 24, height: 24 }}
87
+ />
84
88
  <Avatar src="https://mui.com/static/images/avatar/2.jpg" variant="rounded" />
85
89
  <Avatar src="https://mui.com/static/images/avatar/3.jpg" sx={{ width: 56, height: 56 }} />
86
90
  </Stack>
87
91
  </>
88
- );
89
- };
92
+ )
93
+ }
90
94
 
91
95
  export const AvatarWidthIcons = () => {
92
96
  return (
@@ -103,8 +107,8 @@ export const AvatarWidthIcons = () => {
103
107
  </Avatar>
104
108
  </Stack>
105
109
  </>
106
- );
107
- };
110
+ )
111
+ }
108
112
 
109
113
  export const AvatarGrouped = () => {
110
114
  return (
@@ -119,5 +123,5 @@ export const AvatarGrouped = () => {
119
123
  </AvatarGroup>
120
124
  </Stack>
121
125
  </>
122
- );
123
- };
126
+ )
127
+ }
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ import React from 'react'
2
2
 
3
- import type { Meta } from '@storybook/react';
4
- import { Avatar, Badge, Icons } from '../components';
5
- import { AvatarGroup, Stack } from '@mui/material';
3
+ import type { Meta } from '@storybook/react'
4
+ import { Avatar, Badge, Icons } from '../components'
5
+ import { AvatarGroup, Stack } from '@mui/material'
6
6
 
7
7
  const meta = {
8
8
  title: 'Display/Badge',
@@ -12,9 +12,9 @@ const meta = {
12
12
  },
13
13
  tags: ['autodocs'],
14
14
  argTypes: {},
15
- } satisfies Meta<typeof Badge>;
15
+ } satisfies Meta<typeof Badge>
16
16
 
17
- export default meta;
17
+ export default meta
18
18
 
19
19
  export const BadgeBasic = () => {
20
20
  return (
@@ -23,17 +23,19 @@ export const BadgeBasic = () => {
23
23
  <Icons icon="user" />
24
24
  </Badge>
25
25
  </>
26
- );
27
- };
26
+ )
27
+ }
28
28
 
29
29
  export const BadgeColors = () => {
30
30
  return (
31
31
  <Stack direction="row" spacing={2}>
32
- {['primary', 'secondary', 'default', 'error', 'info', 'success', 'warning'].map((color, key) => (
33
- <Badge badgeContent={4} color={color} key={key}>
34
- <Icons icon="user" />
35
- </Badge>
36
- ))}
32
+ {['primary', 'secondary', 'default', 'error', 'info', 'success', 'warning'].map(
33
+ (color, key) => (
34
+ <Badge badgeContent={4} color={color} key={key}>
35
+ <Icons icon="user" />
36
+ </Badge>
37
+ ),
38
+ )}
37
39
  </Stack>
38
- );
39
- };
40
+ )
41
+ }