@wonderflow/react-components 3.0.0-next.1 → 3.0.0-next.5

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 (111) hide show
  1. package/avatar/avatar.js +2 -2
  2. package/button/button.d.ts +4 -4
  3. package/button/button.js +4 -5
  4. package/button/button.module.css +22 -19
  5. package/card/card.d.ts +1 -1
  6. package/card/card.js +2 -2
  7. package/chip/chip.d.ts +10 -3
  8. package/chip/chip.js +2 -2
  9. package/circular-progress/circular-progress.js +2 -2
  10. package/clamp-text/clamp-text.d.ts +1 -1
  11. package/clamp-text/clamp-text.js +2 -3
  12. package/container/container.js +2 -3
  13. package/core/typography.css +1 -6
  14. package/core.css +5 -1
  15. package/disclosure/disclosure.js +3 -3
  16. package/dropdown/dropdown-item.d.ts +1 -1
  17. package/dropdown/dropdown-item.js +2 -2
  18. package/dropdown/dropdown-menu.d.ts +3 -3
  19. package/dropdown/dropdown-menu.js +11 -5
  20. package/dropdown/dropdown.d.ts +9 -19
  21. package/dropdown/dropdown.js +7 -5
  22. package/elevator/elevator.d.ts +2 -2
  23. package/grid/grid-item.d.ts +5 -1
  24. package/grid/grid-item.js +5 -4
  25. package/grid/grid.d.ts +5 -21
  26. package/grid/grid.js +3 -3
  27. package/grid/index.d.ts +1 -1
  28. package/grid/index.js +1 -1
  29. package/icon/icon.js +2 -2
  30. package/icon-button/icon-button.d.ts +1 -1
  31. package/icon-button/icon-button.js +1 -2
  32. package/icons/all.svg +15 -7
  33. package/icons/structure.json +2 -0
  34. package/icons/types.d.ts +4 -0
  35. package/index.d.ts +3 -3
  36. package/index.js +2 -2
  37. package/info-state/info-state.d.ts +12 -3
  38. package/info-state/info-state.js +2 -2
  39. package/input-group/input-group.js +3 -3
  40. package/input-group/input-group.module.css +0 -3
  41. package/linear-progress/linear-progress.d.ts +4 -4
  42. package/linear-progress/linear-progress.js +3 -3
  43. package/list/list.d.ts +2 -1
  44. package/list/list.js +2 -3
  45. package/list/list.module.css +7 -0
  46. package/masonry/masonry.d.ts +2 -2
  47. package/masonry/masonry.js +2 -2
  48. package/modal/{modal-content.d.ts → content/modal-content.d.ts} +0 -0
  49. package/modal/{modal-content.js → content/modal-content.js} +5 -5
  50. package/modal/{modal-content.module.css → content/modal-content.module.css} +1 -1
  51. package/modal/index.d.ts +1 -1
  52. package/modal/index.js +1 -1
  53. package/modal/modal-context.d.ts +5 -5
  54. package/modal/modal-context.js +10 -1
  55. package/modal/modal.d.ts +5 -8
  56. package/modal/modal.js +10 -24
  57. package/overlay-container/index.d.ts +2 -0
  58. package/overlay-container/index.js +1 -0
  59. package/overlay-container/overlay-container.d.ts +6 -0
  60. package/overlay-container/overlay-container.js +15 -0
  61. package/package.json +30 -30
  62. package/pagination/pagination.d.ts +2 -4
  63. package/pagination/pagination.js +2 -2
  64. package/prose/prose.js +2 -3
  65. package/select/select.js +2 -2
  66. package/selection-controls/checkbox.js +2 -2
  67. package/selection-controls/radio.js +2 -2
  68. package/selection-controls/toggle.js +2 -2
  69. package/separator/index.d.ts +1 -0
  70. package/separator/separator.d.ts +3 -2
  71. package/separator/separator.js +2 -2
  72. package/skeleton-block/skeleton-block.d.ts +1 -1
  73. package/skeleton-block/skeleton-block.js +2 -2
  74. package/slider/slider.js +2 -2
  75. package/snackbar/snackbar.js +2 -3
  76. package/spinner/spinner.d.ts +5 -2
  77. package/spinner/spinner.js +5 -4
  78. package/split-button/split-button.js +2 -3
  79. package/stack/stack.js +2 -3
  80. package/star-meter/star-meter.d.ts +1 -1
  81. package/star-meter/star-meter.js +2 -3
  82. package/tab/index.d.ts +1 -1
  83. package/tab/index.js +1 -1
  84. package/tab/tab-item.d.ts +3 -1
  85. package/tab/tab-item.js +5 -5
  86. package/tab/tab-list.d.ts +3 -2
  87. package/tab/tab-list.js +2 -1
  88. package/tab/tab-panel.d.ts +4 -1
  89. package/tab/tab-panel.js +3 -2
  90. package/tab/tab.d.ts +10 -8
  91. package/tab/tab.js +6 -7
  92. package/table/table.d.ts +3 -3
  93. package/table/table.js +8 -9
  94. package/table/table.module.css +0 -4
  95. package/text/text.d.ts +1 -1
  96. package/text/text.js +2 -3
  97. package/text/text.module.css +22 -24
  98. package/textfield/base-field/base-field.d.ts +1 -0
  99. package/textfield/base-field/base-field.js +2 -2
  100. package/textfield/base-field/index.d.ts +1 -1
  101. package/textfield/textfield.d.ts +4 -4
  102. package/textfield/textfield.js +3 -3
  103. package/themes/dark.css +1 -1
  104. package/themes/light.css +1 -1
  105. package/themes.css +3 -3
  106. package/title/title.d.ts +1 -1
  107. package/title/title.js +2 -3
  108. package/title/title.module.css +60 -35
  109. package/toggle-button/toggle-button.js +2 -3
  110. package/toggle-button/toggle-button.module.css +16 -2
  111. package/tooltip/tooltip.d.ts +2 -2
package/icons/all.svg CHANGED
@@ -103,7 +103,7 @@
103
103
  </symbol><symbol id="16/crown" viewBox="0 0 16 16">
104
104
  <path d="M15 5.554a.976.976 0 0 1-.97.982c-.007 0-.012-.003-.018-.003l-1.226 6.823a.78.78 0 0 1-.764.644H4a.779.779 0 0 1-.763-.645L2.01 6.533c-.006 0-.011.003-.04.003A.977.977 0 0 1 1 5.554a.99.99 0 0 1 .97-.983.99.99 0 0 1 .971.983c0 .22-.085.414-.207.578l2.175 1.76a.772.772 0 0 0 1.18-.261l1.398-2.829a.97.97 0 0 1-.469-.82c0-.542.457-.982.993-.982s.949.44.949.982a.969.969 0 0 1-.469.82L9.89 7.631a.772.772 0 0 0 1.18.262l2.175-1.76c-.1-.164-.185-.38-.185-.58 0-.542.434-.982.97-.982.537 0 .971.44.971.983Z"/>
105
105
  </symbol><symbol id="16/earth-europa" viewBox="0 0 16 16">
106
- <path d="M8 1a7 7 0 0 0-7 7 7 7 0 0 0 7 7 7 7 0 0 0 7-7 7 7 0 0 0-7-7Zm5.688 7c0 .61-.1 1.198-.279 1.75h-.63a.42.42 0 0 1-.311-.13l-.878-.89a.328.328 0 0 1 .004-.458l.34-.34v-.236a.298.298 0 0 0-.089-.218l-.255-.256a.32.32 0 0 0-.221-.092h-.437a.31.31 0 0 1-.219-.526l.258-.256a.307.307 0 0 1 .219-.092h.874c.169 0 .311-.14.311-.307v-.257c0-.17-.142-.31-.31-.31H11.06a.44.44 0 0 0-.437.437v.122a.44.44 0 0 1-.298.417l-.864.286a.219.219 0 0 0-.15.209v.058a.22.22 0 0 1-.218.218h-.44a.22.22 0 0 1-.219-.218.218.218 0 0 0-.219-.219h-.082a.23.23 0 0 0-.199.12l-.255.511c-.076.147-.227.215-.416.215h-.582a.436.436 0 0 1-.437-.437v-.665a.43.43 0 0 1 .13-.307l.549-.55a.666.666 0 0 0 .196-.477.22.22 0 0 1 .152-.209l1.092-.361a.312.312 0 0 0 .12-.076l.735-.73A.31.31 0 0 0 9 3.197h-.566l-.44.437v.218c0 .12-.096.219-.219.219h-.438a.22.22 0 0 1-.218-.219v-.546c0-.068.033-.133.09-.174l1.025-.808c3.027.125 5.453 2.619 5.453 5.676ZM4.775 5.077c0-.082.033-.16.093-.219l.692-.694a.318.318 0 0 1 .218-.092c.173 0 .312.14.312.311v.438c0 .082-.033.16-.09.218l-.258.257a.301.301 0 0 1-.22.09h-.438a.309.309 0 0 1-.309-.31Zm3.662 8.589-.004-.43c-.003 0 .002 0 0 0a.44.44 0 0 0-.437-.413h-.552c-.295 0-.729-.144-.967-.321l-.605-.458a1.242 1.242 0 0 1-.498-.995v-.653c0-.438.228-.845.603-1.067l1.172-.704c.195-.112.417-.177.642-.177h.851c.298 0 .586.106.811.297l1.18 1.015h.5c.234 0 .456.093.618.257l.474.475c.08.078.187.122.302.133h.514c-.889 1.67-2.603 2.887-4.604 3.04Z"/>
106
+ <path d="M8 1a7 7 0 0 0-7 7 7 7 0 0 0 7 7 7 7 0 0 0 7-7 7 7 0 0 0-7-7Zm5.688 7c0 .61-.1 1.198-.279 1.75h-.63a.42.42 0 0 1-.311-.13l-.878-.89a.328.328 0 0 1 .004-.458l.34-.34v-.236a.298.298 0 0 0-.089-.218l-.255-.256a.32.32 0 0 0-.221-.092h-.437a.31.31 0 0 1-.219-.526l.258-.256a.307.307 0 0 1 .219-.092h.874c.169 0 .311-.14.311-.307v-.257c0-.17-.142-.31-.31-.31H11.06a.44.44 0 0 0-.437.437v.122a.44.44 0 0 1-.298.417l-.864.286a.219.219 0 0 0-.15.209v.058a.22.22 0 0 1-.218.218h-.44a.22.22 0 0 1-.219-.218.218.218 0 0 0-.219-.219h-.082a.23.23 0 0 0-.199.12l-.255.511c-.076.147-.227.215-.416.215h-.582a.436.436 0 0 1-.437-.437v-.665a.43.43 0 0 1 .13-.307l.549-.55a.666.666 0 0 0 .196-.477.22.22 0 0 1 .152-.209l1.092-.361a.312.312 0 0 0 .12-.076l.735-.73A.31.31 0 0 0 9 3.197h-.566l-.44.437v.218c0 .12-.096.219-.219.219h-.438a.22.22 0 0 1-.218-.219v-.546c0-.068.033-.133.09-.174l1.025-.808c3.027.125 5.453 2.619 5.453 5.676ZM4.775 5.077c0-.082.033-.16.093-.219l.692-.694a.318.318 0 0 1 .218-.092c.173 0 .312.14.312.311v.438c0 .082-.033.16-.09.218l-.258.257a.301.301 0 0 1-.22.09h-.438a.309.309 0 0 1-.309-.31v.001Zm3.662 8.589-.004-.43c-.003 0 .002 0 0 0a.44.44 0 0 0-.437-.413h-.552c-.295 0-.729-.144-.967-.321l-.605-.458a1.242 1.242 0 0 1-.498-.995v-.653c0-.438.228-.845.603-1.067l1.172-.704c.195-.112.417-.177.642-.177h.851c.298 0 .586.106.811.297l1.18 1.015h.5c.234 0 .456.093.618.257l.474.475c.08.078.187.122.302.133h.514c-.889 1.67-2.603 2.887-4.604 3.04Z"/>
107
107
  </symbol><symbol id="16/envelope" viewBox="0 0 16 16">
