@design-system-rte/core 1.5.0 → 1.6.0

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 (81) hide show
  1. package/assets/icons/arrow_compare.svg +3 -0
  2. package/assets/icons/company.svg +3 -0
  3. package/assets/icons/contact_filled.svg +3 -0
  4. package/assets/icons/contact_outlined.svg +3 -0
  5. package/assets/icons/export_xls_filled.svg +3 -0
  6. package/assets/icons/export_xls_outlined.svg +6 -0
  7. package/assets/icons/handshake_filled.svg +3 -0
  8. package/assets/icons/handshake_outlined.svg +3 -0
  9. package/assets/icons/swap_horiz.svg +3 -0
  10. package/assets/icons/swap_vert.svg +3 -0
  11. package/common/animation.d.ts +1 -1
  12. package/common/animation.d.ts.map +1 -1
  13. package/common/animation.js +12 -2
  14. package/common/index.d.ts +1 -0
  15. package/common/index.d.ts.map +1 -1
  16. package/common/svg.d.ts +10 -0
  17. package/components/accordion/accordion.constants.d.ts +5 -0
  18. package/components/accordion/accordion.constants.d.ts.map +1 -0
  19. package/components/accordion/accordion.constants.js +4 -0
  20. package/components/accordion/accordion.interface.d.ts +15 -0
  21. package/components/accordion/index.d.ts +3 -0
  22. package/components/accordion/index.d.ts.map +1 -0
  23. package/components/accordion/index.js +1 -0
  24. package/components/avatar/avatar.constants.d.ts +4 -0
  25. package/components/avatar/avatar.constants.d.ts.map +1 -0
  26. package/components/avatar/avatar.constants.js +13 -0
  27. package/components/avatar/avatar.interface.d.ts +23 -0
  28. package/components/avatar/avatar.size.constants.d.ts +5 -0
  29. package/components/avatar/avatar.size.constants.d.ts.map +1 -0
  30. package/components/avatar/avatar.size.constants.js +39 -0
  31. package/components/avatar/avatar.utils.d.ts +6 -0
  32. package/components/avatar/avatar.utils.d.ts.map +1 -0
  33. package/components/avatar/avatar.utils.js +34 -0
  34. package/components/avatar/index.d.ts +4 -0
  35. package/components/avatar/index.d.ts.map +1 -0
  36. package/components/avatar/index.js +2 -0
  37. package/components/avatar/type.d.ts +4 -0
  38. package/components/button/button.interface.d.ts +3 -0
  39. package/components/card/card.constants.d.ts +2 -0
  40. package/components/card/card.constants.d.ts.map +1 -0
  41. package/components/card/card.constants.js +1 -0
  42. package/components/card/card.interface.d.ts +1 -3
  43. package/components/card/card.stories.shared.d.ts +5 -8
  44. package/components/card/card.stories.shared.d.ts.map +1 -1
  45. package/components/card/card.stories.shared.js +11 -11
  46. package/components/card/index.d.ts +1 -1
  47. package/components/card/index.d.ts.map +1 -1
  48. package/components/card/index.js +1 -1
  49. package/components/common/common-types.d.ts +1 -0
  50. package/components/common/common-types.d.ts.map +1 -1
  51. package/components/drawer/drawer.constants.d.ts +3 -0
  52. package/components/drawer/drawer.constants.d.ts.map +1 -0
  53. package/components/drawer/drawer.constants.js +2 -0
  54. package/components/drawer/drawer.interface.d.ts +19 -0
  55. package/components/drawer/drawer.utils.d.ts +14 -0
  56. package/components/drawer/drawer.utils.d.ts.map +1 -0
  57. package/components/drawer/drawer.utils.js +36 -0
  58. package/components/drawer/index.d.ts +4 -0
  59. package/components/drawer/index.d.ts.map +1 -0
  60. package/components/drawer/index.js +2 -0
  61. package/components/toast/toast.utils.d.ts +1 -1
  62. package/components/treeview/index.d.ts +4 -0
  63. package/components/treeview/index.d.ts.map +1 -0
  64. package/components/treeview/index.js +2 -0
  65. package/components/treeview/treeview-item.interface.d.ts +41 -0
  66. package/components/treeview/treeview.constants.d.ts +11 -0
  67. package/components/treeview/treeview.constants.d.ts.map +1 -0
  68. package/components/treeview/treeview.constants.js +72 -0
  69. package/components/treeview/treeview.utils.d.ts +52 -0
  70. package/components/treeview/treeview.utils.d.ts.map +1 -0
  71. package/components/treeview/treeview.utils.js +285 -0
  72. package/constants/keyboard/keyboard.constants.d.ts +1 -0
  73. package/constants/keyboard/keyboard.constants.d.ts.map +1 -1
  74. package/constants/keyboard/keyboard.constants.js +1 -0
  75. package/design-tokens/abstract/mixins/_typography.scss +18 -0
  76. package/index.d.ts +3 -0
  77. package/index.js +3 -0
  78. package/package.json +5 -1
  79. package/components/card/card.constats.d.ts +0 -3
  80. package/components/card/card.constats.d.ts.map +0 -1
  81. package/components/card/card.constats.js +0 -7
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M8.125 13.25H2.75C2.5375 13.25 2.35937 13.1785 2.21562 13.0356C2.07187 12.8927 2 12.7156 2 12.5044C2 12.2931 2.07187 12.1146 2.21562 11.9688C2.35937 11.8229 2.5375 11.75 2.75 11.75H8.125L6.45833 10.0833C6.30556 9.93056 6.22917 9.7523 6.22917 9.54855C6.22917 9.34494 6.30556 9.16903 6.45833 9.02084C6.60653 8.86806 6.78243 8.79167 6.98604 8.79167C7.18979 8.79167 7.36806 8.86806 7.52083 9.02084L10.4792 11.9792C10.5486 12.0542 10.6007 12.1354 10.6354 12.2229C10.6701 12.3104 10.6875 12.4042 10.6875 12.5042C10.6875 12.6042 10.6701 12.6979 10.6354 12.7854C10.6007 12.8729 10.5486 12.9514 10.4792 13.0208L7.52083 15.9792C7.37306 16.132 7.20069 16.2049 7.00375 16.1979C6.80681 16.191 6.62861 16.1111 6.46917 15.9583C6.32306 15.8056 6.25 15.6285 6.25 15.4271C6.25 15.2257 6.32639 15.0486 6.47917 14.8958L8.125 13.25ZM11.875 8.25001L13.5417 9.91667C13.6944 10.0694 13.7708 10.2477 13.7708 10.4515C13.7708 10.6551 13.6944 10.831 13.5417 10.9792C13.3935 11.1319 13.2176 11.2083 13.014 11.2083C12.8102 11.2083 12.6319 11.1319 12.4792 10.9792L9.52083 8.02084C9.45139 7.94584 9.39931 7.86459 9.36458 7.77709C9.32986 7.68959 9.3125 7.59584 9.3125 7.49584C9.3125 7.39584 9.32986 7.30209 9.36458 7.21459C9.39931 7.12709 9.45139 7.04862 9.52083 6.97917L12.4792 4.02084C12.6319 3.86806 12.809 3.79167 13.0104 3.79167C13.2118 3.79167 13.3922 3.86806 13.5517 4.02084C13.6978 4.17362 13.7708 4.3507 13.7708 4.55209C13.7708 4.75348 13.6944 4.93056 13.5417 5.08334L11.875 6.75001H17.25C17.4625 6.75001 17.6406 6.82146 17.7844 6.96438C17.9281 7.1073 18 7.28438 18 7.49563C18 7.70688 17.9281 7.88542 17.7844 8.03126C17.6406 8.17709 17.4625 8.25001 17.25 8.25001H11.875Z" fill="currentColor"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M4.49458 17C4.08153 17 3.72917 16.8531 3.4375 16.5594C3.14583 16.2656 3 15.9125 3 15.5V7.5C3 7.0875 3.14667 6.73438 3.44 6.44063C3.73319 6.14688 4.08569 6 4.4975 6H5.99521V4.5C5.99521 4.0875 6.14181 3.73438 6.435 3.44063C6.72833 3.14688 7.08146 3 7.49438 3H11.9985C12.4115 3 12.7649 3.14688 13.059 3.44063C13.353 3.73438 13.5 4.0875 13.5 4.5V9H15.5C15.9125 9 16.2656 9.14687 16.5594 9.44063C16.8531 9.73438 17 10.0875 17 10.5V15.5C17 15.9125 16.8531 16.2656 16.5594 16.5594C16.2656 16.8531 15.9125 17 15.5 17H11V14H9V17H4.49458ZM4.5 15.5H6V14H4.5V15.5ZM4.5 12.25H6V10.75H4.5V12.25ZM4.5 9H6V7.5H4.5V9ZM7.5 12.25H9V10.75H7.5V12.25ZM7.5 9H9V7.5H7.5V9ZM7.5 6H9V4.5H7.5V6ZM10.5 12.25H12V10.75H10.5V12.25ZM10.5 9H12V7.5H10.5V9ZM10.5 6H12V4.5H10.5V6ZM14 15.5H15.5V14H14V15.5ZM14 12.25H15.5V10.75H14V12.25Z" fill="currentColor"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10.0044 12C10.4181 12 10.7708 11.8527 11.0625 11.5581C11.3542 11.2635 11.5 10.9094 11.5 10.4956C11.5 10.0819 11.3527 9.72917 11.0581 9.4375C10.7635 9.14583 10.4094 9 9.99563 9C9.58188 9 9.22917 9.14729 8.9375 9.44187C8.64583 9.73646 8.5 10.0906 8.5 10.5044C8.5 10.9181 8.64729 11.2708 8.94187 11.5625C9.23646 11.8542 9.59062 12 10.0044 12ZM7 15H13V14.3125C13 14.0069 12.9167 13.7326 12.75 13.4896C12.5833 13.2465 12.3611 13.0625 12.0833 12.9375C11.7639 12.7847 11.4271 12.6736 11.0729 12.6042C10.7188 12.5347 10.3611 12.5 10 12.5C9.63889 12.5 9.28125 12.5347 8.92708 12.6042C8.57292 12.6736 8.23611 12.7847 7.91667 12.9375C7.63889 13.0625 7.41667 13.2465 7.25 13.4896C7.08333 13.7326 7 14.0069 7 14.3125V15ZM14.4992 18H5.49417C5.08139 18 4.72917 17.8531 4.4375 17.5594C4.14583 17.2656 4 16.9125 4 16.5V3.5C4 3.0875 4.14687 2.73438 4.44062 2.44063C4.73437 2.14688 5.0875 2 5.5 2H11.375C11.5725 2 11.7608 2.03472 11.9398 2.10417C12.1188 2.17361 12.2847 2.28472 12.4375 2.4375L15.5625 5.5625C15.7153 5.71528 15.8264 5.88118 15.8958 6.06021C15.9653 6.23924 16 6.4275 16 6.625V16.5C16 16.9125 15.8531 17.2656 15.5592 17.5594C15.2653 17.8531 14.9119 18 14.4992 18Z" fill="currentColor"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10.0044 12C10.4181 12 10.7708 11.8527 11.0625 11.5581C11.3542 11.2635 11.5 10.9094 11.5 10.4956C11.5 10.0819 11.3527 9.72917 11.0581 9.4375C10.7635 9.14583 10.4094 9 9.99563 9C9.58188 9 9.22917 9.14729 8.9375 9.44187C8.64583 9.73646 8.5 10.0906 8.5 10.5044C8.5 10.9181 8.64729 11.2708 8.94187 11.5625C9.23646 11.8542 9.59062 12 10.0044 12ZM7 15H13V14.3125C13 14.0069 12.9167 13.7326 12.75 13.4896C12.5833 13.2465 12.3611 13.0625 12.0833 12.9375C11.7639 12.7847 11.4271 12.6736 11.0729 12.6042C10.7188 12.5347 10.3611 12.5 10 12.5C9.63889 12.5 9.28125 12.5347 8.92708 12.6042C8.57292 12.6736 8.23611 12.7847 7.91667 12.9375C7.63889 13.0625 7.41667 13.2465 7.25 13.4896C7.08333 13.7326 7 14.0069 7 14.3125V15ZM14.4992 18H5.49417C5.08139 18 4.72917 17.8531 4.4375 17.5594C4.14583 17.2656 4 16.9125 4 16.5V3.5C4 3.0875 4.14687 2.73438 4.44062 2.44063C4.73437 2.14688 5.0875 2 5.5 2H11.375C11.5725 2 11.7608 2.03472 11.9398 2.10417C12.1188 2.17361 12.2847 2.28472 12.4375 2.4375L15.5625 5.5625C15.7153 5.71528 15.8264 5.88118 15.8958 6.06021C15.9653 6.23924 16 6.4275 16 6.625V16.5C16 16.9125 15.8531 17.2656 15.5592 17.5594C15.2653 17.8531 14.9119 18 14.4992 18ZM14.5 16.5V6.625L11.375 3.5H5.5V16.5H14.5Z" fill="currentColor"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M11.375 2C11.5724 2 11.7605 2.0351 11.9395 2.10449C12.1185 2.17394 12.2847 2.28472 12.4375 2.4375L15.5625 5.5625C15.7153 5.71528 15.8261 5.88152 15.8955 6.06055C15.9649 6.23952 16 6.42757 16 6.625V16.5C16 16.9125 15.8534 17.2658 15.5596 17.5596C15.2657 17.8533 14.9118 18 14.499 18H5.49414C5.08142 18 4.72914 17.8532 4.4375 17.5596C4.14583 17.2658 4 16.9125 4 16.5V3.5C4 3.0875 4.14668 2.73418 4.44043 2.44043C4.73418 2.14668 5.0875 2 5.5 2H11.375ZM10.4482 12C10.3061 12 10.1969 12.0366 10.1211 12.1104C10.0453 12.1841 10.0078 12.2927 10.0078 12.4355V15.707C10.0079 16.1309 10.1069 16.4536 10.3057 16.6748C10.5046 16.8915 10.8012 17 11.1943 17C11.2464 17 11.2986 16.9978 11.3506 16.9932C11.4027 16.9886 11.4527 16.9841 11.5 16.9795C11.609 16.9657 11.687 16.9259 11.7344 16.8613C11.7817 16.7968 11.8057 16.707 11.8057 16.5918C11.8057 16.4583 11.7942 16.3706 11.7705 16.3291C11.7468 16.283 11.7011 16.2642 11.6348 16.2734C11.6018 16.278 11.5691 16.2835 11.5361 16.2881H11.4287C11.2584 16.288 11.1259 16.237 11.0312 16.1357C10.9412 16.0343 10.8965 15.8771 10.8965 15.665V12.4355C10.8965 12.2927 10.8559 12.1841 10.7754 12.1104C10.6996 12.0366 10.5903 12 10.4482 12ZM13.6211 13.4795C13.3321 13.4795 13.0762 13.5237 12.8535 13.6113C12.6311 13.6988 12.456 13.8233 12.3281 13.9844C12.205 14.1457 12.1426 14.3374 12.1426 14.5586C12.1426 14.8028 12.2187 15.0034 12.3701 15.1602C12.5265 15.3123 12.7521 15.4164 13.0459 15.4717L13.7559 15.6035C13.9026 15.6312 14.0119 15.6745 14.083 15.7344C14.1588 15.7897 14.1973 15.8705 14.1973 15.9766C14.1972 16.101 14.1401 16.2029 14.0264 16.2812C13.9174 16.3549 13.7488 16.3916 13.5215 16.3916C13.3605 16.3916 13.197 16.375 13.0312 16.3428C12.8655 16.3059 12.6875 16.2438 12.498 16.1562C12.4223 16.1195 12.3514 16.1083 12.2852 16.1221C12.2236 16.1359 12.1715 16.1658 12.1289 16.2119C12.0911 16.258 12.0671 16.3134 12.0576 16.3779C12.053 16.4377 12.0644 16.5 12.0928 16.5645C12.1259 16.6244 12.181 16.6775 12.2568 16.7236C12.4368 16.825 12.6408 16.896 12.8682 16.9375C13.0955 16.979 13.311 17 13.5146 17C13.9646 17 14.3247 16.9057 14.5947 16.7168C14.8648 16.5232 15 16.2575 15 15.9209C14.9999 15.6721 14.9198 15.4736 14.7588 15.3262C14.6024 15.1786 14.3695 15.0778 14.0615 15.0225L13.3516 14.8906C13.2144 14.8676 13.1122 14.8241 13.0459 14.7598C12.9796 14.6953 12.9464 14.6143 12.9463 14.5176C12.9463 14.3885 13.0005 14.2844 13.1094 14.2061C13.223 14.1277 13.396 14.0889 13.6279 14.0889C13.751 14.0889 13.8792 14.1045 14.0117 14.1367C14.1491 14.169 14.2916 14.2222 14.4385 14.2959C14.5188 14.3327 14.5899 14.347 14.6514 14.3379C14.7176 14.3241 14.7728 14.2941 14.8154 14.248C14.858 14.1975 14.8861 14.1418 14.9004 14.082C14.9146 14.0175 14.9073 13.9545 14.8789 13.8945C14.8552 13.8349 14.808 13.7868 14.7373 13.75C14.5667 13.6578 14.3889 13.5903 14.2041 13.5488C14.0241 13.5027 13.8296 13.4795 13.6211 13.4795ZM8.78613 13.4941C8.68212 13.4941 8.59443 13.5121 8.52344 13.5488C8.45237 13.5857 8.38274 13.6433 8.31641 13.7217L7.63281 14.6172L6.91699 13.7217C6.85544 13.6434 6.78668 13.5857 6.71094 13.5488C6.63987 13.5119 6.5494 13.4941 6.44043 13.4941C6.33628 13.4942 6.24876 13.5241 6.17773 13.584C6.11155 13.6392 6.07609 13.7127 6.07129 13.8047C6.06655 13.8969 6.10617 13.9943 6.19141 14.0957L7.09375 15.1943L6.12109 16.3633C6.04055 16.4647 6 16.5621 6 16.6543C6.00475 16.7465 6.04013 16.8229 6.10645 16.8828C6.1774 16.938 6.26513 16.9657 6.36914 16.9658C6.47811 16.9658 6.56858 16.947 6.63965 16.9102C6.71072 16.8687 6.77727 16.8111 6.83887 16.7373L7.63281 15.79L8.38086 16.7373C8.44717 16.8156 8.51587 16.8733 8.58691 16.9102C8.65791 16.947 8.74551 16.9658 8.84961 16.9658C8.95858 16.9658 9.04695 16.9359 9.11328 16.876C9.1843 16.8161 9.22179 16.7396 9.22656 16.6475C9.2313 16.5553 9.19075 16.4601 9.10547 16.3633L8.11133 15.1943L9.02734 14.1025C9.11263 14.0011 9.15318 13.9037 9.14844 13.8115C9.14835 13.7195 9.115 13.6438 9.04883 13.584C8.98253 13.5241 8.89503 13.4942 8.78613 13.4941Z" fill="currentColor"/>
3
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M4.4375 17.5594C4.72917 17.8531 5.08139 18 5.49417 18H5.75C6.16421 18 6.5 17.6642 6.5 17.25C6.5 16.8358 6.16421 16.5 5.75 16.5H5.5V3.5H11.375L14.5 6.625V13.25C14.5 13.6642 14.8358 14 15.25 14C15.6642 14 16 13.6642 16 13.25V6.625C16 6.4275 15.9653 6.23924 15.8958 6.06021C15.8264 5.88118 15.7153 5.71528 15.5625 5.5625L12.4375 2.4375C12.2847 2.28472 12.1188 2.17361 11.9398 2.10417C11.7608 2.03472 11.5725 2 11.375 2H5.5C5.0875 2 4.73437 2.14688 4.44062 2.44063C4.14687 2.73438 4 3.0875 4 3.5V16.5C4 16.9125 4.14583 17.2656 4.4375 17.5594Z" fill="currentColor"/>
3
+ <path d="M7.36957 17.9654C7.26533 17.9654 7.17768 17.9378 7.10661 17.8824C7.04027 17.8225 7.00474 17.7464 7 17.6542C7 17.562 7.04027 17.4652 7.12082 17.3638L8.09411 16.1945L7.19189 15.0954C7.10661 14.994 7.06633 14.8972 7.07107 14.805C7.07581 14.7128 7.11134 14.639 7.17768 14.5837C7.24875 14.5237 7.3364 14.4938 7.44064 14.4938C7.54961 14.4938 7.63963 14.5122 7.7107 14.5491C7.78651 14.586 7.85521 14.6436 7.91681 14.722L8.63329 15.6167L9.31689 14.722C9.38322 14.6436 9.45193 14.586 9.523 14.5491C9.59407 14.5122 9.68172 14.4938 9.78596 14.4938C9.89493 14.4938 9.98258 14.5237 10.0489 14.5837C10.1152 14.6436 10.1484 14.7197 10.1484 14.8119C10.1532 14.9041 10.1129 15.0009 10.0276 15.1024L9.11147 16.1945L10.1058 17.3638C10.1911 17.4606 10.2313 17.5551 10.2266 17.6473C10.2219 17.7395 10.1839 17.8156 10.1129 17.8755C10.0465 17.9355 9.95889 17.9654 9.84992 17.9654C9.74568 17.9654 9.65803 17.947 9.58696 17.9101C9.51589 17.8732 9.44719 17.8156 9.38086 17.7372L8.63329 16.7898L7.83863 17.7372C7.77704 17.811 7.7107 17.8686 7.63963 17.9101C7.56856 17.947 7.47854 17.9654 7.36957 17.9654Z" fill="currentColor"/>
4
+ <path d="M12.1945 18C11.8013 18 11.5051 17.8917 11.3061 17.675C11.1071 17.4537 11.0076 17.1309 11.0076 16.7068V13.4357C11.0076 13.2928 11.0455 13.1844 11.1214 13.1107C11.1972 13.0369 11.3061 13 11.4483 13C11.5904 13 11.6994 13.0369 11.7752 13.1107C11.8557 13.1844 11.896 13.2928 11.896 13.4357V16.6653C11.896 16.8774 11.941 17.0341 12.0311 17.1355C12.1258 17.237 12.2585 17.2877 12.4291 17.2877C12.467 17.2877 12.5025 17.2877 12.5357 17.2877C12.5688 17.2831 12.602 17.2785 12.6352 17.2739C12.7015 17.2646 12.7465 17.2831 12.7702 17.3292C12.7939 17.3707 12.8057 17.4583 12.8057 17.592C12.8057 17.7072 12.782 17.7971 12.7347 17.8617C12.6873 17.9262 12.6091 17.9654 12.5001 17.9793C12.4527 17.9839 12.403 17.9885 12.3509 17.9931C12.2988 17.9977 12.2466 18 12.1945 18Z" fill="currentColor"/>
5
+ <path d="M14.5146 18C14.3109 18 14.0953 17.9793 13.8679 17.9378C13.6405 17.8963 13.4367 17.8248 13.2567 17.7234C13.1809 17.6773 13.1264 17.6243 13.0932 17.5643C13.0648 17.4998 13.053 17.4375 13.0577 17.3776C13.0672 17.313 13.0909 17.2577 13.1288 17.2116C13.1714 17.1655 13.2235 17.1355 13.2851 17.1217C13.3514 17.1079 13.4225 17.1194 13.4983 17.1563C13.6878 17.2439 13.8655 17.3061 14.0314 17.343C14.1972 17.3753 14.3606 17.3914 14.5217 17.3914C14.7492 17.3914 14.9174 17.3545 15.0263 17.2808C15.14 17.2024 15.1969 17.101 15.1969 16.9765C15.1969 16.8704 15.159 16.7898 15.0832 16.7344C15.0121 16.6745 14.9031 16.6307 14.7563 16.603L14.0456 16.4716C13.7518 16.4163 13.5268 16.3126 13.3704 16.1604C13.2188 16.0037 13.143 15.8031 13.143 15.5588C13.143 15.3375 13.2046 15.1462 13.3278 14.9848C13.4557 14.8234 13.631 14.6989 13.8537 14.6113C14.0764 14.5237 14.3322 14.4799 14.6212 14.4799C14.8297 14.4799 15.024 14.503 15.204 14.5491C15.3888 14.5906 15.5665 14.6574 15.737 14.7497C15.8081 14.7865 15.8555 14.8349 15.8792 14.8949C15.9076 14.9548 15.9147 15.0171 15.9005 15.0816C15.8863 15.1415 15.8579 15.1969 15.8152 15.2476C15.7726 15.2937 15.7181 15.3237 15.6518 15.3375C15.5902 15.3467 15.5191 15.3329 15.4385 15.296C15.2917 15.2222 15.1495 15.1692 15.0121 15.1369C14.8795 15.1047 14.7515 15.0885 14.6283 15.0885C14.3962 15.0885 14.2232 15.1277 14.1095 15.2061C14.0006 15.2845 13.9461 15.3882 13.9461 15.5173C13.9461 15.6141 13.9792 15.6948 14.0456 15.7593C14.1119 15.8239 14.2138 15.8677 14.3512 15.8907L15.0619 16.0221C15.3698 16.0775 15.602 16.1789 15.7584 16.3264C15.9195 16.474 16 16.6722 16 16.9212C16 17.2577 15.865 17.5228 15.5949 17.7165C15.3248 17.9055 14.9647 18 14.5146 18Z" fill="currentColor"/>
6
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10.0001 17C9.77786 17 9.59036 16.9236 9.43758 16.7708C9.2848 16.6181 9.20842 16.4306 9.20842 16.2083C9.20842 16.0972 9.22925 15.9931 9.27092 15.8958C9.31258 15.7986 9.36814 15.7153 9.43758 15.6458L12.9584 12.125C13.0279 12.0556 13.0626 11.9618 13.0626 11.8438C13.0626 11.7257 13.0279 11.6319 12.9584 11.5625C12.8751 11.4792 12.7779 11.441 12.6667 11.4479C12.5556 11.4549 12.4654 11.4931 12.3959 11.5625L8.87508 15.0625C8.80564 15.1319 8.7223 15.191 8.62508 15.2396C8.52786 15.2882 8.42369 15.3125 8.31258 15.3125C8.07647 15.3125 7.88203 15.2361 7.72925 15.0833C7.57647 14.9306 7.50008 14.7361 7.50008 14.5C7.50008 14.3889 7.52439 14.2847 7.573 14.1875C7.62161 14.0903 7.68064 14.0069 7.75008 13.9375L11.2501 10.4167C11.3195 10.3472 11.3542 10.2569 11.3542 10.1458C11.3542 10.0347 11.3195 9.94444 11.2501 9.875C11.1667 9.79167 11.0695 9.75 10.9584 9.75C10.8473 9.75 10.757 9.78472 10.6876 9.85417L7.16675 13.375C7.0973 13.4444 7.01397 13.5 6.91675 13.5417C6.81953 13.5833 6.71536 13.6042 6.60425 13.6042C6.38203 13.6042 6.19453 13.5278 6.04175 13.375C5.88897 13.2222 5.81258 13.0347 5.81258 12.8125C5.81258 12.7014 5.83342 12.5972 5.87508 12.5C5.91675 12.4028 5.9723 12.3194 6.04175 12.25L9.54175 8.75C9.62508 8.66667 9.66675 8.56944 9.66675 8.45833C9.66675 8.34722 9.62508 8.25 9.54175 8.16667C9.45842 8.08333 9.36119 8.04167 9.25008 8.04167C9.13897 8.04167 9.04175 8.08333 8.95842 8.16667L5.47925 11.6667C5.4098 11.7361 5.323 11.7917 5.21883 11.8333C5.11466 11.875 5.00703 11.8958 4.89591 11.8958C4.67369 11.8958 4.48619 11.8194 4.33341 11.6667C4.18064 11.5139 4.10425 11.3264 4.10425 11.1042C4.10425 10.9931 4.12508 10.8889 4.16675 10.7917C4.20841 10.6944 4.26397 10.6111 4.33341 10.5417L8.43758 6.45833C8.56258 6.33333 8.71536 6.27083 8.89592 6.27083C9.07647 6.27083 9.23619 6.34028 9.37508 6.47917L11.8959 9C12.0487 9.15278 12.2223 9.26736 12.4167 9.34375C12.6112 9.42014 12.8126 9.45833 13.0209 9.45833C13.4654 9.45833 13.8438 9.30208 14.1563 8.98958C14.4688 8.67708 14.6251 8.29861 14.6251 7.85417C14.6251 7.64583 14.5834 7.44444 14.5001 7.25C14.4167 7.05556 14.2987 6.88194 14.1459 6.72917L11.6459 4.22917C11.3959 3.97917 11.2536 3.68056 11.2188 3.33333C11.1841 2.98611 11.2848 2.6875 11.5209 2.4375C11.7154 2.24306 11.9272 2.10069 12.1563 2.01042C12.3855 1.92014 12.6251 1.875 12.8751 1.875C13.2501 1.875 13.6286 1.96181 14.0105 2.13542C14.3924 2.30903 14.7431 2.55556 15.0626 2.875L17.6251 5.4375C17.9029 5.71528 18.1181 6.03472 18.2709 6.39583C18.4237 6.75694 18.5001 7.13889 18.5001 7.54167C18.5001 7.94444 18.4237 8.32986 18.2709 8.69792C18.1181 9.06597 17.9029 9.38889 17.6251 9.66667L10.5626 16.7708C10.4931 16.8403 10.4098 16.8958 10.3126 16.9375C10.2154 16.9792 10.1112 17 10.0001 17ZM2.37508 9.75C2.05564 9.47222 1.81605 9.15625 1.65633 8.80208C1.49661 8.44792 1.41675 8.06944 1.41675 7.66667C1.41675 7.26389 1.49661 6.86806 1.65633 6.47917C1.81605 6.09028 2.05564 5.73611 2.37508 5.41667L4.91675 2.875C5.19453 2.59722 5.51397 2.38194 5.87508 2.22917C6.23619 2.07639 6.61814 2 7.02092 2C7.42369 2 7.80911 2.07639 8.17717 2.22917C8.54522 2.38194 8.86814 2.59722 9.14592 2.875L13.5834 7.29167C13.6529 7.36111 13.7084 7.44792 13.7501 7.55208C13.7917 7.65625 13.8126 7.76389 13.8126 7.875C13.8126 8.09722 13.7327 8.28472 13.573 8.4375C13.4133 8.59028 13.2223 8.66667 13.0001 8.66667C12.889 8.66667 12.7848 8.64583 12.6876 8.60417C12.5904 8.5625 12.507 8.50694 12.4376 8.4375L9.93758 5.91667C9.64592 5.625 9.29175 5.47917 8.87508 5.47917C8.45842 5.47917 8.10425 5.625 7.81258 5.91667L3.91675 9.8125C3.70841 10.0208 3.45841 10.1111 3.16675 10.0833C2.87508 10.0556 2.61119 9.94444 2.37508 9.75Z" fill="currentColor"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M10.3126 16.5208C10.382 16.5208 10.448 16.5069 10.5105 16.4792C10.573 16.4514 10.6251 16.4167 10.6667 16.375L17.0626 9.95833C17.2014 9.81944 17.3091 9.65972 17.3855 9.47917C17.4619 9.29861 17.5001 9.11285 17.5001 8.92188C17.5001 8.71813 17.4619 8.52396 17.3855 8.33937C17.3091 8.15479 17.2014 7.99306 17.0626 7.85417L13.1876 3.95833C13.0348 3.81944 12.8689 3.71181 12.6898 3.63542C12.5108 3.55903 12.3226 3.52083 12.1251 3.52083C11.8473 3.52083 11.5938 3.60069 11.3646 3.76042C11.1355 3.92014 10.9237 4.09722 10.7292 4.29167L12.2917 5.79167C12.5139 6.01389 12.691 6.26042 12.823 6.53125C12.9549 6.80208 13.0209 7.09722 13.0209 7.41667C13.0209 7.97222 12.8264 8.44444 12.4376 8.83333C12.0487 9.22222 11.5773 9.41667 11.0234 9.41667C10.7596 9.41667 10.5058 9.36806 10.2619 9.27083C10.0179 9.17361 9.79866 9.02778 9.60422 8.83333L7.89588 7.125L4.66672 10.3542C4.62505 10.4097 4.59033 10.4669 4.56255 10.5258C4.53477 10.5846 4.52088 10.6476 4.52088 10.715C4.52088 10.8494 4.57123 10.9653 4.67193 11.0625C4.77262 11.1597 4.89012 11.2083 5.02443 11.2083C5.09151 11.2083 5.15283 11.1944 5.20838 11.1667C5.26394 11.1389 5.3195 11.1042 5.37505 11.0625L7.33338 9.125C7.48616 8.97222 7.65977 8.89583 7.85422 8.89583C8.04866 8.89583 8.22227 8.97222 8.37505 9.125C8.52783 9.27778 8.60422 9.45139 8.60422 9.64583C8.60422 9.84028 8.52783 10.0139 8.37505 10.1667L6.41672 12.125C6.36116 12.1806 6.32297 12.2374 6.30213 12.2954C6.2813 12.3533 6.27088 12.4155 6.27088 12.4819C6.27088 12.6145 6.31998 12.7306 6.41818 12.83C6.51637 12.9294 6.63429 12.9792 6.77193 12.9792C6.84068 12.9792 6.9063 12.9653 6.9688 12.9375C7.0313 12.9097 7.08338 12.875 7.12505 12.8333L9.08338 10.875C9.23616 10.7222 9.40977 10.6458 9.60422 10.6458C9.79866 10.6458 9.97227 10.7222 10.1251 10.875C10.2778 11.0278 10.3542 11.2049 10.3542 11.4062C10.3542 11.6076 10.2778 11.7847 10.1251 11.9375L8.18755 13.875C8.132 13.9306 8.0938 13.9913 8.07297 14.0573C8.05213 14.1233 8.04172 14.1892 8.04172 14.2552C8.04172 14.3872 8.09082 14.5026 8.18901 14.6015C8.2872 14.7005 8.40512 14.75 8.54276 14.75C8.61151 14.75 8.67713 14.7361 8.73963 14.7083C8.80213 14.6806 8.85422 14.6458 8.89588 14.6042L10.8542 12.6458C11.007 12.4931 11.1806 12.4167 11.3751 12.4167C11.5695 12.4167 11.7431 12.4931 11.8959 12.6458C12.0487 12.7986 12.1251 12.9757 12.1251 13.1771C12.1251 13.3785 12.0487 13.5556 11.8959 13.7083L9.95838 15.6458C9.91672 15.7014 9.882 15.7599 9.85422 15.8212C9.82644 15.8826 9.81255 15.9484 9.81255 16.0185C9.81255 16.159 9.86116 16.2778 9.95838 16.375C10.0556 16.4722 10.1737 16.5208 10.3126 16.5208ZM10.2917 17.9792C9.77783 17.9792 9.33338 17.809 8.95838 17.4688C8.58338 17.1285 8.36811 16.7083 8.31255 16.2083C7.85422 16.1667 7.46186 15.9792 7.13547 15.6458C6.80908 15.3125 6.61116 14.9158 6.54172 14.4556C6.0695 14.388 5.67019 14.191 5.3438 13.8646C5.01741 13.5382 4.83338 13.1458 4.79172 12.6875C4.27783 12.6597 3.85422 12.4514 3.52088 12.0625C3.18755 11.6736 3.02088 11.2244 3.02088 10.7148C3.02088 10.4466 3.06949 10.191 3.16672 9.94792C3.26394 9.70486 3.40977 9.48611 3.60422 9.29167L6.83338 6.08333C7.12088 5.79167 7.47401 5.64583 7.89276 5.64583C8.31151 5.64583 8.66672 5.79167 8.95838 6.08333L10.6459 7.77083C10.7014 7.82639 10.757 7.86458 10.8126 7.88542C10.8681 7.90625 10.9281 7.91667 10.9926 7.91667C11.1376 7.91667 11.2584 7.86806 11.3551 7.77083C11.4517 7.67361 11.5001 7.55354 11.5001 7.41063C11.5001 7.34715 11.4862 7.28368 11.4584 7.22021C11.4306 7.15674 11.3959 7.10417 11.3542 7.0625L8.25005 3.95833C8.09727 3.80556 7.93026 3.69444 7.74901 3.625C7.56776 3.55556 7.37713 3.52083 7.17713 3.52083C6.98963 3.52083 6.80561 3.55903 6.62505 3.63542C6.4445 3.71181 6.27783 3.81944 6.12505 3.95833L2.93755 7.14583C2.757 7.32639 2.632 7.54167 2.56255 7.79167C2.49311 8.04167 2.48616 8.29167 2.54172 8.54167C2.58338 8.73611 2.54866 8.92014 2.43755 9.09375C2.32644 9.26736 2.16672 9.375 1.95838 9.41667C1.75005 9.45833 1.55908 9.42361 1.38547 9.3125C1.21186 9.20139 1.10422 9.04167 1.06255 8.83333C0.951439 8.34722 0.968801 7.85764 1.11463 7.36458C1.26047 6.87153 1.51394 6.44444 1.87505 6.08333L5.06255 2.89583C5.34033 2.61806 5.66325 2.40278 6.0313 2.25C6.39936 2.09722 6.78477 2.02083 7.18755 2.02083C7.59033 2.02083 7.97575 2.09722 8.3438 2.25C8.71186 2.40278 9.03477 2.61806 9.31255 2.89583L9.64588 3.22917L9.97922 2.875C10.257 2.59722 10.5799 2.38194 10.948 2.22917C11.316 2.07639 11.7014 2 12.1042 2C12.507 2 12.8889 2.07639 13.2501 2.22917C13.6112 2.38194 13.9306 2.59722 14.2084 2.875L18.1042 6.77083C18.382 7.04861 18.5973 7.36806 18.7501 7.72917C18.9028 8.09028 18.9792 8.47222 18.9792 8.875C18.9792 9.27778 18.9028 9.66319 18.7501 10.0312C18.5973 10.3993 18.382 10.7222 18.1042 11L11.7084 17.3958C11.5139 17.5903 11.295 17.7361 11.0515 17.8333C10.8082 17.9306 10.5549 17.9792 10.2917 17.9792Z" fill="currentColor"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M4.875 13.25L6.54167 14.9167C6.69444 15.0694 6.77083 15.2477 6.77083 15.4515C6.77083 15.6551 6.69444 15.831 6.54167 15.9792C6.39347 16.132 6.21757 16.2083 6.01396 16.2083C5.81021 16.2083 5.63194 16.132 5.47917 15.9792L2.52083 13.0208C2.45139 12.9458 2.39931 12.8646 2.36458 12.7771C2.32986 12.6896 2.3125 12.5958 2.3125 12.4958C2.3125 12.3958 2.32986 12.3021 2.36458 12.2146C2.39931 12.1271 2.45139 12.0486 2.52083 11.9792L5.47917 9.02084C5.63194 8.86806 5.80903 8.79167 6.01042 8.79167C6.21181 8.79167 6.39222 8.86806 6.55167 9.02084C6.69778 9.17362 6.77083 9.3507 6.77083 9.55209C6.77083 9.75348 6.69444 9.93056 6.54167 10.0833L4.875 11.75H10.25C10.4625 11.75 10.6406 11.8215 10.7844 11.9644C10.9281 12.1073 11 12.2844 11 12.4956C11 12.7069 10.9281 12.8854 10.7844 13.0313C10.6406 13.1771 10.4625 13.25 10.25 13.25H4.875ZM15.125 8.25001H9.75C9.5375 8.25001 9.35938 8.17855 9.21563 8.03563C9.07188 7.89271 9 7.71563 9 7.50438C9 7.29313 9.07188 7.11459 9.21563 6.96876C9.35938 6.82292 9.5375 6.75001 9.75 6.75001H15.125L13.4583 5.08334C13.3056 4.93056 13.2292 4.7523 13.2292 4.54855C13.2292 4.34494 13.3056 4.16903 13.4583 4.02084C13.6065 3.86806 13.7824 3.79167 13.986 3.79167C14.1898 3.79167 14.3681 3.86806 14.5208 4.02084L17.4792 6.97917C17.5486 7.05417 17.6007 7.13542 17.6354 7.22292C17.6701 7.31042 17.6875 7.40417 17.6875 7.50417C17.6875 7.60417 17.6701 7.69792 17.6354 7.78542C17.6007 7.87292 17.5486 7.95139 17.4792 8.02084L14.5208 10.9792C14.3731 11.1319 14.2007 11.2049 14.0037 11.1979C13.8068 11.191 13.6286 11.1111 13.4692 10.9583C13.3231 10.8056 13.25 10.6285 13.25 10.4271C13.25 10.2257 13.3264 10.0486 13.4792 9.89584L15.125 8.25001Z" fill="currentColor"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M6.96883 10.7844C6.823 10.6406 6.75008 10.4625 6.75008 10.25V4.875L5.08341 6.54167C4.93064 6.69444 4.75237 6.77083 4.54862 6.77083C4.34501 6.77083 4.16911 6.69444 4.02091 6.54167C3.86814 6.39347 3.79175 6.21757 3.79175 6.01396C3.79175 5.81021 3.86814 5.63194 4.02091 5.47917L6.97925 2.52083C7.05425 2.45139 7.1355 2.39931 7.223 2.36458C7.3105 2.32986 7.40425 2.3125 7.50425 2.3125C7.60425 2.3125 7.698 2.32986 7.7855 2.36458C7.873 2.39931 7.95147 2.45139 8.02092 2.52083L10.9792 5.47917C11.132 5.63194 11.2084 5.80556 11.2084 6C11.2084 6.19444 11.132 6.37139 10.9792 6.53083C10.8265 6.67694 10.6494 6.75 10.448 6.75C10.2466 6.75 10.0695 6.67361 9.91675 6.52083L8.25008 4.875V10.25C8.25008 10.4625 8.17862 10.6406 8.03571 10.7844C7.89279 10.9281 7.71571 11 7.50446 11C7.29321 11 7.11466 10.9281 6.96883 10.7844ZM12.2147 17.6354C12.1272 17.6007 12.0487 17.5486 11.9792 17.4792L9.02092 14.5208C8.86814 14.3693 8.79522 14.1926 8.80217 13.9906C8.80911 13.7885 8.88897 13.6078 9.04175 13.4483C9.19453 13.3022 9.37161 13.2292 9.573 13.2292C9.77439 13.2292 9.95147 13.3056 10.1042 13.4583L11.7501 15.125V9.75C11.7501 9.5375 11.8215 9.35937 11.9645 9.21562C12.1074 9.07187 12.2845 9 12.4957 9C12.707 9 12.8855 9.07187 13.0313 9.21562C13.1772 9.35937 13.2501 9.5375 13.2501 9.75V15.125L14.9167 13.4583C15.0695 13.3056 15.2478 13.2292 15.4515 13.2292C15.6552 13.2292 15.8311 13.3056 15.9792 13.4583C16.132 13.6065 16.2084 13.7824 16.2084 13.986C16.2084 14.1898 16.132 14.3681 15.9792 14.5208L13.0209 17.4792C12.9459 17.5486 12.8647 17.6007 12.7772 17.6354C12.6897 17.6701 12.5959 17.6875 12.4959 17.6875C12.3959 17.6875 12.3022 17.6701 12.2147 17.6354Z" fill="currentColor"/>
3
+ </svg>
@@ -1,2 +1,2 @@
1
- export declare function waitForNextFrame(callback: () => void): void;
1
+ export declare function waitForNextFrame(callback: () => void): () => void;
2
2
  //# sourceMappingURL=animation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../common/animation.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,IAAI,QAIpD"}