108
108
  <path d="M8 10.25a2.03 2.03 0 0 1-1.29-.47L1 5.128v6.497C1 12.385 1.588 13 2.313 13h11.374c.725 0 1.313-.616 1.313-1.375V5.128L9.29 9.783A2.045 2.045 0 0 1 8 10.25ZM1.445 4.329l5.803 4.73c.442.36 1.063.36 1.505 0l5.803-4.73c.255-.23.444-.582.444-.954C15 2.615 14.412 2 13.687 2H2.313C1.587 2 1 2.616 1 3.375c0 .372.164.725.445.954Z"/>
109
109
  </symbol><symbol id="16/eye" viewBox="0 0 16 16">
@@ -131,6 +131,8 @@
131
131
  <path d="M12.023 13.972c.555 0 .977-.447.977-1V3c0-.552-.45-1-1.006-1a.973.973 0 0 0-.977.972v9.998c0 .58.478 1.002 1.006 1.002ZM4.65 13.77l6.034-4.972a1 1 0 0 0 .36-.77 1 1 0 0 0-.36-.77L4.65 2.286A.978.978 0 0 0 3 3v9.998c0 .856 1.002 1.306 1.65.771Z"/>
132
132
  </symbol><symbol id="16/frown" viewBox="0 0 16 16">
133
133
  <path d="M8 1a7 7 0 0 0-7 7 7 7 0 0 0 7 7 7 7 0 0 0 7-7 7 7 0 0 0-7-7Zm2.188 4.813a.874.874 0 1 1 0 1.75.875.875 0 1 1 0-1.75Zm-4.4 0a.875.875 0 1 1-.875.875.89.89 0 0 1 .875-.875Zm4.678 5.966a3.221 3.221 0 0 0-2.49-1.154 3.17 3.17 0 0 0-2.467 1.155c-.37.445-1.041-.115-.672-.561A4.169 4.169 0 0 1 8 9.75a4.06 4.06 0 0 1 3.134 1.47c.374.42-.299 1.005-.668.559Z"/>
134
+ </symbol><symbol id="16/gear" viewBox="0 0 16 16">
135
+ <path d="M14 9.93a.42.42 0 0 0-.202-.358l-1.149-.683c.052-.29.082-.607.082-.889 0-.282-.03-.6-.082-.89l1.148-.682A.419.419 0 0 0 14 6.07c0-.358-1.034-2.514-1.573-2.514a.397.397 0 0 0-.204.056l-1.15.685a4.7 4.7 0 0 0-1.495-.889V2.04a.406.406 0 0 0-.309-.401A6.001 6.001 0 0 0 8 1.5c-.436 0-.86.05-1.269.139a.407.407 0 0 0-.308.401v1.368a4.699 4.699 0 0 0-1.494.888L3.777 3.61a.396.396 0 0 0-.203-.056C3.088 3.555 2 5.636 2 6.07c0 .144.077.283.202.357l1.149.684c-.052.29-.083.584-.083.889 0 .305.031.6.083.89l-1.149.682A.42.42 0 0 0 2 9.93c0 .358 1.034 2.514 1.574 2.514a.395.395 0 0 0 .203-.056l1.151-.685c.441.388.948.689 1.495.888v1.368c0 .19.127.362.308.401.411.09.833.14 1.246.14.414 0 .86-.05 1.27-.139.202-.062.33-.211.33-.402v-1.368a4.69 4.69 0 0 0 1.494-.888l1.152.685a.397.397 0 0 0 .203.056c.485 0 1.574-2.08 1.574-2.514Zm-6 .101c-1.087 0-1.972-.911-1.972-2.031S6.913 5.969 8 5.969c1.086 0 1.97.911 1.97 2.031S9.086 10.031 8 10.031Z"/>
134
136
  </symbol><symbol id="16/github" viewBox="0 0 16 16">
135
137
  <path fill-rule="evenodd" clip-rule="evenodd" d="M7.941 1C4.107 1 .969 4.137.969 7.972c0 3.05 2.005 5.664 4.793 6.623.349.087.436-.174.436-.349v-1.22c-1.917.436-2.353-.871-2.353-.871-.348-.784-.784-1.046-.784-1.046-.61-.436.087-.436.087-.436.697.088 1.046.697 1.046.697.61 1.134 1.655.785 2.004.61.087-.435.262-.784.436-.958-1.569-.174-3.137-.784-3.137-3.486 0-.784.261-1.394.697-1.83-.087-.174-.349-.872.087-1.83 0 0 .61-.174 1.917.697a5.619 5.619 0 0 1 1.743-.261c.61 0 1.22.087 1.743.261 1.307-.871 1.917-.697 1.917-.697.349.958.174 1.656.087 1.83.436.523.698 1.133.698 1.83 0 2.702-1.656 3.225-3.225 3.399.262.348.523.784.523 1.394v1.917c0 .175.087.436.523.349C12.996 13.636 15 11.022 15 7.972 14.913 4.137 11.775 1 7.941 1Z"/>
136
138
  </symbol><symbol id="16/graduation-cap" viewBox="0 0 16 16">
@@ -189,7 +191,7 @@
189
191
  </g>
190
192
 
191
193
  </symbol><symbol id="16/signal-stream" viewBox="0 0 16 16">
192
- <path d="M5.465 5.216a.577.577 0 0 0-.824.081c-1.223 1.49-1.223 3.917 0 5.409.115.14.277.212.439.212a.56.56 0 0 0 .385-.155.656.656 0 0 0 .053-.882c-.85-1.036-.85-2.722 0-3.758a.687.687 0 0 0-.053-.907Zm7.999-1.904a.744.744 0 0 0-1.093-.129.875.875 0 0 0-.12 1.172A6.031 6.031 0 0 1 13.443 8c0 1.341-.412 2.602-1.194 3.622a.875.875 0 0 0 .12 1.172.666.666 0 0 0 .486.206.758.758 0 0 0 .607-.312C14.456 11.365 15 9.701 15 8c0-1.7-.544-3.364-1.536-4.688ZM2.556 8c0-1.341.412-2.602 1.194-3.622a.875.875 0 0 0-.12-1.172.746.746 0 0 0-1.094.128C1.546 4.636 1 6.3 1 8c0 1.7.545 3.365 1.536 4.688a.76.76 0 0 0 .607.312c.17 0 .342-.06.486-.183a.875.875 0 0 0 .12-1.172A6.028 6.028 0 0 1 2.557 8Zm8.803-2.703a.558.558 0 0 0-.824-.057.656.656 0 0 0-.053.882c.85 1.036.85 2.721 0 3.758a.656.656 0 0 0 .053.882.56.56 0 0 0 .824-.057c1.223-1.491 1.223-3.918 0-5.408ZM8 6.542c-.751 0-1.361.653-1.361 1.458 0 .805.61 1.458 1.361 1.458S9.361 8.805 9.361 8c0-.805-.61-1.458-1.361-1.458Z"/>
194
+ <path d="M5.465 5.216a.577.577 0 0 0-.824.081c-1.223 1.49-1.223 3.917 0 5.409.115.14.277.212.439.212a.56.56 0 0 0 .385-.155.656.656 0 0 0 .053-.882c-.85-1.036-.85-2.722 0-3.758a.687.687 0 0 0-.053-.907Zm7.999-1.904a.744.744 0 0 0-1.093-.129.875.875 0 0 0-.12 1.172A6.03 6.03 0 0 1 13.443 8c0 1.341-.412 2.602-1.194 3.622a.875.875 0 0 0 .12 1.172.666.666 0 0 0 .486.206.758.758 0 0 0 .607-.312C14.456 11.365 15 9.701 15 8c0-1.7-.544-3.364-1.536-4.688ZM2.556 8c0-1.341.412-2.602 1.194-3.622a.875.875 0 0 0-.12-1.172.746.746 0 0 0-1.094.128C1.546 4.636 1 6.3 1 8c0 1.7.545 3.365 1.536 4.688a.76.76 0 0 0 .607.312c.17 0 .342-.06.486-.183a.875.875 0 0 0 .12-1.172A6.028 6.028 0 0 1 2.557 8Zm8.803-2.703a.558.558 0 0 0-.824-.057.656.656 0 0 0-.053.882c.85 1.036.85 2.721 0 3.758a.656.656 0 0 0 .053.882.56.56 0 0 0 .824-.057c1.223-1.491 1.223-3.918 0-5.408ZM8 6.542c-.751 0-1.361.653-1.361 1.458 0 .805.61 1.458 1.361 1.458S9.361 8.805 9.361 8c0-.805-.61-1.458-1.361-1.458Z"/>
193
195
  </symbol><symbol id="16/smile" viewBox="0 0 16 16">
194
196
  <path d="M8 1a7 7 0 0 0-7 7 7 7 0 0 0 7 7 7 7 0 0 0 7-7 7 7 0 0 0-7-7Zm2.188 4.813a.874.874 0 1 1 0 1.75.875.875 0 1 1 0-1.75Zm-4.4 0a.875.875 0 1 1-.875.875.89.89 0 0 1 .875-.875Zm5.351 4.653c-.78.936-1.922 1.447-3.139 1.447a4.073 4.073 0 0 1-3.14-1.47c-.37-.446.3-1.004.673-.56A3.146 3.146 0 0 0 8 11.06c.957 0 1.854-.422 2.466-1.155.367-.442 1.042.116.673.561Z"/>
195
197
  </symbol><symbol id="16/smile-rotate-right" viewBox="0 0 16 16">
@@ -222,8 +224,10 @@
222
224
  <path fill-rule="evenodd" clip-rule="evenodd" d="M15.04 1.52A.75.75 0 1 0 13.96.48L11.53 3H3a2 2 0 0 0-2 2v6a2 2 0 0 0 1.095 1.784L.46 14.479a.75.75 0 0 0 1.08 1.042l13.5-14ZM3.58 11.244l-.66.685H2l2.329-7.53h1.607l1.027 3.337L5.95 8.787l-.822-2.95h-.06l-.85 3.046h1.64l-1.07 1.109h-.855l-.351 1.251Zm4.162-.978 1.28-1.327v.496c0 1.606.793 2.566 2.014 2.566.783 0 1.413-.414 1.581-1.01h.066v.938H14V4h-.216l.508-.527C14.725 3.84 15 4.388 15 5v6a2 2 0 0 1-2 2H5.105l1.542-1.599.148.527h1.46l-.513-1.663Zm4.916-3.302V5.168l-.914.948c.41.154.714.45.853.847h.06Zm0 1.622c0-.877-.489-1.43-1.16-1.43-.676 0-1.103.558-1.103 1.557v.568c0 1.004.432 1.567 1.124 1.567.681 0 1.139-.552 1.139-1.506v-.756Z"/>
223
225
  </g>
224
226
 
227
+ </symbol><symbol id="16/thumbs-down" viewBox="0 0 16 16">
228
+ <path d="M3.625 4.001h-1.75c-.483 0-.875.384-.875.833v5.976c0 .473.392.833.875.833h1.75c.483 0 .875-.384.875-.833V4.858A.866.866 0 0 0 3.625 4Zm10.153 5.576c.213-.228.347-.53.347-.865 0-.629-.461-1.15-1.07-1.262a1.284 1.284 0 0 0-.714-1.906.947.947 0 0 0 .034-.259c0-.71-.588-1.285-1.313-1.285H9.459c-.947 0-1.867.3-2.624.857l-.934.685a1.27 1.27 0 0 0-.525 1.005l.003 4.286c.002.375.167.748.49 1l.445.35C8.553 13.962 7.546 16 9.271 16c.847 0 1.353-.657 1.353-1.289 0-.405-.321-1.556-.944-2.572h4.008c.725 0 1.312-.575 1.312-1.285 0-.68-.541-1.232-1.222-1.277Z"/>
225
229
  </symbol><symbol id="16/thumbs-up" viewBox="0 0 16 16">
226
- <path d="M4.5 13.119v-6c0-.474-.392-.833-.875-.833h-1.75c-.483 0-.875.384-.875.833v5.976c0 .473.392.833.875.833h1.75c.484.048.875-.314.875-.81ZM15 7.146c0-.71-.587-1.286-1.313-1.286H9.683c.622-1.015.944-2.166.944-2.572C10.625 2.657 10.119 2 9.27 2c-1.726 0-.72 2.04-2.958 3.793l-.446.348a1.28 1.28 0 0 0-.49 1.002l-.002 4.286c0 .404.194.785.525 1.028l.934.685A4.423 4.423 0 0 0 9.457 14h1.605c.726 0 1.313-.575 1.313-1.285a1.26 1.26 0 0 0-.034-.283c.526-.168.909-.645.909-1.218 0-.245-.074-.471-.195-.666a1.291 1.291 0 0 0 1.07-1.26c0-.334-.134-.637-.348-.865C14.46 8.378 15 7.826 15 7.146Z"/>
230
+ <path d="M4.5 12.119v-6c0-.474-.392-.833-.875-.833h-1.75c-.483 0-.875.384-.875.833v5.976c0 .473.392.833.875.833h1.75c.484.048.875-.314.875-.81ZM15 6.146c0-.71-.587-1.286-1.313-1.286H9.683c.622-1.015.944-2.166.944-2.572C10.625 1.657 10.119 1 9.27 1c-1.726 0-.72 2.04-2.958 3.793l-.446.348a1.28 1.28 0 0 0-.49 1.002l-.002 4.286c0 .404.194.785.525 1.028l.934.685A4.423 4.423 0 0 0 9.457 13h1.605c.726 0 1.313-.575 1.313-1.285a1.26 1.26 0 0 0-.034-.283c.526-.168.909-.645.909-1.218 0-.245-.074-.471-.195-.666a1.29 1.29 0 0 0 1.07-1.26c0-.334-.134-.637-.348-.865C14.46 7.378 15 6.826 15 6.146Z"/>
227
231
  </symbol><symbol id="16/thumbtack" viewBox="0 0 16 16">
228
232
  <path d="M7.167 14.49c0 .035.007.068.022.099l.625 1.29a.204.204 0 0 0 .372 0l.625-1.29a.28.28 0 0 0 .022-.098v-1.997H7.167v1.997Zm3.593-6.62-.319-3.24h1.1a.636.636 0 0 0 .626-.633V2.633A.635.635 0 0 0 11.542 2H4.458a.636.636 0 0 0-.625.633v1.29c0 .412.28.682.625.682h1.1l-.32 3.265C3.977 8.486 3 9.596 3 10.96c0 .363.28.633.625.633h8.75A.636.636 0 0 0 13 10.96c0-1.378-.99-2.48-2.24-3.09Z"/>
229
233
  </symbol><symbol id="16/triangle-exclamation" viewBox="0 0 16 16">
@@ -266,7 +270,7 @@
266
270
  </symbol><symbol id="24/arrow-up-right" viewBox="0 0 24 24">
267
271
  <path d="M20 5.2v12a1.2 1.2 0 0 1-2.4 0V8.095L6.05 19.645a1.196 1.196 0 0 1-1.698.003 1.2 1.2 0 0 1 0-1.697L15.905 6.4H6.8a1.199 1.199 0 1 1 0-2.4h12c.665 0 1.2.54 1.2 1.2Z"/>
268
272
  </symbol><symbol id="24/backward-step" viewBox="0 0 24 24">
269
- <path d="M16.566 3c-.317 0-.629.11-.887.322L7.5 10.041V3.75a.75.75 0 1 0-1.5 0v16.5a.751.751 0 0 0 1.5 0v-6.29l8.18 6.717c.215.215.567.323.886.323.482 0 1.434-.38 1.434-1.542V4.5c0-1.119-.952-1.5-1.434-1.5ZM16.5 19.519 7.524 12 16.5 4.48v15.04Z"/>
273
+ <path d="M7.059 21c.584 0 1.059-.504 1.059-1.125v-4.96l7.65 5.805a1.348 1.348 0 0 0 1.467.115 1.45 1.45 0 0 0 .559-.554c.135-.235.206-.506.206-.781V4.542c0-.563-.295-1.077-.765-1.335A1.063 1.063 0 0 0 16.588 3c-.29 0-.576.094-.82.28l-7.65 5.804V4.125C8.118 3.504 7.643 3 7.058 3 6.475 3 6 3.502 6 4.125v15.75C6 20.496 6.472 21 7.059 21Zm1.059-9.15 7.764-5.892v12.084L8.118 12.15v-.3Z"/>
270
274
  </symbol><symbol id="24/ban" viewBox="0 0 24 24">
271
275
  <path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2ZM3.875 12c0-1.903.662-3.651 1.762-5.004L17.04 18.398A8.287 8.287 0 0 1 12 20.125c-4.48 0-8.125-3.645-8.125-8.125Zm14.488 5.004L6.961 5.637A8.084 8.084 0 0 1 12 3.875c4.48 0 8.125 3.645 8.125 8.125a7.926 7.926 0 0 1-1.762 5.004Z"/>
272
276
  </symbol><symbol id="24/bars" viewBox="0 0 24 24">
@@ -340,9 +344,11 @@
340
344
  </symbol><symbol id="24/filter" viewBox="0 0 24 24">