1
+ {"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../common/animation.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAejE"}
@@ -1,5 +1,15 @@
1
1
  export function waitForNextFrame(callback) {
2
- requestAnimationFrame(() => {
3
- requestAnimationFrame(callback);
2
+ let innerFrameId = 0;
3
+ const outerFrameId = requestAnimationFrame(() => {
4
+ innerFrameId = requestAnimationFrame(() => {
5
+ innerFrameId = 0;
6
+ callback();
7
+ });
4
8
  });
9
+ return () => {
10
+ cancelAnimationFrame(outerFrameId);
11
+ if (innerFrameId !== 0) {
12
+ cancelAnimationFrame(innerFrameId);
13
+ }
14
+ };
5
15
  }
package/common/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./animation";
2
+ export type * from "./svg";
2
3
  export * from "../components/common/common-types";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../common/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../common/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,mBAAmB,OAAO,CAAC;AAC3B,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1,10 @@
1
+ export type SvgElementConfig =
2
+ | { kind: "path"; d: string }
3
+ | { kind: "line"; x1: number; y1: number; x2: number; y2: number };
4
+
5
+ export interface SvgConfig {
6
+ viewBox: string;
7
+ width: number;
8
+ height: number;
9
+ elements: SvgElementConfig[];
10
+ }
@@ -0,0 +1,5 @@
1
+ import { AccordionSize } from "./accordion.interface";
2
+ export declare const AccordionIconSizeMap: {
3
+ [key in AccordionSize]: number;
4
+ };
5
+ //# sourceMappingURL=accordion.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion.constants.d.ts","sourceRoot":"","sources":["../../../components/accordion/accordion.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,eAAO,MAAM,oBAAoB,EAAE;KAAG,GAAG,IAAI,aAAa,GAAG,MAAM;CAGlE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export const AccordionIconSizeMap = {
2
+ small: 16,
3
+ large: 32,
4
+ };
@@ -0,0 +1,15 @@
1
+ export type AccordionAppearance = "brand" | "neutral";
2
+ export type AccordionAlignement = "left" | "right";
3
+ export type AccordionSize = "small" | "large";
4
+
5
+ export interface AccordionProps {
6
+ id?: string;
7
+ title: string;
8
+ appearance?: AccordionAppearance;
9
+ alignement?: AccordionAlignement;
10
+ compactSpacing?: boolean;
11
+ icon?: string;
12
+ disabled?: boolean;
13
+ isOpen?: boolean;
14
+ size?: AccordionSize;
15
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./accordion.constants";
2
+ export type * from "./accordion.interface";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/accordion/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,mBAAmB,uBAAuB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./accordion.constants";
@@ -0,0 +1,4 @@
1
+ import { AvatarStatus } from "./avatar.interface";
2
+ export { IconSizeMap, PaddingMap, StatusIndicatorSizeMap } from "./avatar.size.constants";
3
+ export declare const StatusIndicatorIconMap: Record<AvatarStatus, string>;
4
+ //# sourceMappingURL=avatar.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.constants.d.ts","sourceRoot":"","sources":["../../../components/avatar/avatar.constants.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAE1F,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAM/D,CAAC"}
@@ -0,0 +1,13 @@
1
+ import available from "./assets/available.svg";
2
+ import away from "./assets/away.svg";
3
+ import busy from "./assets/busy.svg";
4
+ import offline from "./assets/offline.svg";
5
+ import unknown from "./assets/unknown.svg";
6
+ export { IconSizeMap, PaddingMap, StatusIndicatorSizeMap } from "./avatar.size.constants";
7
+ export const StatusIndicatorIconMap = {
8
+ available: available,
9
+ away: away,
10
+ busy: busy,
11
+ offline: offline,
12
+ unknown: unknown,
13
+ };
@@ -0,0 +1,23 @@
1
+ import DecorativeColor from "../common/common-types";
2
+
3
+ export type AvatarSize = 24 | 28 | 32 | 36 | 40 | 48 | 56 | 64 | 72 | 96 | 120;
4
+ export type AvatarColorType = "neutral" | "brand" | "decorative";
5
+ export type AvatarType = "user" | "entity";
6
+ export type AvatarLayout = "image" | "icon" | "initials";
7
+ export type AvatarColor = "neutral" | "brand" | "decorative";
8
+ export type AvatarStatus = "available" | "away" | "busy" | "offline" | "unknown";
9
+
10
+ export interface AvatarProps {
11
+ id?: string;
12
+ type?: AvatarType;
13
+ size?: AvatarSize;
14
+ status?: AvatarStatus;
15
+ layout?: AvatarLayout;
16
+ initials?: string;
17
+ imgSrc?: string;
18
+ alt?: string;
19
+ colorType?: AvatarColorType;
20
+ decorativeColor?: DecorativeColor;
21
+ onClick?: () => void;
22
+ ["aria-label"]?: string;
23
+ }
@@ -0,0 +1,5 @@
1
+ import { AvatarSize } from "./avatar.interface";
2
+ export declare const IconSizeMap: Record<AvatarSize, number>;
3
+ export declare const StatusIndicatorSizeMap: Record<AvatarSize, number>;
4
+ export declare const PaddingMap: Record<AvatarSize, number>;
5
+ //# sourceMappingURL=avatar.size.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.size.constants.d.ts","sourceRoot":"","sources":["../../../components/avatar/avatar.size.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAYlD,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAY7D,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAYjD,CAAC"}
@@ -0,0 +1,39 @@
1
+ export const IconSizeMap = {
2
+ 24: 16,
3
+ 28: 16,
4
+ 32: 20,
5
+ 36: 20,
6
+ 40: 24,
7
+ 48: 28,
8
+ 56: 32,
9
+ 64: 40,
10
+ 72: 48,
11
+ 96: 56,
12
+ 120: 64,
13
+ };
14
+ export const StatusIndicatorSizeMap = {
15
+ 24: 6,
16
+ 28: 10,
17
+ 32: 10,
18
+ 36: 10,
19
+ 40: 12,
20
+ 48: 16,
21
+ 56: 16,
22
+ 64: 20,
23
+ 72: 20,
24
+ 96: 28,
25
+ 120: 28,
26
+ };
27
+ export const PaddingMap = {
28
+ 24: 1,
29
+ 28: 1,
30
+ 32: 1,
31
+ 36: 1,
32
+ 40: 1,
33
+ 48: 2,
34
+ 56: 2,
35
+ 64: 2,
36
+ 72: 2,
37
+ 96: 2,
38
+ 120: 2,
39
+ };
@@ -0,0 +1,6 @@
1
+ import { DecorativeColor } from "../common/common-types";
2
+ import { AvatarColorType, AvatarSize } from "./avatar.interface";
3
+ export declare const computeMaskImage: (avatarSize: AvatarSize, hasStatusIndicator: boolean) => string;
4
+ export declare const computeIconColor: (colorType: AvatarColorType) => "var(--content-secondary)" | "var(--content-primary-inverse)" | "var(--content-tertiary)";
5
+ export declare const computeBackgroundColor: (layout: string, colorType: AvatarColorType, decorativeColor?: DecorativeColor) => string;
6
+ //# sourceMappingURL=avatar.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.utils.d.ts","sourceRoot":"","sources":["../../../components/avatar/avatar.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGjE,eAAO,MAAM,gBAAgB,GAAI,YAAY,UAAU,EAAE,oBAAoB,OAAO,WASnF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,WAAW,eAAe,8FAS1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,QAAQ,MAAM,EACd,WAAW,eAAe,EAC1B,kBAAkB,eAAe,WAKlC,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { PaddingMap, StatusIndicatorSizeMap } from "./avatar.size.constants";
2
+ export const computeMaskImage = (avatarSize, hasStatusIndicator) => {
3
+ if (!hasStatusIndicator) {
4
+ return "none";
5
+ }
6
+ const statusSize = StatusIndicatorSizeMap[avatarSize];
7
+ const padding = PaddingMap[avatarSize];
8
+ return `radial-gradient(circle at ${avatarSize - statusSize / 2}px ${avatarSize - statusSize / 2}px, transparent ${statusSize / 2 + padding}px, black 0px)`;
9
+ };
10
+ export const computeIconColor = (colorType) => {
11
+ switch (colorType) {
12
+ case "decorative":
13
+ return "var(--content-secondary)";
14
+ case "brand":
15
+ return "var(--content-primary-inverse)";
16
+ default:
17
+ return "var(--content-tertiary)";
18
+ }
19
+ };
20
+ export const computeBackgroundColor = (layout, colorType, decorativeColor) => {
21
+ return layout === "image"
22
+ ? "var(--background-neutral-regular-default)"
23
+ : getBackgroundColorForNonImageLayout(colorType, decorativeColor);
24
+ };
25
+ const getBackgroundColorForNonImageLayout = (colorType, decorativeColor) => {
26
+ switch (colorType) {
27
+ case "decorative":
28
+ return decorativeColor ? `var(--decorative-${decorativeColor})` : "var(--background-neutral-regular-default)";
29
+ case "brand":
30
+ return "var(--background-brand-default)";
31
+ default:
32
+ return "var(--background-neutral-regular-default)";
33
+ }
34
+ };
@@ -0,0 +1,4 @@
1
+ export type * from "./avatar.interface";
2
+ export * from "./avatar.size.constants";
3
+ export * from "./avatar.utils";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/avatar/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,oBAAoB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./avatar.size.constants";
2
+ export * from "./avatar.utils";
@@ -0,0 +1,4 @@
1
+ declare module "*.svg" {
2
+ const content: string;
3
+ export default content;
4
+ }
@@ -2,6 +2,7 @@ import { BadgeHolderProps } from "../badge/badge.interface";
2
2
 
3
3
  export type ButtonIconPosition = "left" | "right";
4
4
  export type ButtonType = "button" | "submit" | "reset";
5
+ export type ButtonIconAppearance = "filled" | "outlined";
5
6
 
6
7
  export interface ButtonProps extends BadgeHolderProps {
7
8
  label: string;
@@ -9,4 +10,6 @@ export interface ButtonProps extends BadgeHolderProps {
9
10
  size?: import("./common/common-button").ButtonSize;
10
11
  disabled?: boolean;
11
12
  iconPosition?: ButtonIconPosition;
13
+ icon?: string;
14
+ iconAppearance?: ButtonIconAppearance;
12
15
  }
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_CARD_WIDTH = "480px";
2
+ //# sourceMappingURL=card.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.constants.d.ts","sourceRoot":"","sources":["../../../components/card/card.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ export const DEFAULT_CARD_WIDTH = "480px";
@@ -1,9 +1,7 @@
1
- import { Size } from "../common/common-types";
2
-
3
1
  export type CardType = "default" | "outlined";
4
2
 
5
3
  export interface CardProps {
6
- size?: Size;
4
+ width?: string;
7
5
  cardType?: CardType;
8
6
  clickable?: boolean;
9
7
  disabled?: boolean;
@@ -1,9 +1,7 @@
1
- import type { Size } from "../common/common-types";
2
1
  import type { CardType } from "./card.interface";
3
2
  export interface CardStoryArgTypes {
4
- size: {
5
- control: "select";
6
- options: Size[];
3
+ width: {
4
+ control: "text";
7
5
  description: string;
8
6
  };
9
7
  cardType: {
@@ -21,12 +19,11 @@ export interface CardStoryArgTypes {
21
19
  };
22
20
  }
23
21
  export declare const cardStoryArgTypes: CardStoryArgTypes;
24
- export interface SizeExample {
25
- size: Size;
22
+ export interface WidthExample {
26
23
  label: string;
27
24
  width: string;
28
25
  }
29
- export declare const sizeExamples: SizeExample[];
26
+ export declare const widthExamples: WidthExample[];
30
27
  export interface CardTypeExample {
31
28
  cardType: CardType;
32
29
  title: string;
@@ -34,7 +31,7 @@ export interface CardTypeExample {
34
31
  }
35
32
  export declare const cardTypeExamples: CardTypeExample[];
36
33
  export interface DefaultStoryArgs {
37
- size: Size;
34
+ width: string;
38
35
  cardType: CardType;
39
36
  clickable: boolean;
40
37
  disabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"card.stories.shared.d.ts","sourceRoot":"","sources":["../../../components/card/card.stories.shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE;QACJ,OAAO,EAAE,QAAQ,CAAC;QAClB,OAAO,EAAE,IAAI,EAAE,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE,QAAQ,CAAC;QAClB,OAAO,EAAE,QAAQ,EAAE,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,SAAS,EAAE;QACT,OAAO,EAAE,SAAS,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE,SAAS,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,eAAO,MAAM,iBAAiB,EAAE,iBAmB/B,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,YAAY,EAAE,WAAW,EAMrC,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,gBAAgB,EAAE,eAAe,EAW7C,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB,EAAE,gBAK9B,CAAC;AAEF,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,eAAO,MAAM,kBAAkB,EAAE,kBAGhC,CAAC;AAEF,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,IAAI,CAAC;CAChB;AAED,eAAO,MAAM,iBAAiB,EAAE,iBAI/B,CAAC"}
1
+ {"version":3,"file":"card.stories.shared.d.ts","sourceRoot":"","sources":["../../../components/card/card.stories.shared.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE;QACL,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE,QAAQ,CAAC;QAClB,OAAO,EAAE,QAAQ,EAAE,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,SAAS,EAAE;QACT,OAAO,EAAE,SAAS,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,QAAQ,EAAE;QACR,OAAO,EAAE,SAAS,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,eAAO,MAAM,iBAAiB,EAAE,iBAkB/B,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,aAAa,EAAE,YAAY,EAMvC,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,gBAAgB,EAAE,eAAe,EAW7C,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB,EAAE,gBAK9B,CAAC;AAEF,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,eAAO,MAAM,kBAAkB,EAAE,kBAGhC,CAAC;AAEF,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,IAAI,CAAC;CAChB;AAED,eAAO,MAAM,iBAAiB,EAAE,iBAI/B,CAAC"}
@@ -1,8 +1,8 @@
1
+ import { DEFAULT_CARD_WIDTH } from "./card.constants";
1
2
  export const cardStoryArgTypes = {
2
- size: {
3
- control: "select",
4
- options: ["xs", "s", "m", "l", "xl"],
5
- description: "Size of the card",
3
+ width: {
4
+ control: "text",
5
+ description: "Width of the card (e.g. '480px', '50%'). Defaults to 480px.",
6
6
  },
7
7
  cardType: {
8
8
  control: "select",
@@ -18,12 +18,12 @@ export const cardStoryArgTypes = {
18
18
  description: "Whether the card is disabled",
19
19
  },
20
20
  };
21
- export const sizeExamples = [
22
- { size: "xs", label: "Extra Small (xs)", width: "240px width" },
23
- { size: "s", label: "Small (s)", width: "360px width" },
24
- { size: "m", label: "Medium (m)", width: "480px width" },
25
- { size: "l", label: "Large (l)", width: "600px width" },
26
- { size: "xl", label: "Extra Large (xl)", width: "720px width" },
21
+ export const widthExamples = [
22
+ { label: "Extra Small", width: "240px" },
23
+ { label: "Small", width: "360px" },
24
+ { label: "Medium", width: "480px" },
25
+ { label: "Large", width: "600px" },
26
+ { label: "Extra Large", width: "720px" },
27
27
  ];
28
28
  export const cardTypeExamples = [
29
29
  {
@@ -38,7 +38,7 @@ export const cardTypeExamples = [
38
38
  },
39
39
  ];
40
40
  export const defaultStoryArgs = {
41
- size: "m",
41
+ width: DEFAULT_CARD_WIDTH,
42
42
  cardType: "default",
43
43
  clickable: false,
44
44
  disabled: false,
@@ -1,4 +1,4 @@
1
- export * from "./card.constats";
1
+ export * from "./card.constants";
2
2
  export type * from "./card.interface";
3
3
  export * from "./card.stories.shared";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/card/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,mBAAmB,kBAAkB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/card/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,mBAAmB,kBAAkB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
@@ -1,2 +1,2 @@
1
- export * from "./card.constats";
1
+ export * from "./card.constants";
2
2
  export * from "./card.stories.shared";
@@ -4,4 +4,5 @@ export type Direction = "horizontal" | "vertical";
4
4
  export type Size = "xs" | "s" | "m" | "l" | "xl";
5
5
  export type Mode = "light" | "dark";
6
6
  export type Theme = "bleu_iceberg" | "vert_foret" | "violet";
7
+ export type DecorativeColor = "neutral" | "bleu-iceberg" | "vert-foret" | "violet" | "bleu-rte" | "bleu-digital" | "marine" | "bleu-petrole" | "bleu-cyan" | "vert" | "vert-indications" | "vert-digital" | "jaune" | "jaune-ocre" | "jaune-indications" | "saumon" | "rose-digital" | "fuschia" | "rouge-indication" | "taupe";
7
8
  //# sourceMappingURL=common-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common-types.d.ts","sourceRoot":"","sources":["../../../components/common/common-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AACpE,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AACnD,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;AAClD,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AACjD,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,MAAM,CAAC;AACpC,MAAM,MAAM,KAAK,GAAG,cAAc,GAAG,YAAY,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"common-types.d.ts","sourceRoot":"","sources":["../../../components/common/common-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AACpE,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AACnD,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;AAClD,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AACjD,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,MAAM,CAAC;AACpC,MAAM,MAAM,KAAK,GAAG,cAAc,GAAG,YAAY,GAAG,QAAQ,CAAC;AAC7D,MAAM,MAAM,eAAe,GACvB,SAAS,GACT,cAAc,GACd,YAAY,GACZ,QAAQ,GACR,UAAU,GACV,cAAc,GACd,QAAQ,GACR,cAAc,GACd,WAAW,GACX,MAAM,GACN,kBAAkB,GAClB,cAAc,GACd,OAAO,GACP,YAAY,GACZ,mBAAmB,GACnB,QAAQ,GACR,cAAc,GACd,SAAS,GACT,kBAAkB,GAClB,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const DRAWER_TRANSITION_DURATION = 240;
2
+ export declare const DRAWER_PADDING = 4;
3
+ //# sourceMappingURL=drawer.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.constants.d.ts","sourceRoot":"","sources":["../../../components/drawer/drawer.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAC9C,eAAO,MAAM,cAAc,IAAI,CAAC"}
@@ -0,0 +1,2 @@
1
+ export const DRAWER_TRANSITION_DURATION = 240;
2
+ export const DRAWER_PADDING = 4;
@@ -0,0 +1,19 @@
1
+ export type DrawerPosition = "modal" | "responsive";
2
+
3
+ export interface DrawerProps {
4
+ id: string;
5
+ title?: string;
6
+ icon?: string;
7
+ iconAppearance?: "outlined" | "filled";
8
+ isOpen: boolean;
9
+ onClose: () => void;
10
+ onClickToggle: () => void;
11
+ closeOnOverlayClick?: boolean;
12
+ primaryButtonLabel?: string;
13
+ secondaryButtonLabel?: string;
14
+ isCollapsible?: boolean;
15
+ position?: DrawerPosition;
16
+ fixedHeader?: boolean;
17
+ closeOnEscape?: boolean;
18
+ isClosable?: boolean;
19
+ }
@@ -0,0 +1,14 @@
1
+ import type { DrawerPosition } from "./drawer.interface";
2
+ export interface DrawerValidationInput {
3
+ hasCustomHeader: boolean;
4
+ hasTitle: boolean;
5
+ hasCustomFooter: boolean;
6
+ hasPrimaryButtonLabel: boolean;
7
+ position: DrawerPosition | undefined;
8
+ hasMainContent: boolean;
9
+ }
10
+ export declare function getDrawerConfigurationIssues(input: DrawerValidationInput): string | undefined;
11
+ export declare function shouldUseDrawerDefaultHeader(header: unknown | null, title?: string): boolean;
12
+ export declare function shouldUseDrawerDefaultFooter(footer: unknown | null, primaryButtonLabel?: string): boolean;
13
+ export declare const computeTransform: (isAnimating: boolean, drawerLeftPosition: number, padding?: number) => string;
14
+ //# sourceMappingURL=drawer.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawer.utils.d.ts","sourceRoot":"","sources":["../../../components/drawer/drawer.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,WAAW,qBAAqB;IACpC,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,QAAQ,EAAE,cAAc,GAAG,SAAS,CAAC;IACrC,cAAc,EAAE,OAAO,CAAC;CACzB;AAkCD,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,qBAAqB,GAAG,MAAM,GAAG,SAAS,CAE7F;AAED,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAE5F;AAED,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,EAAE,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,CAEzG;AACD,eAAO,MAAM,gBAAgB,GAAI,aAAa,OAAO,EAAE,oBAAoB,MAAM,EAAE,UAAS,MAAU,WAErG,CAAC"}