341
345
  <path d="M20.849 5.064c-.27-.58-.84-.939-1.49-.939H4.64c-.648 0-1.22.36-1.49.939a1.575 1.575 0 0 0 .224 1.69l5.815 7.14v2.381c0 .442.217.855.58 1.106l2.895 2.234c.218.176.517.26.791.26.749 0 1.357-.604 1.357-1.348v-4.632l5.819-7.147c.397-.473.482-1.12.218-1.684Zm-7.47 7.889a1.127 1.127 0 0 0-.254.71v4.177l-2.25-1.737v-2.409c0-.259-.089-.51-.252-.71l-5.838-7.17h14.428l-5.835 7.139Z"/>
342
346
  </symbol><symbol id="24/forward-step" viewBox="0 0 24 24">
343
- <path d="M17.25 3a.751.751 0 0 0-.75.75v6.29L8.322 3.324A1.388 1.388 0 0 0 7.436 3C6.95 3 6 3.381 6 4.501v14.996C6 20.62 6.95 21 7.436 21c.316 0 .628-.11.886-.322l8.178-6.719v6.291a.75.75 0 1 0 1.5 0V3.75a.751.751 0 0 0-.75-.75ZM7.5 19.519V4.48L16.477 12 7.5 19.519Z"/>
347
+ <path d="M16.941 3c-.584 0-1.059.504-1.059 1.125v4.96L8.232 3.28a1.348 1.348 0 0 0-1.467-.115 1.45 1.45 0 0 0-.559.554A1.572 1.572 0 0 0 6 4.5v14.958c0 .563.295 1.077.765 1.335.204.15.426.207.647.207.29 0 .576-.094.82-.28l7.65-5.804v4.959c0 .621.475 1.125 1.06 1.125.584 0 1.058-.502 1.058-1.125V4.125C18 3.504 17.528 3 16.941 3Zm-1.059 9.15-7.764 5.892V5.958l7.764 5.892v.3Z"/>
344
348
  </symbol><symbol id="24/frown" viewBox="0 0 24 24">
345
349
  <path d="M12 13.875c-1.57 0-3.046.693-4.055 1.9a.936.936 0 0 0 .119 1.318.944.944 0 0 0 1.324-.122 3.376 3.376 0 0 1 2.577-1.221c.976 0 1.964.44 2.612 1.22a.936.936 0 1 0 1.443-1.196c-1.008-1.204-2.45-1.899-4.02-1.899Zm-3.16-2.5c.695 0 1.25-.557 1.25-1.25s-.555-1.25-1.25-1.25c-.69 0-1.25.557-1.25 1.25s.594 1.25 1.25 1.25ZM12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18.125c-4.48 0-8.125-3.645-8.125-8.125S7.52 3.875 12 3.875 20.125 7.52 20.125 12 16.48 20.125 12 20.125Zm3.125-11.25c-.695 0-1.25.557-1.25 1.25s.555 1.25 1.25 1.25c.69 0 1.25-.557 1.25-1.25s-.559-1.25-1.25-1.25Z"/>
350
+ </symbol><symbol id="24/gear" viewBox="0 0 24 24">
351
+ <path d="M21 14.193a.926.926 0 0 0-.448-.794l-1.194-.704c.024-.209.035-.454.035-.695 0-.241-.012-.486-.035-.728l1.194-.704A.926.926 0 0 0 21 9.774c0-.79-1.789-4.757-3.066-4.757a.87.87 0 0 0-.449.124l-1.188.704a7.036 7.036 0 0 0-1.236-.732V3.706a.91.91 0 0 0-.665-.886 9.15 9.15 0 0 0-4.793 0 .91.91 0 0 0-.664.886v1.408a7.045 7.045 0 0 0-1.236.732l-1.189-.704a.869.869 0 0 0-.448-.124C4.888 5.018 3 8.792 3 9.775c0 .321.167.625.448.794l1.194.704a7.59 7.59 0 0 0 0 1.455l-1.193.704a.91.91 0 0 0-.449.761c0 .79 1.79 4.758 3.066 4.758a.87.87 0 0 0 .449-.125l1.189-.704c.386.286.8.532 1.236.733v1.407a.91.91 0 0 0 .664.887 7.969 7.969 0 0 0 2.364.351c.807 0 1.613-.107 2.397-.32a.91.91 0 0 0 .665-.886v-1.408a7.043 7.043 0 0 0 1.236-.732l1.189.704a.868.868 0 0 0 .448.124c1.21.002 3.097-3.776 3.097-4.789Zm-3.225 2.746-1.583-.937c-1.526 1.128-1.173.918-2.872 1.703v1.864a7.446 7.446 0 0 1-2.64 0v-1.864c-1.704-.787-1.35-.577-2.872-1.703l-1.583.937a7.745 7.745 0 0 1-1.321-2.342l1.55-.901c-.061-.95-.108-1.321-.108-1.696 0-.372.046-.745.138-1.698l-1.58-.93a7.748 7.748 0 0 1 1.321-2.345l1.584.938c1.525-1.128 1.172-.918 2.871-1.703V4.399a7.452 7.452 0 0 1 2.641 0v1.864c1.703.788 1.349.577 2.872 1.703l1.583-.937a7.737 7.737 0 0 1 1.32 2.342l-1.582.933c.092.952.138 1.323.138 1.695 0 .372-.046.745-.138 1.698l1.58.933c-.3.855-.75 1.649-1.319 2.31Zm-5.774-8.535c-1.918 0-3.482 1.6-3.482 3.563 0 1.962 1.563 3.562 3.482 3.562 1.918 0 3.482-1.6 3.482-3.562 0-1.962-1.564-3.563-3.482-3.563Zm0 5.377c-.961 0-1.741-.798-1.741-1.781 0-.983.78-1.781 1.74-1.781.962 0 1.742.799 1.742 1.781 0 .982-.78 1.781-1.741 1.781Z"/>
346
352
  </symbol><symbol id="24/github" viewBox="0 0 24 24">
347
353
  <path fill-rule="evenodd" clip-rule="evenodd" d="M12.03 2C6.504 2 1.98 6.523 1.98 12.052A10.04 10.04 0 0 0 8.847 21.6c.502.084.67-.252.67-.503v-1.675c-2.764.586-3.35-1.34-3.35-1.34-.42-1.173-1.09-1.508-1.09-1.508-1.005-.586 0-.586 0-.586 1.006.083 1.508 1.005 1.508 1.005.922 1.508 2.346 1.089 2.932.837.084-.67.335-1.088.67-1.34-2.262-.251-4.607-1.089-4.607-4.942 0-1.089.419-2.01 1.005-2.68 0-.335-.419-1.34.168-2.68 0 0 .837-.252 2.764 1.004.838-.25 1.675-.335 2.513-.335.838 0 1.675.084 2.513.335 1.926-1.34 2.764-1.005 2.764-1.005.586 1.424.168 2.43.084 2.68.67.67 1.005 1.592 1.005 2.681 0 3.853-2.345 4.69-4.607 4.942.335.335.67.922.67 1.843v2.764c0 .252.168.587.67.503A10.04 10.04 0 0 0 22 12.05C22.083 6.524 17.559 2 12.03 2Z"/>
348
354
  </symbol><symbol id="24/graduation-cap" viewBox="0 0 24 24">
@@ -392,7 +398,7 @@
392
398
  </symbol><symbol id="24/share-from-square" viewBox="0 0 24 24">
393
399
  <path d="m23.727 7.267-5.25-5.023a.861.861 0 0 0-1.237.036.902.902 0 0 0 .036 1.26l3.65 3.516h-5.958c-1.486-.101-2.864.523-3.91 1.579a5.7 5.7 0 0 0-1.641 4.037v3.239c0 .492.392.858.875.858s.875-.33.875-.825v-3.272c0-1.054.399-2.038 1.122-2.77.712-.717 1.608-1.133 2.67-1.096h5.964l-3.65 3.515a.903.903 0 0 0-.035 1.261c.172.152.403.28.636.28.215 0 .432-.08.6-.244l5.25-5.023c.178-.202.276-.436.276-.681a.894.894 0 0 0-.273-.647Zm-7.602 8.974c-.483 0-.875.4-.875.86v1.75c0 .164-.131.264-.292.264H5.042c-.161 0-.292-.133-.292-.264V8.806c0-.164.131-.264.292-.264h2.041c.483 0 .875-.4.875-.859a.877.877 0 0 0-.875-.859H5.042A2.057 2.057 0 0 0 3 8.873v10.079C3 20.066 3.916 21 5.042 21h9.916A2.057 2.057 0 0 0 17 18.951v-1.75c0-.558-.39-.96-.875-.96Z"/>
394
400
  </symbol><symbol id="24/signal-stream" viewBox="0 0 24 24">
395
- <path d="M19.565 5.283a.807.807 0 0 0-1.179-.052.906.906 0 0 0-.049 1.237c2.675 3.05 2.675 8.013 0 11.065a.906.906 0 0 0 .05 1.236.807.807 0 0 0 1.178-.052c3.247-3.702 3.247-9.732 0-13.434Zm-3.944 2.82a.905.905 0 0 0-.076 1.235c1.214 1.45 1.214 3.81 0 5.26a.905.905 0 0 0 .076 1.235c.158.113.354.218.55.218.232 0 .462-.1.627-.297 1.747-2.088 1.747-5.484 0-7.573a.865.865 0 0 0-1.177-.078ZM5.614 5.232a.807.807 0 0 0-1.179.05c-3.247 3.705-3.247 9.732 0 13.436a.808.808 0 0 0 1.178.051.906.906 0 0 0 .05-1.237c-2.675-3.05-2.675-8.013 0-11.065a.906.906 0 0 0-.05-1.235Zm2.764 2.87a.836.836 0 0 0-1.177.114c-1.748 2.087-1.748 5.483 0 7.572a.81.81 0 0 0 1.177.08.905.905 0 0 0 .076-1.235c-1.214-1.45-1.214-3.81 0-5.261.306-.365.271-.92-.076-1.27Zm3.621 2.44c-.767 0-1.39.653-1.39 1.425 0 .773.623 1.491 1.39 1.491.768 0 1.39-.653 1.39-1.425 0-.773-.622-1.491-1.39-1.491Z"/>
401
+ <path d="M19.565 5.283a.807.807 0 0 0-1.179-.052.906.906 0 0 0-.049 1.237c2.675 3.05 2.675 8.013 0 11.065a.906.906 0 0 0 .05 1.236.807.807 0 0 0 1.178-.051c3.247-3.703 3.247-9.733 0-13.435Zm-3.944 2.82a.905.905 0 0 0-.076 1.235c1.214 1.45 1.214 3.81 0 5.26a.905.905 0 0 0 .076 1.235c.158.113.354.218.55.218.232 0 .462-.1.627-.297 1.747-2.088 1.747-5.484 0-7.573a.865.865 0 0 0-1.177-.078ZM5.614 5.232a.807.807 0 0 0-1.179.05c-3.247 3.705-3.247 9.732 0 13.436a.808.808 0 0 0 1.178.051.906.906 0 0 0 .05-1.237c-2.675-3.05-2.675-8.013 0-11.065a.906.906 0 0 0-.05-1.235Zm2.764 2.87a.836.836 0 0 0-1.177.114c-1.748 2.087-1.748 5.483 0 7.572a.81.81 0 0 0 1.177.08.905.905 0 0 0 .076-1.235c-1.214-1.45-1.214-3.81 0-5.261.306-.365.271-.92-.076-1.27Zm3.621 2.44c-.767 0-1.39.653-1.39 1.425 0 .773.623 1.491 1.39 1.491.768 0 1.39-.653 1.39-1.425 0-.773-.622-1.491-1.39-1.491Z"/>
396
402
  </symbol><symbol id="24/smile" viewBox="0 0 24 24">
397
403
  <path d="M15.125 11.375c.69 0 1.25-.557 1.25-1.25s-.56-1.25-1.25-1.25c-.695 0-1.25.557-1.25 1.25s.555 1.25 1.25 1.25Zm-6.285 0c.695 0 1.25-.557 1.25-1.25s-.555-1.25-1.25-1.25c-.69 0-1.25.557-1.25 1.25s.594 1.25 1.25 1.25Zm6.441 2.836A4.263 4.263 0 0 1 12 15.75a4.25 4.25 0 0 1-3.283-1.538.939.939 0 0 0-1.32-.122.941.941 0 0 0-.12 1.32A6.132 6.132 0 0 0 12 17.626c1.828 0 3.552-.81 4.723-2.216a.932.932 0 0 0-.119-1.318.942.942 0 0 0-1.323.119ZM12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18.125c-4.48 0-8.125-3.645-8.125-8.125S7.52 3.875 12 3.875 20.125 7.52 20.125 12 16.48 20.125 12 20.125Z"/>
398
404
  </symbol><symbol id="24/smile-rotate-right" viewBox="0 0 24 24">
@@ -419,8 +425,10 @@
419
425
  <path d="M17.676 9.827 11.86 3.823C11.397 3.346 10.588 3 9.933 3H3.802C2.808 3 2 3.834 2 4.86v6.33c0 .673.335 1.508.797 1.985l5.816 6.006c.53.546 1.228.819 1.923.819.695 0 1.394-.273 1.924-.82l5.213-5.382a2.878 2.878 0 0 0 .003-3.971Zm-1.25 2.682-5.213 5.381a.936.936 0 0 1-1.353 0l-5.815-6.003c-.131-.135-.28-.507-.28-.697V4.86l.037-.038h6.132c.185 0 .544.153.676.289l5.815 6.003c.376.352.376 1.012 0 1.395ZM7 7.25c0 .503-.395.91-.883.91a.896.896 0 0 1-.882-.91c0-.505.395-.91.882-.91.488 0 .883.405.883.91Zm13.547 1.013-4.989-5.005a.864.864 0 0 0-1.248.019.932.932 0 0 0 .019 1.288l4.981 4.997c.599.617.928 1.438.928 2.31 0 .873-.33 1.694-.93 2.313L15.2 18.451a.931.931 0 0 0 .004 1.287.86.86 0 0 0 1.243-.007l4.107-4.261A5.142 5.142 0 0 0 22 11.87c0-1.36-.512-2.64-1.453-3.607Z"/>
420
426
  </symbol><symbol id="24/text-slash" viewBox="0 0 24 24">
421
427
  <path fill-rule="evenodd" clip-rule="evenodd" d="M22.53 2.53a.75.75 0 0 0-1.06-1.06l-3.388 3.387H4a2 2 0 0 0-2 2V17a2 2 0 0 0 1.94 2l-2.47 2.47a.75.75 0 1 0 1.06 1.06l20-20ZM5.44 17.5l3.508-3.508H7.254l-.635 1.936H5l2.717-7.53h1.875L10.9 12.04l5.682-5.683H4a.5.5 0 0 0-.5.5V17a.5.5 0 0 0 .5.5h1.44Zm3.607 0H20a.5.5 0 0 0 .5-.5V6.857a.5.5 0 0 0-.359-.48l1.092-1.095c.467.367.767.936.767 1.575V17a2 2 0 0 1-2 2H7.55l1.497-1.5Zm1.567-1.572h1.683l-.446-1.24-1.237 1.24Zm2.578-2.584v.09c0 1.606.926 2.566 2.35 2.566.913 0 1.649-.414 1.844-1.01h.078v.938H19V8h-.477l-1.09 1.091v1.872h-.07c-.158-.388-.5-.68-.962-.836l-3.209 3.217Zm4.242-.76c0-.876-.57-1.428-1.353-1.428-.789 0-1.287.557-1.287 1.556v.568c0 1.004.504 1.567 1.311 1.567.795 0 1.329-.552 1.329-1.506v-.756Zm-7.795.299-.99-3.046h-.072l-.99 3.046h2.052Z"/>
428
+ </symbol><symbol id="24/thumbs-down" viewBox="0 0 24 24">
429
+ <path d="M7 15.285v-9c0-.71-.56-1.249-1.25-1.249h-2.5c-.69 0-1.25.576-1.25 1.25v8.964c0 .71.56 1.25 1.25 1.25h2.5c.691.071 1.25-.504 1.25-1.215Zm13.809-2.366a2.735 2.735 0 0 0-1.07-2.85c.016-.122.024-.244.024-.367 0-.896-.432-1.711-1.126-2.203C18.542 6.105 17.407 5 16.027 5h-2.051a6.455 6.455 0 0 0-3.918 1.342L8.625 7.447a.966.966 0 0 0-.375.769c0 .512.402.966.939.966a.914.914 0 0 0 .562-.194l1.432-1.105a4.604 4.604 0 0 1 2.793-.957h2.051c.409 0 .741.342.741.762 0 .14-.043.198-.043.38 0 1.083 1.163.72 1.163 1.633 0 .371-.25.44-.25.894a.96.96 0 0 0 .765.948c.35.067.604.38.604.745 0 .524-.445.537-.445 1.162 0 .504.379.927.873.962.385-.007.69.359.69.716 0 .42-.333.761-.741.761h-5.376c-.486 0-.938.403-.938.928 0 .163.04.325.12.471.7 1.36.998 2.65.998 2.947 0 .324-.234.836-.862.836-.49 0-.558-.037-.974-1.128-.967-2.528-2.412-4.014-3.164-4.014-.539 0-.938.453-.938.964 0 .283.12.563.352.754C11.301 19.866 10.258 23 13.324 23c1.715 0 2.739-1.406 2.739-2.765 0-.51-.209-1.414-.58-2.383h3.901c1.409 0 2.616-1.205 2.616-2.723 0-.896-.473-1.732-1.191-2.21Z"/>
422
430
  </symbol><symbol id="24/thumbs-up" viewBox="0 0 24 24">
423
- <path d="M5.75 10.392h-2.5c-.69 0-1.25.576-1.25 1.25v8.964c0 .71.56 1.25 1.25 1.25h2.5c.69 0 1.25-.576 1.25-1.25v-8.928c0-.675-.559-1.286-1.25-1.286ZM22 11.834c0-1.482-1.174-2.688-2.616-2.688h-3.9c.371-1.004.579-1.872.579-2.382C16.063 5.406 15.038 4 13.325 4c-1.82 0-2.319 1.303-2.72 2.35C9.37 9.586 8.25 9.019 8.25 10.107c0 .516.405.964.938.964a.917.917 0 0 0 .585-.211c2.998-2.466 2.264-4.93 3.553-4.93.628 0 .861.512.861.835 0 .297-.296 1.59-.997 2.877a.982.982 0 0 0-.12.47c0 .56.446.929.937.929h5.375a.808.808 0 0 1 .743.794.751.751 0 0 1-.69.752.953.953 0 0 0-.874.962c0 .622.445.64.445 1.162 0 1.02-1.368.495-1.368 1.693 0 .451.25.524.25.894 0 .91-1.163.553-1.163 1.633 0 .182.043.24.043.38 0 .42-.333.762-.741.762h-2.052c-1 0-1.993-.34-2.793-.957L9.75 18.01a.915.915 0 0 0-.562-.194c-.54 0-.938.457-.938.966 0 .293.13.58.375.769l1.432 1.106A6.456 6.456 0 0 0 13.977 22h2.052c1.38 0 2.514-1.105 2.609-2.5a2.693 2.693 0 0 0 1.101-2.569 2.71 2.71 0 0 0 1.144-2.221c0-.213-.025-.424-.073-.628.717-.516 1.19-1.315 1.19-2.248Z"/>
431
+ <path d="M5.75 8.392h-2.5c-.69 0-1.25.576-1.25 1.25v8.964c0 .71.56 1.25 1.25 1.25h2.5c.69 0 1.25-.576 1.25-1.25V9.678c0-.675-.559-1.286-1.25-1.286ZM22 9.834c0-1.482-1.174-2.688-2.616-2.688h-3.9c.371-1.004.579-1.872.579-2.382C16.063 3.406 15.038 2 13.325 2c-1.82 0-2.319 1.303-2.72 2.35C9.37 7.586 8.25 7.019 8.25 8.107c0 .516.405.964.938.964a.917.917 0 0 0 .585-.211c2.998-2.466 2.264-4.93 3.553-4.93.628 0 .861.512.861.835 0 .297-.296 1.59-.997 2.877a.982.982 0 0 0-.12.47c0 .56.446.929.937.929h5.375a.807.807 0 0 1 .743.794.751.751 0 0 1-.69.752.953.953 0 0 0-.874.962c0 .622.445.64.445 1.162 0 1.02-1.368.495-1.368 1.693 0 .451.25.524.25.894 0 .91-1.163.553-1.163 1.633 0 .182.043.24.043.38 0 .42-.333.762-.741.762h-2.052c-1 0-1.993-.34-2.793-.957L9.75 16.01a.915.915 0 0 0-.562-.194c-.54 0-.938.457-.938.966 0 .293.13.58.375.769l1.432 1.106A6.456 6.456 0 0 0 13.977 20h2.052c1.38 0 2.514-1.105 2.609-2.5a2.693 2.693 0 0 0 1.101-2.569 2.71 2.71 0 0 0 1.144-2.221c0-.213-.025-.424-.073-.628.717-.516 1.19-1.315 1.19-2.248Z"/>
424
432
  </symbol><symbol id="24/thumbtack" viewBox="0 0 24 24">
425
433
  <path d="m16.236 11.52-.222-5.645h.944c.485 0 .875-.42.875-.973 0-.482-.39-.902-.875-.902H7.042c-.484 0-.875.42-.875.902 0 .553.391.973.875.973h1.134l-.394 5.633C6.03 12.547 5 14.19 5 15.992c0 .969.736 1.758 1.64 1.758h4.485v5.313c0 .519.394.937.875.937s.875-.42.875-.938V17.75h4.484c.904 0 1.641-.79 1.641-1.758 0-1.793-1.024-3.433-2.764-4.473Zm-3.361 4.355H6.753c.052-1.16.878-2.246 2.232-2.918l.465-.232.48-6.85h4.33l.268 6.84.483.24c1.357.674 2.184 1.76 2.235 2.92h-4.371Z"/>
426
434
  </symbol><symbol id="24/triangle-exclamation" viewBox="0 0 24 24">
@@ -50,6 +50,7 @@
50
50
  "filter",
51
51
  "forward-step",
52
52
  "frown",
53
+ "gear",
53
54
  "github",
54
55
  "graduation-cap",
55
56
  "grid",
@@ -88,6 +89,7 @@
88
89
  "sun-bright",
89
90
  "tags",
90
91
  "text-slash",
92
+ "thumbs-down",
91
93
  "thumbs-up",
92
94
  "thumbtack",
93
95
  "triangle-exclamation",
package/icons/types.d.ts CHANGED
@@ -50,6 +50,7 @@ export type IconNames = 'arrow-down' |
50
50
  'filter' |
51
51
  'forward-step' |
52
52
  'frown' |
53
+ 'gear' |
53
54
  'github' |
54
55
  'graduation-cap' |
55
56
  'grid' |
@@ -88,6 +89,7 @@ export type IconNames = 'arrow-down' |
88
89
  'sun-bright' |
89
90
  'tags' |
90
91
  'text-slash' |
92
+ 'thumbs-down' |
91
93
  'thumbs-up' |
92
94
  'thumbtack' |
93
95
  'triangle-exclamation' |
@@ -147,6 +149,7 @@ export type IconNames = 'arrow-down' |
147
149
  'filter' |
148
150
  'forward-step' |
149
151
  'frown' |
152
+ 'gear' |
150
153
  'github' |
151
154
  'graduation-cap' |
152
155
  'grid' |
@@ -185,6 +188,7 @@ export type IconNames = 'arrow-down' |
185
188
  'sun-bright' |
186
189
  'tags' |
187
190
  'text-slash' |
191
+ 'thumbs-down' |
188
192
  'thumbs-up' |
189
193
  'thumbtack' |
190
194
  'triangle-exclamation' |
package/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export { UIDReset as IdProvider } from 'react-uid';
2
- export { AnimatePresence as Presence } from 'framer-motion';
3
2
  export * as Polymorphic from './polymorphic';
4
3
  export { Avatar, AvatarProps } from './avatar';
5
4
  export { Button, ButtonsGroup, ButtonProps, ButtonsGroupProps } from './button';
@@ -19,12 +18,13 @@ export { InfoState, InfoStateProps } from './info-state';
19
18
  export { InputGroup, InputGroupProps } from './input-group';
20
19
  export { List, ListProps } from './list';
21
20
  export { SplitButton, SplitButtonProps } from './split-button';
22
- export { Modal, ModalProps, useModalContext } from './modal';
21
+ export { Modal, ModalProps, useModalContext, ModalProvider } from './modal';
23
22
  export { LinearProgress, LinearProgressProps } from './linear-progress';
23
+ export { OverlayContainer, OverlayContainerProps } from './overlay-container';
24
24
  export { Prose, ProseProps } from './prose';
25
25
  export { Pagination, PaginationProps } from './pagination';
26
26
  export { Select, SelectProps } from './select';
27
- export { Separator } from './separator';
27
+ export { Separator, SeparatorProps } from './separator';
28
28
  export { SkeletonBlock, SkeletonBlockProps } from './skeleton-block';
29
29
  export { Slider, SliderProps } from './slider';
30
30
  export { Snackbar, SnackbarProps } from './snackbar';
package/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export { UIDReset as IdProvider } from 'react-uid';
2
- export { AnimatePresence as Presence } from 'framer-motion';
3
2
  export * as Polymorphic from './polymorphic';
4
3
  export { Avatar } from './avatar';
5
4
  export { Button, ButtonsGroup } from './button';
@@ -19,8 +18,9 @@ export { InfoState } from './info-state';
19
18
  export { InputGroup } from './input-group';
20
19
  export { List } from './list';
21
20
  export { SplitButton } from './split-button';
22
- export { Modal, useModalContext } from './modal';
21
+ export { Modal, useModalContext, ModalProvider } from './modal';
23
22
  export { LinearProgress } from './linear-progress';
23
+ export { OverlayContainer } from './overlay-container';
24
24
  export { Prose } from './prose';
25
25
  export { Pagination } from './pagination';
26
26
  export { Select } from './select';
@@ -1,7 +1,7 @@
1
- import React, { ReactNode } from 'react';
1
+ import React, { PropsWithChildren, ReactNode } from 'react';
2
2
  import { IconNames } from '../icons/types';
3
3
  import { StackProps } from '../';
4
- export declare type InfoStateProps = PropsWithClass & {
4
+ export declare type InfoStateProps = PropsWithChildren<PropsWithClass> & {
5
5
  title: ReactNode;
6
6
  icon?: IconNames;
7
7
  image?: string;
@@ -9,4 +9,13 @@ export declare type InfoStateProps = PropsWithClass & {
9
9
  iconColor?: 'gray' | 'cyan' | 'green' | 'purple' | 'yellow' | 'red' | 'blue';
10
10
  actions?: ReactNode;
11
11
  };
12
- export declare const InfoState: React.FC<InfoStateProps>;
12
+ export declare const InfoState: React.ForwardRefExoticComponent<PropsWithClass & {
13
+ children?: React.ReactNode;
14
+ } & {
15
+ title: ReactNode;
16
+ icon?: IconNames | undefined;
17
+ image?: string | undefined;
18
+ direction?: StackProps['direction'];
19
+ iconColor?: "gray" | "cyan" | "green" | "purple" | "yellow" | "red" | "blue" | undefined;
20
+ actions?: ReactNode;
21
+ } & React.RefAttributes<HTMLDivElement>>;
@@ -1,9 +1,9 @@
1
1
  import React, { forwardRef } from 'react';
2
2
  import { Stack, Icon, Title, Text } from '../';
3
3
  import { IconWrapper, Image } from './info-state.module.css';
4
- export const InfoState = forwardRef(({ className, children, title, icon, image, direction = 'column', iconColor = 'blue', actions, ...props }, forwardedRef) => {
4
+ export const InfoState = forwardRef(({ className, children, title, icon, image, direction = 'column', iconColor = 'blue', actions, ...otherProps }, forwardedRef) => {
5
5
  const isHorizontal = direction === 'row';
6
- return (React.createElement(Stack, { ref: forwardedRef, direction: direction, rowGap: 24, columnGap: 32, className: className, horizontalAlign: isHorizontal ? 'start' : 'center', verticalAlign: (isHorizontal && image) ? 'center' : 'start', fill: false, wrap: !!image, ...props },
6
+ return (React.createElement(Stack, { ref: forwardedRef, direction: direction, rowGap: 24, columnGap: 32, className: className, horizontalAlign: isHorizontal ? 'start' : 'center', verticalAlign: (isHorizontal && image) ? 'center' : 'start', fill: false, wrap: !!image, ...otherProps },
7
7
  (!image && icon) && (React.createElement("span", { "data-info-state-icon-color": iconColor, className: IconWrapper },
8
8
  React.createElement(Icon, { name: icon, dimension: 48 }))),
9
9
  (image && !icon) && React.createElement("img", { className: Image, alt: "", width: "400", src: image, loading: "lazy", decoding: "async" }),
@@ -3,11 +3,11 @@ import React, { Children, cloneElement, forwardRef } from 'react';
3
3
  import { Stack, Text } from '../';
4
4
  import { useUIDSeed } from 'react-uid';
5
5
  import { End, InputField, Start, InputGroup as InputGroupClass } from './input-group.module.css';
6
- export const InputGroup = forwardRef(({ className, input, end, start, label, dimension = 'regular', ...props }, forwardedRef) => {
6
+ export const InputGroup = forwardRef(({ className, input, end, start, label, dimension = 'regular', ...otherProps }, forwardedRef) => {
7
7
  const uid = useUIDSeed();
8
- return (React.createElement(Stack, { rowGap: 4, horizontalAlign: "stretch", verticalAlign: "start" },
8
+ return (React.createElement(Stack, { rowGap: 4, horizontalAlign: "stretch", verticalAlign: "start", fill: false },
9
9
  label && React.createElement(Text, { as: "label", size: dimension === 'small' ? 14 : 16, htmlFor: uid('field') }, label),
10
- React.createElement(Stack, { as: "fieldset", direction: "row", verticalAlign: "start", horizontalAlign: "start", fill: false, inline: true, ref: forwardedRef, className: clsx(InputGroupClass, className), "data-input-group-has-end": Boolean(end), "data-input-group-has-start": !!start, ...props },
10
+ React.createElement(Stack, { as: "fieldset", direction: "row", verticalAlign: "start", horizontalAlign: "start", fill: false, inline: true, ref: forwardedRef, className: clsx(InputGroupClass, className), "data-input-group-has-end": Boolean(end), "data-input-group-has-start": !!start, ...otherProps },
11
11
  React.createElement("div", { className: Start }, Children.map(start, (child) => cloneElement(child, {
12
12
  dimension
13
13
  }))),
@@ -11,9 +11,6 @@
11
11
  }
12
12
 
13
13
  .InputField {
14
- & input {
15
- outline-offset: -3px;
16
- }
17
14
 
18
15
  @nest .InputGroup[data-input-group-has-end='true'] & input {
19
16
  border-top-right-radius: 0;
@@ -1,13 +1,13 @@
1
- import React from 'react';
2
- export declare type LinearProgressProps = PropsWithClass & {
1
+ import React, { ProgressHTMLAttributes } from 'react';
2
+ export declare type LinearProgressProps = ProgressHTMLAttributes<HTMLProgressElement> & {
3
3
  value?: number;
4
4
  max?: number;
5
5
  dimension?: 'regular' | 'big';
6
6
  showProgress?: boolean;
7
7
  };
8
- export declare const LinearProgress: React.ForwardRefExoticComponent<PropsWithClass & {
8
+ export declare const LinearProgress: React.ForwardRefExoticComponent<React.ProgressHTMLAttributes<HTMLProgressElement> & {
9
9
  value?: number | undefined;
10
10
  max?: number | undefined;
11
11
  dimension?: "big" | "regular" | undefined;
12
12
  showProgress?: boolean | undefined;
13
- } & React.RefAttributes<HTMLDivElement>>;
13
+ } & React.RefAttributes<HTMLProgressElement>>;
@@ -2,11 +2,11 @@ import React, { forwardRef, useCallback } from 'react';
2
2
  import { Text } from '../';
3
3
  import clsx from 'clsx';
4
4
  import { LinearProgress as LinearProgressClass, Progress, Percentage } from './linear-progress.module.css';
5
- export const LinearProgress = forwardRef(({ className, value, max = 100, dimension = 'regular', showProgress, ...props }, forwardedRef) => {
5
+ export const LinearProgress = forwardRef(({ className, value, max = 100, dimension = 'regular', showProgress, ...otherProps }, forwardedRef) => {
6
6
  const getPercentage = useCallback(() => value ? Math.round((100 * value) / max) : 0, [max, value]);
7
7
  const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
8
- return (React.createElement("div", { ref: forwardedRef, className: clsx(LinearProgressClass, className) },
9
- React.createElement("progress", { role: "progressbar", className: Progress, "data-progress-dimension": dimension, "aria-valuemin": 0, "aria-valuenow": value, "aria-valuemax": max, value: value, max: max, ...props }),
8
+ return (React.createElement("div", { className: clsx(LinearProgressClass, className) },
9
+ React.createElement("progress", { role: "progressbar", ref: forwardedRef, className: Progress, "data-progress-dimension": dimension, "aria-valuemin": 0, "aria-valuenow": value, "aria-valuemax": max, value: value, max: max, ...otherProps }),
10
10
  (showProgress) && (React.createElement(Text, { as: "span", className: Percentage, style: {
11
11
  '--offset': `${getPercentage()}%`,
12
12
  '--translation': value !== 0 ? '-100%' : '-50%'
package/list/list.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import { IconNames } from '../icons/types';
2
2
  import { Polymorphic } from '../';
3
- export declare type ListProps = PropsWithClass & {
3
+ export declare type ListProps = {
4
4
  dimension?: 'small' | 'regular' | 'big';
5
5
  marker?: IconNames;
6
6
  markerColor?: string;
7
+ hideMarker?: boolean;
7
8
  };
8
9
  declare type PolymorphicList = Polymorphic.ForwardRefComponent<'ul', ListProps>;
9
10
  export declare const List: PolymorphicList;
package/list/list.js CHANGED
@@ -2,7 +2,7 @@ import React, { Children, forwardRef, useMemo } from 'react';
2
2
  import { List as ListClass, Marker } from './list.module.css';
3
3
  import clsx from 'clsx';
4
4
  import { Text, Icon } from '../';
5
- export const List = forwardRef(({ as: Wrapper = 'ul', children, marker = 'circle', dimension = 'regular', className, markerColor, ...props }, forwardedRef) => {
5
+ export const List = forwardRef(({ as: Wrapper = 'ul', children, marker = 'circle', dimension = 'regular', className, markerColor, hideMarker = false, ...otherProps }, forwardedRef) => {
6
6
  const sizes = {
7
7
  small: {
8
8
  text: 16,
@@ -18,8 +18,7 @@ export const List = forwardRef(({ as: Wrapper = 'ul', children, marker = 'circle
18
18
  }
19
19
  };
20
20
  const isUnordered = useMemo(() => Wrapper === 'ul', [Wrapper]);
21
- return (React.createElement(Wrapper, { ref: forwardedRef, className: clsx(ListClass, className), "data-list-size": dimension, "data-list-ordered": !isUnordered, ...props }, Children.map(children, (child) => (React.createElement(Text, { as: "li", size: sizes[dimension].text },
21
+ return (React.createElement(Wrapper, { ref: forwardedRef, className: clsx(ListClass, className), "data-list-size": dimension, "data-list-ordered": !isUnordered, "data-list-no-marker": hideMarker, ...otherProps }, Children.map(children, (child) => (React.createElement(Text, { as: "li", size: sizes[dimension].text },
22
22
  isUnordered && (React.createElement(Icon, { name: marker, className: Marker, fill: markerColor, dimension: marker !== 'circle' ? sizes[dimension].icon : 16 })),
23
23
  child.props.children)))));
24
24
  });
25
- List.displayName = 'List';
@@ -2,6 +2,13 @@
2
2
  --marker-size: env(--space-16);
3
3
  --marker-gap: env(--space-8);
4
4
 
5
+ &[data-list-no-marker='true'] {
6
+ --marker-size: 0;
7
+ --marker-gap: 0;
8
+
9
+ list-style: none;
10
+ padding: 0;
11
+ }
5
12
 
6
13
  &[data-list-ordered='false'] {
7
14
  padding: 0;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { FC } from 'react';
2
2
  import { TokensTypes } from '@wonderflow/tokens/platforms/web/types';
3
3
  export declare type MasonryProps = PropsWithClass & {
4
4
  gutter?: 0 | TokensTypes['space'];
@@ -11,4 +11,4 @@ export declare type MasonryProps = PropsWithClass & {
11
11
  extraLarge?: number;
12
12
  };
13
13
  };
14
- export declare const Masonry: React.FC<MasonryProps>;
14
+ export declare const Masonry: FC<MasonryProps>;
@@ -3,7 +3,7 @@ import React, { Children, cloneElement } from 'react';
3
3
  import MasonryLayout from 'react-masonry-css';
4
4
  import tksn from '@wonderflow/tokens/platforms/web/tokens.json';
5
5
  import { Masonry as MasonryClass, Column } from './masonry.module.css';
6
- export const Masonry = ({ className, children, columns = 3, gutter = 16, style, ...props }) => {
6
+ export const Masonry = ({ className, children, columns = 3, gutter = 16, style, ...otherProps }) => {
7
7
  const breakpoints = {
8
8
  extraSmall: 480,
9
9
  small: 768,
@@ -19,7 +19,7 @@ export const Masonry = ({ className, children, columns = 3, gutter = 16, style,
19
19
  default: columns.default,
20
20
  [breakpoints[current]]: columns[current]
21
21
  }), {});
22
- return (React.createElement(MasonryLayout, { role: "list", className: clsx(MasonryClass, className), columnClassName: Column, breakpointCols: typeof columns === 'number' ? columns : computedColumns, style: { ...dynamicStyle, ...style }, ...props }, Children.map(children, (child) => cloneElement(child, {
22
+ return (React.createElement(MasonryLayout, { role: "list", className: clsx(MasonryClass, className), columnClassName: Column, breakpointCols: typeof columns === 'number' ? columns : computedColumns, style: { ...dynamicStyle, ...style }, ...otherProps }, Children.map(children, (child) => cloneElement(child, {
23
23
  role: 'listitem'
24
24
  }))));
25
25
  };
@@ -1,13 +1,13 @@
1
1
  import clsx from 'clsx';
2
2
  import React, { forwardRef } from 'react';
3
3
  import { Content, Header, CloseButton } from './modal-content.module.css';
4
- import { Title, Elevator, IconButton, Stack } from '../';
5
- import { useModalContext } from './modal-context';
6
- export const ModalContent = forwardRef(({ children, className, title, ...props }, forwardedRef) => {
4
+ import { Title, Elevator, IconButton, Stack } from '../../';
5
+ import { useModalContext } from '../modal-context';
6
+ export const ModalContent = forwardRef(({ children, className, title, ...otherProps }, forwardedRef) => {
7
7
  const { onClose, titleId } = useModalContext();
8
8
  return (React.createElement(Elevator, { resting: 4 },
9
- React.createElement("div", { className: clsx(Content, className), ref: forwardedRef, "data-theme": "light", ...props },
10
- React.createElement(Stack, { as: "header", verticalAlign: "center", fill: false, horizontalAlign: "space-between", direction: "row", className: Header },
9
+ React.createElement("div", { className: clsx(Content, className), ref: forwardedRef, "data-theme": "light", ...otherProps },
10
+ React.createElement(Stack, { verticalAlign: "center", fill: false, horizontalAlign: "space-between", direction: "row", className: Header },
11
11
  React.createElement(Title, { level: "5", id: titleId }, title),
12
12
  onClose && React.createElement(IconButton, { onClick: onClose, className: CloseButton, icon: "xmark", kind: "flat" })),
13
13
  children)));
@@ -1,4 +1,4 @@
1
- @import '../core/media.css';
1
+ @import '../../core/media.css';
2
2
 
3
3
  .Content {
4
4
  background-color: var(--global-background);
package/modal/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { Modal } from './modal';
2
- export { useModalContext } from './modal-context';
2
+ export { useModalContext, ModalProvider } from './modal-context';
3
3
  export type { ModalProps } from './modal';
package/modal/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export { Modal } from './modal';
2
- export { useModalContext } from './modal-context';
2
+ export { useModalContext, ModalProvider } from './modal-context';
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React, { PropsWithChildren } from 'react';
2
2
  import { ModalProps } from '../modal';
3
- declare type ModalContextProps = Pick<ModalProps, 'onClose' | 'visible'> & {
4
- titleId: string;
5
- setTitleId?(): void;
3
+ declare type ModalContextProps = Partial<ModalProps> & {
4
+ titleId?: string;
6
5
  };
7
- export declare const ModalContext: import("react").Context<ModalContextProps>;
6
+ export declare const ModalContext: React.Context<ModalContextProps>;
7
+ export declare const ModalProvider: (props: PropsWithChildren<ModalContextProps>) => JSX.Element;
8
8
  export declare const useModalContext: () => ModalContextProps;
9
9
  export {};
@@ -1,9 +1,18 @@
1
- import { createContext, useContext } from 'react';
1
+ import React, { createContext, useContext } from 'react';
2
+ import { useUIDSeed } from 'react-uid';
2
3
  export const ModalContext = createContext({
3
4
  titleId: '',
4
5
  onClose: () => { }
5
6
  });
6
7
  ModalContext.displayName = 'ModalContext';
8
+ export const ModalProvider = (props) => {
9
+ const seedID = useUIDSeed();
10
+ const { children, titleId = seedID('modal-title'), onClose } = props;
11
+ return (React.createElement(ModalContext.Provider, { value: {
12
+ titleId,
13
+ onClose
14
+ } }, children));
15
+ };
7
16
  export const useModalContext = () => {
8
17
  const context = useContext(ModalContext);
9
18
  if (!context) {
package/modal/modal.d.ts CHANGED
@@ -1,15 +1,12 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
+ import { ModalContentProps } from './content/modal-content';
2
3
  export declare type ModalProps = PropsWithChildren<PropsWithClass> & {
3
- visible?: boolean;
4
4
  overlayColor?: 'light' | 'dark' | 'auto';
5
5
  closeOnClickOutside?: boolean;
6
6
  onClose(): void;
7
7
  };
8
- export declare const Modal: {
9
- ({ visible, ...props }: ModalProps): JSX.Element;
10
- Root: React.FC<ModalProps>;
11
- Content: React.ForwardRefExoticComponent<PropsWithClass & {
12
- title: React.ReactNode;
13
- } & React.RefAttributes<HTMLDivElement>>;
14
- displayName: string;
8
+ declare type ModalComponent = React.ForwardRefExoticComponent<ModalProps> & {
9
+ Content: React.ForwardRefExoticComponent<ModalContentProps>;
15
10
  };
11
+ export declare const Modal: ModalComponent;
12
+ export {};
package/modal/modal.js CHANGED
@@ -1,32 +1,18 @@
1
1
  import React, { forwardRef } from 'react';
2
2
  import { useUIDSeed } from 'react-uid';
3
- import { LazyMotion, domAnimation, m } from 'framer-motion';
3
+ import { motion } from 'framer-motion';
4
4
  import clsx from 'clsx';
5
5
  import { FocusOn } from 'react-focus-on';
6
- import { ModalContent } from './modal-content';
6
+ import { ModalContent } from './content/modal-content';
7
7
  import { Modal as ModalClass, Backdrop, Container } from './modal.module.css';
8
- import { ModalContext } from './modal-context';
9
- import { Presence } from '../';
10
- const ModalElement = forwardRef(({ children, className, overlayColor = 'dark', closeOnClickOutside = true, onClose, visible, ...props }, forwardedRef) => {
8
+ import { ModalContext, ModalProvider } from './modal-context';
9
+ export const Modal = forwardRef(({ children, className, overlayColor = 'dark', closeOnClickOutside = true, onClose, ...otherProps }, forwardedRef) => {
11
10
  const seedID = useUIDSeed();
12
- return (React.createElement(ModalContext.Provider, { value: {
13
- onClose,
14
- visible,
15
- titleId: seedID('modal-title')
16
- } },
17
- React.createElement(ModalContext.Consumer, null, (ctx) => (React.createElement(LazyMotion, { features: domAnimation },
18
- React.createElement("div", { role: "dialog", "aria-modal": "true", "aria-labelledby": ctx.titleId, className: clsx(ModalClass, className), ref: forwardedRef, ...props },
19
- React.createElement(m.span, { key: seedID('modal-backdrop'), className: Backdrop, "data-overlay-color": overlayColor, initial: { opacity: 0 }, animate: { opacity: 0.95 }, exit: { opacity: 0 }, transition: { duration: 0.2 } }),
20
- React.createElement(FocusOn, { onClickOutside: () => closeOnClickOutside && ctx.onClose(), onEscapeKey: ctx.onClose },
21
- React.createElement(m.div, { key: seedID('modal-container'), className: Container, initial: { scale: 0.98, opacity: 0 }, animate: { scale: 1, opacity: 1 }, exit: { scale: 0.98, opacity: 0 }, transition: { ease: 'easeOut', duration: 0.1 } }, children))))))));
11
+ return (React.createElement(ModalProvider, { onClose: onClose },
12
+ React.createElement(ModalContext.Consumer, null, (ctx) => (React.createElement("div", { role: "dialog", "aria-modal": "true", "aria-labelledby": ctx.titleId, className: clsx(ModalClass, className), ref: forwardedRef, ...otherProps },
13
+ React.createElement(motion.span, { key: seedID('modal-backdrop'), className: Backdrop, "data-overlay-color": overlayColor, initial: { opacity: 0 }, animate: { opacity: 0.95 }, exit: { opacity: 0 }, transition: { duration: 0.2 } }),
14
+ React.createElement(FocusOn, { onClickOutside: ctx.onClose, onEscapeKey: ctx.onClose },
15
+ React.createElement(motion.div, { key: seedID('modal-container'), className: Container, initial: { scale: 0.98, opacity: 0 }, animate: { scale: 1, opacity: 1 }, exit: { scale: 0.98, opacity: 0 }, transition: { ease: 'easeOut', duration: 0.1 } }, children)))))));
22
16
  });
23
- export const Modal = ({ visible, ...props }) => {
24
- if (typeof visible === 'boolean') {
25
- return (React.createElement(Presence, { exitBeforeEnter: true }, visible ? React.createElement(ModalElement, { ...props }) : null));
26
- }
27
- return (React.createElement(ModalElement, { ...props }));
28
- };
29
- Modal.Root = ModalElement;
30
- Modal.Content = ModalContent;
31
17
  Modal.displayName = 'Modal';
32
- ModalElement.displayName = 'Modal.Element';
18
+ Modal.Content = ModalContent;
@@ -0,0 +1,2 @@
1
+ export { OverlayContainer } from './overlay-container';
2
+ export type { OverlayContainerProps } from './overlay-container';
@@ -0,0 +1 @@
1
+ export { OverlayContainer } from './overlay-container';
@@ -0,0 +1,6 @@
1
+ import React, { ReactNode } from 'react';
2
+ export declare type OverlayContainerProps = {
3
+ children: ReactNode;
4
+ root?: HTMLElement;
5
+ };
6
+ export declare const OverlayContainer: React.FC<OverlayContainerProps>;
@@ -0,0 +1,15 @@
1
+ import { AnimatePresence } from 'framer-motion';
2
+ import React, { useEffect } from 'react';
3
+ import { ModalProvider } from '../modal';
4
+ import { createPortal } from 'react-dom';
5
+ export const OverlayContainer = ({ children, root = document.body }) => {
6
+ useEffect(() => {
7
+ if (root.closest('[data-overlay-container]')) {
8
+ throw new Error('An OverlayContainer must not be inside another container. Please change the root prop.');
9
+ }
10
+ }, [root]);
11
+ const content = (React.createElement(ModalProvider, null,
12
+ React.createElement("div", { "data-overlay-container": true },
13
+ React.createElement(AnimatePresence, null, children))));
14
+ return createPortal(content, root);
15
+ };