@dwelle/excalidraw 0.5.0-8cb033d → 0.5.0-90f2d4e

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 (141) hide show
  1. package/dist/dev/{chunk-C6WW3IWU.js → chunk-BIYCCCC4.js} +14 -4
  2. package/dist/dev/chunk-BIYCCCC4.js.map +7 -0
  3. package/dist/dev/chunk-QW2KPMGE.js +7 -0
  4. package/dist/dev/chunk-QW2KPMGE.js.map +7 -0
  5. package/dist/dev/{chunk-2LNRWI74.js → chunk-VPDGV5DO.js} +9679 -8756
  6. package/dist/dev/chunk-VPDGV5DO.js.map +7 -0
  7. package/dist/dev/data/{image-7QZI7GM4.js → image-RC4Z3PZK.js} +3 -3
  8. package/dist/dev/index.css +695 -506
  9. package/dist/dev/index.css.map +3 -3
  10. package/dist/dev/index.js +4223 -2821
  11. package/dist/dev/index.js.map +4 -4
  12. package/dist/dev/locales/{en-VFJV7E2V.js → en-XLJO5VTH.js} +2 -2
  13. package/dist/dev/subset-shared.chunk.js +1 -1
  14. package/dist/dev/subset-worker.chunk.js +1 -1
  15. package/dist/prod/chunk-DUG5AXRR.js +33 -0
  16. package/dist/prod/chunk-M2OFWNPH.js +7 -0
  17. package/dist/prod/{chunk-O65DDAOS.js → chunk-SPUFWQ3U.js} +4 -4
  18. package/dist/prod/data/image-W7J67QSB.js +1 -0
  19. package/dist/prod/index.css +1 -1
  20. package/dist/prod/index.js +20 -20
  21. package/dist/prod/locales/{en-UUHXMMMY.js → en-DMU2KFKH.js} +1 -1
  22. package/dist/prod/subset-shared.chunk.js +1 -1
  23. package/dist/prod/subset-worker.chunk.js +1 -1
  24. package/dist/types/common/src/constants.d.ts +38 -6
  25. package/dist/types/common/src/utils.d.ts +6 -5
  26. package/dist/types/element/src/Scene.d.ts +7 -3
  27. package/dist/types/element/src/align.d.ts +2 -1
  28. package/dist/types/element/src/binding.d.ts +10 -7
  29. package/dist/types/element/src/bounds.d.ts +12 -4
  30. package/dist/types/element/src/collision.d.ts +18 -12
  31. package/dist/types/element/src/cropElement.d.ts +1 -1
  32. package/dist/types/element/src/delta.d.ts +41 -9
  33. package/dist/types/element/src/distance.d.ts +2 -2
  34. package/dist/types/element/src/distribute.d.ts +2 -1
  35. package/dist/types/element/src/fractionalIndex.d.ts +8 -2
  36. package/dist/types/element/src/frame.d.ts +2 -2
  37. package/dist/types/element/src/groups.d.ts +1 -0
  38. package/dist/types/element/src/index.d.ts +2 -3
  39. package/dist/types/element/src/linearElementEditor.d.ts +13 -15
  40. package/dist/types/element/src/mutateElement.d.ts +1 -1
  41. package/dist/types/element/src/newElement.d.ts +2 -1
  42. package/dist/types/element/src/positionElementsOnGrid.d.ts +2 -0
  43. package/dist/types/element/src/renderElement.d.ts +4 -1
  44. package/dist/types/element/src/resizeElements.d.ts +1 -0
  45. package/dist/types/element/src/selection.d.ts +1 -1
  46. package/dist/types/element/src/shape.d.ts +42 -0
  47. package/dist/types/element/src/sizeHelpers.d.ts +2 -1
  48. package/dist/types/element/src/store.d.ts +19 -9
  49. package/dist/types/element/src/textElement.d.ts +1 -1
  50. package/dist/types/element/src/transformHandles.d.ts +4 -4
  51. package/dist/types/element/src/typeChecks.d.ts +15 -1
  52. package/dist/types/element/src/types.d.ts +8 -3
  53. package/dist/types/element/src/utils.d.ts +16 -6
  54. package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +15 -18
  55. package/dist/types/excalidraw/actions/actionAlign.d.ts +8 -8
  56. package/dist/types/excalidraw/actions/actionBoundText.d.ts +10 -12
  57. package/dist/types/excalidraw/actions/actionCanvas.d.ts +158 -170
  58. package/dist/types/excalidraw/actions/actionClipboard.d.ts +38 -42
  59. package/dist/types/excalidraw/actions/actionCropEditor.d.ts +5 -6
  60. package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +21 -23
  61. package/dist/types/excalidraw/actions/actionDistribute.d.ts +4 -4
  62. package/dist/types/excalidraw/actions/actionDuplicateSelection.d.ts +2 -2
  63. package/dist/types/excalidraw/actions/actionElementLink.d.ts +4 -5
  64. package/dist/types/excalidraw/actions/actionElementLock.d.ts +12 -14
  65. package/dist/types/excalidraw/actions/actionEmbeddable.d.ts +5 -6
  66. package/dist/types/excalidraw/actions/actionExport.d.ts +130 -139
  67. package/dist/types/excalidraw/actions/actionFinalize.d.ts +61 -22
  68. package/dist/types/excalidraw/actions/actionFlip.d.ts +4 -4
  69. package/dist/types/excalidraw/actions/actionFrame.d.ts +70 -74
  70. package/dist/types/excalidraw/actions/actionGroup.d.ts +16 -18
  71. package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +532 -9
  72. package/dist/types/excalidraw/actions/actionLink.d.ts +6 -7
  73. package/dist/types/excalidraw/actions/actionMenu.d.ts +16 -19
  74. package/dist/types/excalidraw/actions/actionNavigate.d.ts +10 -12
  75. package/dist/types/excalidraw/actions/actionProperties.d.ts +107 -105
  76. package/dist/types/excalidraw/actions/actionSelectAll.d.ts +8 -9
  77. package/dist/types/excalidraw/actions/actionStyles.d.ts +9 -10
  78. package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +7 -8
  79. package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +7 -8
  80. package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +6 -7
  81. package/dist/types/excalidraw/actions/actionToggleStats.d.ts +7 -8
  82. package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +7 -8
  83. package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +7 -8
  84. package/dist/types/excalidraw/actions/actionZindex.d.ts +8 -8
  85. package/dist/types/excalidraw/actions/index.d.ts +1 -1
  86. package/dist/types/excalidraw/actions/types.d.ts +2 -1
  87. package/dist/types/excalidraw/appState.d.ts +21 -20
  88. package/dist/types/excalidraw/clipboard.d.ts +64 -1
  89. package/dist/types/excalidraw/components/Actions.d.ts +8 -5
  90. package/dist/types/excalidraw/components/App.d.ts +21 -27
  91. package/dist/types/excalidraw/components/ButtonIcon.d.ts +1 -0
  92. package/dist/types/excalidraw/components/ColorPicker/ColorPicker.d.ts +2 -1
  93. package/dist/types/excalidraw/components/CommandPalette/CommandPalette.d.ts +1 -0
  94. package/dist/types/excalidraw/components/Ellipsify.d.ts +4 -0
  95. package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +2 -1
  96. package/dist/types/excalidraw/components/FontPicker/FontPickerTrigger.d.ts +2 -1
  97. package/dist/types/excalidraw/components/InlineIcon.d.ts +3 -1
  98. package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +1 -1
  99. package/dist/types/excalidraw/components/PropertiesPopover.d.ts +1 -0
  100. package/dist/types/excalidraw/components/Stats/DragInput.d.ts +11 -1
  101. package/dist/types/excalidraw/components/TextField.d.ts +1 -0
  102. package/dist/types/excalidraw/components/icons.d.ts +7 -0
  103. package/dist/types/excalidraw/components/shapes.d.ts +129 -1
  104. package/dist/types/excalidraw/data/blob.d.ts +4 -8
  105. package/dist/types/excalidraw/data/reconcile.d.ts +1 -0
  106. package/dist/types/excalidraw/data/restore.d.ts +6 -1
  107. package/dist/types/excalidraw/data/types.d.ts +4 -1
  108. package/dist/types/excalidraw/eraser/index.d.ts +0 -2
  109. package/dist/types/excalidraw/history.d.ts +21 -5
  110. package/dist/types/excalidraw/hooks/useLibraryItemSvg.d.ts +1 -1
  111. package/dist/types/excalidraw/hooks/useTextEditorFocus.d.ts +14 -0
  112. package/dist/types/excalidraw/index.d.ts +2 -1
  113. package/dist/types/excalidraw/lasso/utils.d.ts +2 -1
  114. package/dist/types/excalidraw/renderer/helpers.d.ts +4 -4
  115. package/dist/types/excalidraw/renderer/staticScene.d.ts +4 -1
  116. package/dist/types/excalidraw/scene/Renderer.d.ts +0 -1
  117. package/dist/types/excalidraw/types.d.ts +12 -9
  118. package/dist/types/math/src/angle.d.ts +2 -0
  119. package/dist/types/math/src/constants.d.ts +3 -0
  120. package/dist/types/math/src/curve.d.ts +32 -0
  121. package/dist/types/math/src/index.d.ts +1 -0
  122. package/dist/types/math/src/point.d.ts +1 -1
  123. package/dist/types/math/src/rectangle.d.ts +2 -0
  124. package/dist/types/math/src/segment.d.ts +1 -0
  125. package/dist/types/math/src/vector.d.ts +4 -2
  126. package/history.ts +107 -44
  127. package/package.json +9 -9
  128. package/dist/dev/chunk-2LNRWI74.js.map +0 -7
  129. package/dist/dev/chunk-C6WW3IWU.js.map +0 -7
  130. package/dist/dev/chunk-NR24AOHB.js +0 -7
  131. package/dist/dev/chunk-NR24AOHB.js.map +0 -7
  132. package/dist/prod/chunk-JUZ2P6ZK.js +0 -33
  133. package/dist/prod/chunk-ZSOIT5RG.js +0 -7
  134. package/dist/prod/data/image-RPTD4VCP.js +0 -1
  135. package/dist/types/element/src/Shape.d.ts +0 -17
  136. package/dist/types/element/src/ShapeCache.d.ts +0 -25
  137. package/dist/types/element/src/shapes.d.ts +0 -23
  138. package/dist/types/excalidraw/visualdebug.d.ts +0 -41
  139. package/dist/types/utils/src/collision.d.ts +0 -8
  140. /package/dist/dev/data/{image-7QZI7GM4.js.map → image-RC4Z3PZK.js.map} +0 -0
  141. /package/dist/dev/locales/{en-VFJV7E2V.js.map → en-XLJO5VTH.js.map} +0 -0
@@ -616,6 +616,11 @@
616
616
  .excalidraw--mobile.excalidraw .color-picker-container {
617
617
  max-width: 11rem;
618
618
  }
619
+ .excalidraw .color-picker-container.color-picker-container--no-top-picks {
620
+ display: flex;
621
+ justify-content: center;
622
+ grid-template-columns: unset;
623
+ }
619
624
  .excalidraw .color-picker__top-picks {
620
625
  display: flex;
621
626
  justify-content: space-between;
@@ -664,6 +669,15 @@
664
669
  width: 1.25rem;
665
670
  height: 1.25rem;
666
671
  }
672
+ .excalidraw .color-picker__button .color-picker__button-background {
673
+ display: flex;
674
+ align-items: center;
675
+ justify-content: center;
676
+ }
677
+ .excalidraw .color-picker__button .color-picker__button-background svg {
678
+ width: 100%;
679
+ height: 100%;
680
+ }
667
681
  .excalidraw .color-picker__button.active .color-picker__button-outline {
668
682
  position: absolute;
669
683
  --offset: -1px;
@@ -1086,6 +1100,10 @@
1086
1100
  .excalidraw--mobile.excalidraw .FontPicker__container {
1087
1101
  max-width: calc(2rem + 4 * var(--default-button-size));
1088
1102
  }
1103
+ .excalidraw .FontPicker__container--compact {
1104
+ display: block;
1105
+ grid-template-columns: none;
1106
+ }
1089
1107
 
1090
1108
  /* components/IconPicker.scss */
1091
1109
  .excalidraw .picker {
@@ -1718,6 +1736,8 @@
1718
1736
  border-radius: var(--border-radius-lg);
1719
1737
  position: relative;
1720
1738
  transition: box-shadow 0.5s ease-in-out;
1739
+ display: flex;
1740
+ flex-direction: column;
1721
1741
  }
1722
1742
  .excalidraw .dropdown-menu--mobile .dropdown-menu-container.zen-mode {
1723
1743
  box-shadow: none;
@@ -1779,6 +1799,7 @@
1779
1799
  align-items: center;
1780
1800
  cursor: pointer;
1781
1801
  border-radius: var(--border-radius-md);
1802
+ flex: 1 0 auto;
1782
1803
  }
1783
1804
  @media screen and (min-width: 1921px) {
1784
1805
  .excalidraw .dropdown-menu .dropdown-menu-item {
@@ -1930,11 +1951,11 @@
1930
1951
  pointer-events: none;
1931
1952
  }
1932
1953
  .excalidraw .library-unit--hover {
1933
- border-color: var(--color-primary);
1954
+ background-color: var(--color-surface-mid);
1934
1955
  }
1956
+ .excalidraw .library-unit:active:not(:has(.library-unit__checkbox:hover)),
1935
1957
  .excalidraw .library-unit--selected {
1936
- border-color: var(--color-primary);
1937
- border-width: 1px;
1958
+ background-color: var(--color-surface-high);
1938
1959
  }
1939
1960
  .excalidraw .library-unit--skeleton {
1940
1961
  opacity: 0.5;
@@ -2068,21 +2089,36 @@
2068
2089
 
2069
2090
  /* components/LibraryMenuItems.scss */
2070
2091
  .excalidraw {
2071
- --container-padding-y: 1.5rem;
2092
+ --container-padding-y: 1rem;
2072
2093
  --container-padding-x: 0.75rem;
2073
2094
  }
2095
+ .excalidraw .library-menu-items-header {
2096
+ display: flex;
2097
+ padding-top: 1rem;
2098
+ padding-bottom: 0.5rem;
2099
+ gap: 0.5rem;
2100
+ }
2074
2101
  .excalidraw .library-menu-items__no-items {
2075
2102
  text-align: center;
2076
2103
  color: var(--color-gray-70);
2077
2104
  line-height: 1.5;
2078
2105
  font-size: 0.875rem;
2079
2106
  width: 100%;
2107
+ min-height: 55px;
2108
+ display: flex;
2109
+ flex-direction: column;
2110
+ align-items: center;
2111
+ justify-content: center;
2080
2112
  }
2081
2113
  .excalidraw .library-menu-items__no-items__label {
2082
2114
  color: var(--color-primary);
2083
2115
  font-weight: 700;
2084
2116
  font-size: 1.125rem;
2085
- margin-bottom: 0.75rem;
2117
+ margin-bottom: 0.25rem;
2118
+ }
2119
+ .excalidraw .library-menu-items__no-items__hint {
2120
+ color: var(--color-border-outline);
2121
+ padding: 0.75rem 1rem;
2086
2122
  }
2087
2123
  .excalidraw.theme--dark .library-menu-items__no-items {
2088
2124
  color: var(--color-gray-40);
@@ -2096,7 +2132,7 @@
2096
2132
  overflow-y: auto;
2097
2133
  flex-direction: column;
2098
2134
  height: 100%;
2099
- justify-content: center;
2135
+ justify-content: flex-start;
2100
2136
  margin: 0;
2101
2137
  position: relative;
2102
2138
  }
@@ -2110,30 +2146,59 @@
2110
2146
  gap: 1rem;
2111
2147
  }
2112
2148
  .excalidraw .library-menu-items-container__items {
2149
+ position: relative;
2113
2150
  row-gap: 0.5rem;
2114
- padding: var(--container-padding-y) 0;
2151
+ padding: 1rem 0 var(--container-padding-y) 0;
2115
2152
  flex: 1;
2116
2153
  overflow-y: auto;
2117
2154
  overflow-x: hidden;
2118
- margin-bottom: 1rem;
2119
2155
  }
2120
2156
  .excalidraw .library-menu-items-container__header {
2157
+ display: flex;
2158
+ align-items: center;
2159
+ flex: 1 1 auto;
2121
2160
  color: var(--color-primary);
2122
2161
  font-size: 1.125rem;
2123
2162
  font-weight: 700;
2124
2163
  margin-bottom: 0.75rem;
2125
2164
  width: 100%;
2126
- padding-right: 4rem;
2127
2165
  box-sizing: border-box;
2128
2166
  }
2129
2167
  .excalidraw .library-menu-items-container__header--excal {
2130
2168
  margin-top: 2rem;
2131
2169
  }
2170
+ .excalidraw .library-menu-items-container__header__hint {
2171
+ margin-left: auto;
2172
+ font-size: 10px;
2173
+ color: var(--color-border-outline);
2174
+ font-weight: 400;
2175
+ }
2176
+ .excalidraw .library-menu-items-container__header__hint kbd {
2177
+ font-family: monospace;
2178
+ border: 1px solid var(--color-border-outline);
2179
+ border-radius: 4px;
2180
+ padding: 1px 3px;
2181
+ }
2132
2182
  .excalidraw .library-menu-items-container__grid {
2133
2183
  display: grid;
2134
2184
  grid-template-columns: 1fr 1fr 1fr 1fr;
2135
2185
  grid-gap: 1rem;
2136
2186
  }
2187
+ .excalidraw .library-menu-items-container__search {
2188
+ flex: 1 1 auto;
2189
+ margin: 0;
2190
+ }
2191
+ .excalidraw .library-menu-items-container__search .ExcTextField__input {
2192
+ height: var(--lg-button-size);
2193
+ }
2194
+ .excalidraw .library-menu-items-container__search .ExcTextField__input input {
2195
+ font-size: 0.875rem;
2196
+ }
2197
+ .excalidraw .library-menu-items-container__search.hideCancelButton input::-webkit-search-cancel-button {
2198
+ -webkit-appearance: none;
2199
+ appearance: none;
2200
+ display: none;
2201
+ }
2137
2202
  .excalidraw .library-menu-items-container .separator {
2138
2203
  width: 100%;
2139
2204
  display: flex;
@@ -2148,438 +2213,161 @@
2148
2213
  width: 100%;
2149
2214
  }
2150
2215
 
2151
- /* components/LibraryMenu.scss */
2152
- .excalidraw .layer-ui__library {
2153
- display: flex;
2154
- flex-direction: column;
2155
- flex: 1 1 auto;
2156
- }
2157
- .excalidraw .library-actions-counter {
2158
- background-color: var(--color-primary);
2159
- color: var(--color-primary-light);
2160
- font-weight: 700;
2161
- display: flex;
2162
- align-items: center;
2163
- justify-content: center;
2164
- border-radius: 50%;
2165
- width: 1rem;
2166
- height: 1rem;
2167
- position: absolute;
2168
- bottom: -0.25rem;
2169
- right: -0.25rem;
2170
- font-size: 0.625rem;
2171
- pointer-events: none;
2172
- }
2173
- .excalidraw .layer-ui__library-message {
2174
- padding: 2rem;
2175
- min-width: 200px;
2176
- display: flex;
2177
- flex-direction: column;
2178
- align-items: center;
2179
- flex-grow: 1;
2180
- justify-content: center;
2181
- }
2182
- .excalidraw .layer-ui__library-message span {
2183
- font-size: 0.8em;
2184
- }
2185
- .excalidraw .publish-library-success .Dialog__content {
2186
- display: flex;
2187
- flex-direction: column;
2188
- }
2189
- .excalidraw .publish-library-success-close.ToolIcon_type_button {
2190
- background-color: #228be6;
2191
- align-self: flex-end;
2216
+ /* components/Button.scss */
2217
+ .excalidraw,
2218
+ .exc-style {
2219
+ --theme-filter: none;
2220
+ --button-destructive-bg-color: #ffe3e3;
2221
+ --button-destructive-color: #c92a2a;
2222
+ --button-gray-1: #e9ecef;
2223
+ --button-gray-2: #ced4da;
2224
+ --button-gray-3: #adb5bd;
2225
+ --button-special-active-bg-color: #ebfbee;
2226
+ --dialog-border-color: var(--color-gray-20);
2227
+ --dropdown-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>');
2228
+ --focus-highlight-color: #a5d8ff;
2229
+ --icon-fill-color: var(--color-on-surface);
2230
+ --icon-green-fill-color: #2b8a3e;
2231
+ --default-bg-color: #ffffff;
2232
+ --input-bg-color: #ffffff;
2233
+ --input-border-color: #ced4da;
2234
+ --input-hover-bg-color: #f1f3f5;
2235
+ --input-label-color: #495057;
2236
+ --island-bg-color: #ffffff;
2237
+ --keybinding-color: var(--color-gray-40);
2238
+ --link-color: #1c7ed6;
2239
+ --overlay-bg-color: rgba(255, 255, 255, 0.88);
2240
+ --popup-bg-color: var(--island-bg-color);
2241
+ --popup-secondary-bg-color: #f1f3f5;
2242
+ --popup-text-color: #000000;
2243
+ --popup-text-inverted-color: #ffffff;
2244
+ --select-highlight-color: #339af0;
2245
+ --shadow-island:
2246
+ 0px 0px 0.9310142993927002px 0px rgba(0, 0, 0, 0.17),
2247
+ 0px 0px 3.1270833015441895px 0px rgba(0, 0, 0, 0.08),
2248
+ 0px 7px 14px 0px rgba(0, 0, 0, 0.05);
2249
+ --button-hover-bg: var(--color-surface-high);
2250
+ --button-active-bg: var(--color-surface-high);
2251
+ --button-active-border: var(--color-brand-active);
2252
+ --default-border-color: var(--color-surface-high);
2253
+ --default-button-size: 2rem;
2254
+ --default-icon-size: 1rem;
2255
+ --lg-button-size: 2.25rem;
2256
+ --lg-icon-size: 1rem;
2257
+ --editor-container-padding: 1rem;
2258
+ --scrollbar-thumb: var(--button-gray-2);
2259
+ --scrollbar-thumb-hover: var(--button-gray-3);
2260
+ --color-slider-track: hsl(240, 100%, 90%);
2261
+ --color-slider-thumb: var(--color-gray-80);
2262
+ --modal-shadow:
2263
+ 0px 100px 80px rgba(0, 0, 0, 0.07),
2264
+ 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198),
2265
+ 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275),
2266
+ 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035),
2267
+ 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725),
2268
+ 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);
2269
+ --avatar-border-color: var(--color-gray-20);
2270
+ --sidebar-shadow:
2271
+ 0px 100px 80px rgba(0, 0, 0, 0.07),
2272
+ 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198),
2273
+ 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275),
2274
+ 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035),
2275
+ 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725),
2276
+ 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);
2277
+ --sidebar-border-color: var(--color-surface-high);
2278
+ --sidebar-bg-color: var(--island-bg-color);
2279
+ --library-dropdown-shadow:
2280
+ 0px 15px 6px rgba(0, 0, 0, 0.01),
2281
+ 0px 8px 5px rgba(0, 0, 0, 0.05),
2282
+ 0px 4px 4px rgba(0, 0, 0, 0.09),
2283
+ 0px 1px 2px rgba(0, 0, 0, 0.1),
2284
+ 0px 0px 0px rgba(0, 0, 0, 0.1);
2285
+ --space-factor: 0.25rem;
2286
+ --text-primary-color: var(--color-on-surface);
2287
+ --color-selection: #6965db;
2288
+ --color-icon-white: #ffffff;
2289
+ --color-primary: #6965db;
2290
+ --color-primary-darker: #5b57d1;
2291
+ --color-primary-darkest: #4a47b1;
2292
+ --color-primary-light: #e3e2fe;
2293
+ --color-primary-light-darker: #d7d5ff;
2294
+ --color-primary-hover: #5753d0;
2295
+ --color-gray-10: #f5f5f5;
2296
+ --color-gray-20: #ebebeb;
2297
+ --color-gray-30: #d6d6d6;
2298
+ --color-gray-40: #b8b8b8;
2299
+ --color-gray-50: #999999;
2300
+ --color-gray-60: #7a7a7a;
2301
+ --color-gray-70: #5c5c5c;
2302
+ --color-gray-80: #3d3d3d;
2303
+ --color-gray-85: #242424;
2304
+ --color-gray-90: #1e1e1e;
2305
+ --color-gray-100: #121212;
2306
+ --color-disabled: var(--color-gray-40);
2307
+ --color-warning: #fceeca;
2308
+ --color-warning-dark: #f5c354;
2309
+ --color-warning-darker: #f3ab2c;
2310
+ --color-warning-darkest: #ec8b14;
2311
+ --color-text-warning: var(--text-primary-color);
2312
+ --color-danger: #db6965;
2313
+ --color-danger-dark: #db6965;
2314
+ --color-danger-darker: #d65550;
2315
+ --color-danger-darkest: #d1413c;
2316
+ --color-danger-text: black;
2317
+ --color-danger-background: #fff0f0;
2318
+ --color-danger-icon-background: #ffdad6;
2319
+ --color-danger-color: #700000;
2320
+ --color-danger-icon-color: #700000;
2321
+ --color-warning-background: var(--color-warning);
2322
+ --color-warning-icon-background: var(--color-warning-dark);
2323
+ --color-warning-color: var(--text-primary-color);
2324
+ --color-warning-icon-color: var(--text-primary-color);
2325
+ --color-muted: var(--color-gray-30);
2326
+ --color-muted-darker: var(--color-gray-60);
2327
+ --color-muted-darkest: var(--color-gray-100);
2328
+ --color-muted-background: var(--color-gray-80);
2329
+ --color-muted-background-darker: var(--color-gray-100);
2330
+ --color-promo: var(--color-primary);
2331
+ --color-success: #cafccc;
2332
+ --color-success-darker: #bafabc;
2333
+ --color-success-darkest: #a5eba8;
2334
+ --color-success-text: #268029;
2335
+ --color-success-contrast: #65bb6a;
2336
+ --color-success-contrast-hover: #6bcf70;
2337
+ --color-success-contrast-active: #6edf74;
2338
+ --color-logo-icon: var(--color-primary);
2339
+ --color-logo-text: #190064;
2340
+ --border-radius-md: 0.375rem;
2341
+ --border-radius-lg: 0.5rem;
2342
+ --color-surface-high: #f1f0ff;
2343
+ --color-surface-mid: #f6f6f9;
2344
+ --color-surface-low: #ececf4;
2345
+ --color-surface-lowest: #ffffff;
2346
+ --color-on-surface: #1b1b1f;
2347
+ --color-brand-hover: #5753d0;
2348
+ --color-on-primary-container: #030064;
2349
+ --color-surface-primary-container: #e0dfff;
2350
+ --color-brand-active: #4440bf;
2351
+ --color-border-outline: #767680;
2352
+ --color-border-outline-variant: #c5c5d0;
2353
+ --color-surface-primary-container: #e0dfff;
2354
+ --color-badge: #0b6513;
2355
+ --background-color-badge: #d3ffd2;
2192
2356
  }
2193
- .excalidraw .publish-library-success-close.ToolIcon_type_button:hover {
2194
- background-color: #1971c2;
2357
+ @media screen and (min-device-width: 1921px) {
2358
+ .excalidraw,
2359
+ .exc-style {
2360
+ --lg-button-size: 2.5rem;
2361
+ --lg-icon-size: 1.25rem;
2362
+ --default-button-size: 2.25rem;
2363
+ --default-icon-size: 1.25rem;
2364
+ }
2195
2365
  }
2196
- .excalidraw .publish-library-success-close.ToolIcon_type_button .ToolIcon__icon {
2197
- width: auto;
2198
- font-size: 1rem;
2199
- color: #ffffff;
2200
- padding: 0 0.5rem;
2201
- }
2202
- .excalidraw .library-menu-control-buttons {
2203
- display: flex;
2204
- align-items: center;
2205
- justify-content: center;
2206
- gap: 0.625rem;
2207
- position: relative;
2208
- }
2209
- .excalidraw .library-menu-control-buttons--at-bottom::before {
2210
- content: "";
2211
- width: calc(100% - 1.5rem);
2212
- height: 1px;
2213
- position: absolute;
2214
- top: -1px;
2215
- background: var(--sidebar-border-color);
2216
- }
2217
- .excalidraw .library-menu-browse-button {
2218
- flex: 1;
2219
- height: var(--lg-button-size);
2220
- display: flex;
2221
- align-items: center;
2222
- justify-content: center;
2223
- overflow: hidden;
2224
- position: relative;
2225
- border-radius: var(--border-radius-lg);
2226
- background-color: var(--color-primary);
2227
- color: #ffffff;
2228
- text-align: center;
2229
- white-space: nowrap;
2230
- text-decoration: none !important;
2231
- font-weight: 600;
2232
- font-size: 0.75rem;
2233
- }
2234
- .excalidraw .library-menu-browse-button:hover {
2235
- background-color: var(--color-brand-hover);
2236
- }
2237
- .excalidraw .library-menu-browse-button:active {
2238
- background-color: var(--color-brand-active);
2239
- }
2240
- .excalidraw.theme--dark .library-menu-browse-button {
2241
- color: var(--color-gray-100);
2242
- }
2243
- .excalidraw.excalidraw--mobile .library-menu-browse-button {
2244
- height: var(--default-button-size);
2245
- }
2246
- .excalidraw .layer-ui__library .dropdown-menu {
2247
- width: auto;
2248
- top: initial;
2249
- right: 0;
2250
- left: initial;
2251
- bottom: 100%;
2252
- margin-bottom: 0.625rem;
2253
- }
2254
- .excalidraw .layer-ui__library .dropdown-menu .dropdown-menu-container {
2255
- width: 196px;
2256
- box-shadow: var(--library-dropdown-shadow);
2257
- border-radius: var(--border-radius-lg);
2258
- padding: 0.25rem 0.5rem;
2259
- }
2260
- .excalidraw .layer-ui__library .library-menu-dropdown-container {
2261
- position: relative;
2262
- }
2263
- .excalidraw .layer-ui__library .library-menu-dropdown-container--in-heading {
2264
- padding: 0;
2265
- position: absolute;
2266
- top: 1rem;
2267
- right: 0.75rem;
2268
- z-index: 1;
2269
- }
2270
- .excalidraw .layer-ui__library .library-menu-dropdown-container--in-heading .dropdown-menu {
2271
- top: 100%;
2272
- }
2273
-
2274
- /* components/Modal.scss */
2275
- .excalidraw.excalidraw-modal-container {
2276
- position: absolute;
2277
- z-index: var(--zIndex-modal);
2278
- }
2279
- .excalidraw .Modal {
2280
- position: absolute;
2281
- top: 0;
2282
- left: 0;
2283
- right: 0;
2284
- bottom: 0;
2285
- display: flex;
2286
- align-items: center;
2287
- justify-content: center;
2288
- overflow: auto;
2289
- padding: calc(var(--space-factor) * 10);
2290
- display: flex;
2291
- flex-direction: column;
2292
- }
2293
- .excalidraw .Modal .Island {
2294
- padding: 2.5rem;
2295
- border: 0;
2296
- box-shadow: none;
2297
- border-radius: 0;
2298
- }
2299
- .excalidraw .Modal.animations-disabled .Modal__background {
2300
- animation: none;
2301
- }
2302
- .excalidraw .Modal.animations-disabled .Modal__content {
2303
- animation: none;
2304
- opacity: 1;
2305
- }
2306
- .excalidraw .Modal__background {
2307
- position: fixed;
2308
- top: 0;
2309
- left: 0;
2310
- right: 0;
2311
- bottom: 0;
2312
- z-index: 1;
2313
- background-color: rgba(18, 18, 18, 0.2);
2314
- animation: Modal__background__fade-in 0.1s linear forwards;
2315
- }
2316
- .excalidraw .Modal__content {
2317
- position: relative;
2318
- z-index: 2;
2319
- width: 100%;
2320
- max-width: var(--max-width);
2321
- max-height: 100%;
2322
- opacity: 0;
2323
- transform: translateY(10px);
2324
- animation: Modal__content_fade-in 0.025s ease-out 0s forwards;
2325
- position: relative;
2326
- overflow-y: auto;
2327
- background: var(--island-bg-color);
2328
- border: 1px solid var(--dialog-border-color);
2329
- box-shadow: var(--modal-shadow);
2330
- border-radius: 0.75rem;
2331
- box-sizing: border-box;
2332
- }
2333
- .excalidraw .Modal__content:focus {
2334
- outline: none;
2335
- }
2336
- @keyframes Modal__background__fade-in {
2337
- from {
2338
- opacity: 0;
2339
- }
2340
- to {
2341
- opacity: 1;
2342
- }
2343
- }
2344
- @keyframes Modal__content_fade-in {
2345
- from {
2346
- opacity: 0;
2347
- transform: scale(0.9);
2348
- }
2349
- to {
2350
- opacity: 1;
2351
- transform: scale(1);
2352
- }
2353
- }
2354
- .excalidraw .Modal__close {
2355
- color: var(--icon-fill-color);
2356
- margin: 0;
2357
- padding: 0.375rem;
2358
- position: absolute;
2359
- top: 1rem;
2360
- right: 1rem;
2361
- border: 0;
2362
- background-color: transparent;
2363
- line-height: 0;
2364
- cursor: pointer;
2365
- }
2366
- .excalidraw .Modal__close svg {
2367
- width: 1.5rem;
2368
- height: 1.5rem;
2369
- }
2370
- .excalidraw .Dialog--fullscreen .Modal {
2371
- padding: 0;
2372
- }
2373
- .excalidraw .Dialog--fullscreen .Modal__content {
2374
- position: absolute;
2375
- top: 0;
2376
- left: 0;
2377
- right: 0;
2378
- bottom: 0;
2379
- max-width: 100%;
2380
- border: 0;
2381
- border-radius: 0;
2382
- }
2383
-
2384
- /* components/Dialog.scss */
2385
- .excalidraw .Dialog {
2386
- user-select: text;
2387
- cursor: auto;
2388
- }
2389
- .excalidraw .Dialog__title {
2390
- margin: 0;
2391
- text-align: left;
2392
- font-size: 1.25rem;
2393
- border-bottom: 1px solid var(--dialog-border-color);
2394
- padding: 0 0 0.75rem;
2395
- margin-bottom: 1.5rem;
2396
- }
2397
- .excalidraw .Dialog__close {
2398
- color: var(--color-gray-40);
2399
- margin: 0;
2400
- position: absolute;
2401
- top: 0.75rem;
2402
- right: 0.5rem;
2403
- border: 0;
2404
- background-color: transparent;
2405
- line-height: 0;
2406
- cursor: pointer;
2407
- }
2408
- .excalidraw .Dialog__close:hover {
2409
- color: var(--color-gray-60);
2410
- }
2411
- .excalidraw .Dialog__close:active {
2412
- color: var(--color-gray-40);
2413
- }
2414
- .excalidraw .Dialog__close svg {
2415
- width: 1.5rem;
2416
- height: 1.5rem;
2417
- }
2418
- .excalidraw .Dialog__close + .Dialog__content {
2419
- --offset: 28px;
2420
- height: calc(100% - var(--offset)) !important;
2421
- margin-top: var(--offset) !important;
2422
- }
2423
- .excalidraw .Dialog--fullscreen .Dialog__close {
2424
- top: 1.25rem;
2425
- right: 1.25rem;
2426
- }
2427
-
2428
- /* components/Button.scss */
2429
- .excalidraw,
2430
- .exc-style {
2431
- --theme-filter: none;
2432
- --button-destructive-bg-color: #ffe3e3;
2433
- --button-destructive-color: #c92a2a;
2434
- --button-gray-1: #e9ecef;
2435
- --button-gray-2: #ced4da;
2436
- --button-gray-3: #adb5bd;
2437
- --button-special-active-bg-color: #ebfbee;
2438
- --dialog-border-color: var(--color-gray-20);
2439
- --dropdown-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>');
2440
- --focus-highlight-color: #a5d8ff;
2441
- --icon-fill-color: var(--color-on-surface);
2442
- --icon-green-fill-color: #2b8a3e;
2443
- --default-bg-color: #ffffff;
2444
- --input-bg-color: #ffffff;
2445
- --input-border-color: #ced4da;
2446
- --input-hover-bg-color: #f1f3f5;
2447
- --input-label-color: #495057;
2448
- --island-bg-color: #ffffff;
2449
- --keybinding-color: var(--color-gray-40);
2450
- --link-color: #1c7ed6;
2451
- --overlay-bg-color: rgba(255, 255, 255, 0.88);
2452
- --popup-bg-color: var(--island-bg-color);
2453
- --popup-secondary-bg-color: #f1f3f5;
2454
- --popup-text-color: #000000;
2455
- --popup-text-inverted-color: #ffffff;
2456
- --select-highlight-color: #339af0;
2457
- --shadow-island:
2458
- 0px 0px 0.9310142993927002px 0px rgba(0, 0, 0, 0.17),
2459
- 0px 0px 3.1270833015441895px 0px rgba(0, 0, 0, 0.08),
2460
- 0px 7px 14px 0px rgba(0, 0, 0, 0.05);
2461
- --button-hover-bg: var(--color-surface-high);
2462
- --button-active-bg: var(--color-surface-high);
2463
- --button-active-border: var(--color-brand-active);
2464
- --default-border-color: var(--color-surface-high);
2465
- --default-button-size: 2rem;
2466
- --default-icon-size: 1rem;
2467
- --lg-button-size: 2.25rem;
2468
- --lg-icon-size: 1rem;
2469
- --editor-container-padding: 1rem;
2470
- --scrollbar-thumb: var(--button-gray-2);
2471
- --scrollbar-thumb-hover: var(--button-gray-3);
2472
- --color-slider-track: hsl(240, 100%, 90%);
2473
- --color-slider-thumb: var(--color-gray-80);
2474
- --modal-shadow:
2475
- 0px 100px 80px rgba(0, 0, 0, 0.07),
2476
- 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198),
2477
- 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275),
2478
- 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035),
2479
- 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725),
2480
- 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);
2481
- --avatar-border-color: var(--color-gray-20);
2482
- --sidebar-shadow:
2483
- 0px 100px 80px rgba(0, 0, 0, 0.07),
2484
- 0px 41.7776px 33.4221px rgba(0, 0, 0, 0.0503198),
2485
- 0px 22.3363px 17.869px rgba(0, 0, 0, 0.0417275),
2486
- 0px 12.5216px 10.0172px rgba(0, 0, 0, 0.035),
2487
- 0px 6.6501px 5.32008px rgba(0, 0, 0, 0.0282725),
2488
- 0px 2.76726px 2.21381px rgba(0, 0, 0, 0.0196802);
2489
- --sidebar-border-color: var(--color-surface-high);
2490
- --sidebar-bg-color: var(--island-bg-color);
2491
- --library-dropdown-shadow:
2492
- 0px 15px 6px rgba(0, 0, 0, 0.01),
2493
- 0px 8px 5px rgba(0, 0, 0, 0.05),
2494
- 0px 4px 4px rgba(0, 0, 0, 0.09),
2495
- 0px 1px 2px rgba(0, 0, 0, 0.1),
2496
- 0px 0px 0px rgba(0, 0, 0, 0.1);
2497
- --space-factor: 0.25rem;
2498
- --text-primary-color: var(--color-on-surface);
2499
- --color-selection: #6965db;
2500
- --color-icon-white: #ffffff;
2501
- --color-primary: #6965db;
2502
- --color-primary-darker: #5b57d1;
2503
- --color-primary-darkest: #4a47b1;
2504
- --color-primary-light: #e3e2fe;
2505
- --color-primary-light-darker: #d7d5ff;
2506
- --color-primary-hover: #5753d0;
2507
- --color-gray-10: #f5f5f5;
2508
- --color-gray-20: #ebebeb;
2509
- --color-gray-30: #d6d6d6;
2510
- --color-gray-40: #b8b8b8;
2511
- --color-gray-50: #999999;
2512
- --color-gray-60: #7a7a7a;
2513
- --color-gray-70: #5c5c5c;
2514
- --color-gray-80: #3d3d3d;
2515
- --color-gray-85: #242424;
2516
- --color-gray-90: #1e1e1e;
2517
- --color-gray-100: #121212;
2518
- --color-disabled: var(--color-gray-40);
2519
- --color-warning: #fceeca;
2520
- --color-warning-dark: #f5c354;
2521
- --color-warning-darker: #f3ab2c;
2522
- --color-warning-darkest: #ec8b14;
2523
- --color-text-warning: var(--text-primary-color);
2524
- --color-danger: #db6965;
2525
- --color-danger-dark: #db6965;
2526
- --color-danger-darker: #d65550;
2527
- --color-danger-darkest: #d1413c;
2528
- --color-danger-text: black;
2529
- --color-danger-background: #fff0f0;
2530
- --color-danger-icon-background: #ffdad6;
2531
- --color-danger-color: #700000;
2532
- --color-danger-icon-color: #700000;
2533
- --color-warning-background: var(--color-warning);
2534
- --color-warning-icon-background: var(--color-warning-dark);
2535
- --color-warning-color: var(--text-primary-color);
2536
- --color-warning-icon-color: var(--text-primary-color);
2537
- --color-muted: var(--color-gray-30);
2538
- --color-muted-darker: var(--color-gray-60);
2539
- --color-muted-darkest: var(--color-gray-100);
2540
- --color-muted-background: var(--color-gray-80);
2541
- --color-muted-background-darker: var(--color-gray-100);
2542
- --color-promo: var(--color-primary);
2543
- --color-success: #cafccc;
2544
- --color-success-darker: #bafabc;
2545
- --color-success-darkest: #a5eba8;
2546
- --color-success-text: #268029;
2547
- --color-success-contrast: #65bb6a;
2548
- --color-success-contrast-hover: #6bcf70;
2549
- --color-success-contrast-active: #6edf74;
2550
- --color-logo-icon: var(--color-primary);
2551
- --color-logo-text: #190064;
2552
- --border-radius-md: 0.375rem;
2553
- --border-radius-lg: 0.5rem;
2554
- --color-surface-high: #f1f0ff;
2555
- --color-surface-mid: #f6f6f9;
2556
- --color-surface-low: #ececf4;
2557
- --color-surface-lowest: #ffffff;
2558
- --color-on-surface: #1b1b1f;
2559
- --color-brand-hover: #5753d0;
2560
- --color-on-primary-container: #030064;
2561
- --color-surface-primary-container: #e0dfff;
2562
- --color-brand-active: #4440bf;
2563
- --color-border-outline: #767680;
2564
- --color-border-outline-variant: #c5c5d0;
2565
- --color-surface-primary-container: #e0dfff;
2566
- --color-badge: #0b6513;
2567
- --background-color-badge: #d3ffd2;
2568
- }
2569
- @media screen and (min-device-width: 1921px) {
2570
- .excalidraw,
2571
- .exc-style {
2572
- --lg-button-size: 2.5rem;
2573
- --lg-icon-size: 1.25rem;
2574
- --default-button-size: 2.25rem;
2575
- --default-icon-size: 1.25rem;
2576
- }
2577
- }
2578
- .excalidraw.theme--dark.theme--dark-background-none,
2579
- .dark .excalidraw.theme--dark-background-none,
2580
- .exc-style.theme--dark.theme--dark-background-none,
2581
- .dark .exc-style.theme--dark-background-none {
2582
- background: none;
2366
+ .excalidraw.theme--dark.theme--dark-background-none,
2367
+ .dark .excalidraw.theme--dark-background-none,
2368
+ .exc-style.theme--dark.theme--dark-background-none,
2369
+ .dark .exc-style.theme--dark-background-none {
2370
+ background: none;
2583
2371
  }
2584
2372
  .excalidraw.theme--dark,
2585
2373
  .dark .excalidraw,
@@ -2734,85 +2522,361 @@
2734
2522
  --ExcTextField--border-active: var(--color-brand-active);
2735
2523
  --ExcTextField--placeholder: var(--color-border-outline-variant);
2736
2524
  }
2737
- .excalidraw .ExcTextField {
2738
- position: relative;
2525
+ .excalidraw.theme--dark {
2526
+ --ExcTextField--border: var(--color-border-outline-variant);
2527
+ }
2528
+ .excalidraw .ExcTextField {
2529
+ position: relative;
2530
+ }
2531
+ .excalidraw .ExcTextField svg {
2532
+ position: absolute;
2533
+ top: 50%;
2534
+ transform: translateY(-50%);
2535
+ left: 0.75rem;
2536
+ width: 1.25rem;
2537
+ height: 1.25rem;
2538
+ color: var(--color-gray-40);
2539
+ z-index: 1;
2540
+ }
2541
+ .excalidraw .ExcTextField--fullWidth {
2542
+ width: 100%;
2543
+ flex-grow: 1;
2544
+ }
2545
+ .excalidraw .ExcTextField__label {
2546
+ font-family: "Assistant";
2547
+ font-style: normal;
2548
+ font-weight: 600;
2549
+ font-size: 0.875rem;
2550
+ line-height: 150%;
2551
+ color: var(--ExcTextField--label-color);
2552
+ margin-bottom: 0.25rem;
2553
+ user-select: none;
2554
+ }
2555
+ .excalidraw .ExcTextField__input {
2556
+ box-sizing: border-box;
2557
+ display: flex;
2558
+ flex-direction: row;
2559
+ align-items: center;
2560
+ height: 3rem;
2561
+ background: var(--ExcTextField--background);
2562
+ border: 1px solid var(--ExcTextField--border);
2563
+ border-radius: 0.5rem;
2564
+ padding: 0 0.75rem;
2565
+ }
2566
+ .excalidraw .ExcTextField__input:not(.excalidraw .ExcTextField__input--readonly):hover {
2567
+ border-color: var(--ExcTextField--border-hover);
2568
+ }
2569
+ .excalidraw .ExcTextField__input:not(.excalidraw .ExcTextField__input--readonly):active,
2570
+ .excalidraw .ExcTextField__input:not(.excalidraw .ExcTextField__input--readonly):focus-within {
2571
+ border-color: var(--ExcTextField--border-active);
2572
+ }
2573
+ .excalidraw .ExcTextField__input input {
2574
+ display: flex;
2575
+ align-items: center;
2576
+ border: none;
2577
+ outline: none;
2578
+ padding: 0;
2579
+ margin: 0;
2580
+ height: 1.5rem;
2581
+ color: var(--ExcTextField--color);
2582
+ font-family: "Assistant";
2583
+ font-style: normal;
2584
+ font-weight: 400;
2585
+ font-size: 1rem;
2586
+ line-height: 150%;
2587
+ text-overflow: ellipsis;
2588
+ background: transparent;
2589
+ width: 100%;
2590
+ }
2591
+ .excalidraw .ExcTextField__input input:not(:focus):hover {
2592
+ background-color: initial;
2593
+ }
2594
+ .excalidraw .ExcTextField__input input:focus {
2595
+ outline: initial;
2596
+ box-shadow: initial;
2597
+ }
2598
+ .excalidraw .ExcTextField__input--readonly {
2599
+ background: var(--ExcTextField--readonly--background);
2600
+ border-color: var(--ExcTextField--readonly--border);
2601
+ }
2602
+ .excalidraw .ExcTextField__input--readonly input {
2603
+ color: var(--ExcTextField--readonly--color);
2604
+ }
2605
+ .excalidraw .ExcTextField--hasIcon .ExcTextField__input {
2606
+ padding-left: 2.5rem;
2607
+ }
2608
+
2609
+ /* components/LibraryMenu.scss */
2610
+ .excalidraw .layer-ui__library {
2611
+ display: flex;
2612
+ flex-direction: column;
2613
+ flex: 1 1 auto;
2614
+ }
2615
+ .excalidraw .library-actions-counter {
2616
+ background-color: var(--color-primary);
2617
+ color: var(--color-primary-light);
2618
+ font-weight: 700;
2619
+ display: flex;
2620
+ align-items: center;
2621
+ justify-content: center;
2622
+ border-radius: 50%;
2623
+ width: 1rem;
2624
+ height: 1rem;
2625
+ position: absolute;
2626
+ bottom: -0.25rem;
2627
+ right: -0.25rem;
2628
+ font-size: 0.625rem;
2629
+ pointer-events: none;
2630
+ }
2631
+ .excalidraw .layer-ui__library-message {
2632
+ padding: 2rem;
2633
+ min-width: 200px;
2634
+ display: flex;
2635
+ flex-direction: column;
2636
+ align-items: center;
2637
+ flex-grow: 1;
2638
+ justify-content: center;
2639
+ }
2640
+ .excalidraw .layer-ui__library-message span {
2641
+ font-size: 0.8em;
2642
+ }
2643
+ .excalidraw .publish-library-success .Dialog__content {
2644
+ display: flex;
2645
+ flex-direction: column;
2646
+ }
2647
+ .excalidraw .publish-library-success-close.ToolIcon_type_button {
2648
+ background-color: #228be6;
2649
+ align-self: flex-end;
2650
+ }
2651
+ .excalidraw .publish-library-success-close.ToolIcon_type_button:hover {
2652
+ background-color: #1971c2;
2653
+ }
2654
+ .excalidraw .publish-library-success-close.ToolIcon_type_button .ToolIcon__icon {
2655
+ width: auto;
2656
+ font-size: 1rem;
2657
+ color: #ffffff;
2658
+ padding: 0 0.5rem;
2659
+ }
2660
+ .excalidraw .library-menu-control-buttons {
2661
+ display: flex;
2662
+ align-items: center;
2663
+ justify-content: center;
2664
+ gap: 0.625rem;
2665
+ position: relative;
2666
+ }
2667
+ .excalidraw .library-menu-control-buttons--at-bottom::before {
2668
+ content: "";
2669
+ width: calc(100% - 1.5rem);
2670
+ height: 1px;
2671
+ position: absolute;
2672
+ top: -1px;
2673
+ background: var(--sidebar-border-color);
2674
+ }
2675
+ .excalidraw .library-menu-browse-button {
2676
+ flex: 1;
2677
+ height: var(--lg-button-size);
2678
+ display: flex;
2679
+ align-items: center;
2680
+ justify-content: center;
2681
+ overflow: hidden;
2682
+ position: relative;
2683
+ border-radius: var(--border-radius-lg);
2684
+ background-color: var(--color-primary);
2685
+ color: #ffffff;
2686
+ text-align: center;
2687
+ white-space: nowrap;
2688
+ text-decoration: none !important;
2689
+ font-weight: 600;
2690
+ font-size: 0.75rem;
2691
+ }
2692
+ .excalidraw .library-menu-browse-button:hover {
2693
+ background-color: var(--color-brand-hover);
2694
+ }
2695
+ .excalidraw .library-menu-browse-button:active {
2696
+ background-color: var(--color-brand-active);
2697
+ }
2698
+ .excalidraw.theme--dark .library-menu-browse-button {
2699
+ color: var(--color-gray-100);
2700
+ }
2701
+ .excalidraw.excalidraw--mobile .library-menu-browse-button {
2702
+ height: var(--default-button-size);
2703
+ }
2704
+ .excalidraw .layer-ui__library .dropdown-menu {
2705
+ width: auto;
2706
+ top: initial;
2707
+ right: 0;
2708
+ left: initial;
2709
+ bottom: 100%;
2710
+ margin-bottom: 0.625rem;
2711
+ }
2712
+ .excalidraw .layer-ui__library .dropdown-menu .dropdown-menu-container {
2713
+ width: 196px;
2714
+ box-shadow: var(--library-dropdown-shadow);
2715
+ border-radius: var(--border-radius-lg);
2716
+ padding: 0.25rem 0.5rem;
2717
+ }
2718
+ .excalidraw .layer-ui__library .library-menu-dropdown-container {
2719
+ position: relative;
2720
+ }
2721
+ .excalidraw .layer-ui__library .library-menu-dropdown-container--in-heading {
2722
+ margin-left: auto;
2723
+ }
2724
+ .excalidraw .layer-ui__library .library-menu-dropdown-container--in-heading .dropdown-menu {
2725
+ top: 100%;
2726
+ }
2727
+
2728
+ /* components/Modal.scss */
2729
+ .excalidraw.excalidraw-modal-container {
2730
+ position: absolute;
2731
+ z-index: var(--zIndex-modal);
2732
+ }
2733
+ .excalidraw .Modal {
2734
+ position: absolute;
2735
+ top: 0;
2736
+ left: 0;
2737
+ right: 0;
2738
+ bottom: 0;
2739
+ display: flex;
2740
+ align-items: center;
2741
+ justify-content: center;
2742
+ overflow: auto;
2743
+ padding: calc(var(--space-factor) * 10);
2744
+ display: flex;
2745
+ flex-direction: column;
2746
+ }
2747
+ .excalidraw .Modal .Island {
2748
+ padding: 2.5rem;
2749
+ border: 0;
2750
+ box-shadow: none;
2751
+ border-radius: 0;
2752
+ }
2753
+ .excalidraw .Modal.animations-disabled .Modal__background {
2754
+ animation: none;
2755
+ }
2756
+ .excalidraw .Modal.animations-disabled .Modal__content {
2757
+ animation: none;
2758
+ opacity: 1;
2739
2759
  }
2740
- .excalidraw .ExcTextField svg {
2741
- position: absolute;
2742
- top: 50%;
2743
- transform: translateY(-50%);
2744
- left: 0.75rem;
2745
- width: 1.25rem;
2746
- height: 1.25rem;
2747
- color: var(--color-gray-40);
2760
+ .excalidraw .Modal__background {
2761
+ position: fixed;
2762
+ top: 0;
2763
+ left: 0;
2764
+ right: 0;
2765
+ bottom: 0;
2748
2766
  z-index: 1;
2767
+ background-color: rgba(18, 18, 18, 0.2);
2768
+ animation: Modal__background__fade-in 0.1s linear forwards;
2749
2769
  }
2750
- .excalidraw .ExcTextField--fullWidth {
2770
+ .excalidraw .Modal__content {
2771
+ position: relative;
2772
+ z-index: 2;
2751
2773
  width: 100%;
2752
- flex-grow: 1;
2774
+ max-width: var(--max-width);
2775
+ max-height: 100%;
2776
+ opacity: 0;
2777
+ transform: translateY(10px);
2778
+ animation: Modal__content_fade-in 0.025s ease-out 0s forwards;
2779
+ position: relative;
2780
+ overflow-y: auto;
2781
+ background: var(--island-bg-color);
2782
+ border: 1px solid var(--dialog-border-color);
2783
+ box-shadow: var(--modal-shadow);
2784
+ border-radius: 0.75rem;
2785
+ box-sizing: border-box;
2753
2786
  }
2754
- .excalidraw .ExcTextField__label {
2755
- font-family: "Assistant";
2756
- font-style: normal;
2757
- font-weight: 600;
2758
- font-size: 0.875rem;
2759
- line-height: 150%;
2760
- color: var(--ExcTextField--label-color);
2761
- margin-bottom: 0.25rem;
2762
- user-select: none;
2787
+ .excalidraw .Modal__content:focus {
2788
+ outline: none;
2763
2789
  }
2764
- .excalidraw .ExcTextField__input {
2765
- box-sizing: border-box;
2766
- display: flex;
2767
- flex-direction: row;
2768
- align-items: center;
2769
- height: 3rem;
2770
- background: var(--ExcTextField--background);
2771
- border: 1px solid var(--ExcTextField--border);
2772
- border-radius: 0.5rem;
2773
- padding: 0 0.75rem;
2790
+ @keyframes Modal__background__fade-in {
2791
+ from {
2792
+ opacity: 0;
2793
+ }
2794
+ to {
2795
+ opacity: 1;
2796
+ }
2774
2797
  }
2775
- .excalidraw .ExcTextField__input:not(.excalidraw .ExcTextField__input--readonly):hover {
2776
- border-color: var(--ExcTextField--border-hover);
2798
+ @keyframes Modal__content_fade-in {
2799
+ from {
2800
+ opacity: 0;
2801
+ transform: scale(0.9);
2802
+ }
2803
+ to {
2804
+ opacity: 1;
2805
+ transform: scale(1);
2806
+ }
2777
2807
  }
2778
- .excalidraw .ExcTextField__input:not(.excalidraw .ExcTextField__input--readonly):active,
2779
- .excalidraw .ExcTextField__input:not(.excalidraw .ExcTextField__input--readonly):focus-within {
2780
- border-color: var(--ExcTextField--border-active);
2808
+ .excalidraw .Modal__close {
2809
+ color: var(--icon-fill-color);
2810
+ margin: 0;
2811
+ padding: 0.375rem;
2812
+ position: absolute;
2813
+ top: 1rem;
2814
+ right: 1rem;
2815
+ border: 0;
2816
+ background-color: transparent;
2817
+ line-height: 0;
2818
+ cursor: pointer;
2781
2819
  }
2782
- .excalidraw .ExcTextField__input input {
2783
- display: flex;
2784
- align-items: center;
2785
- border: none;
2786
- outline: none;
2820
+ .excalidraw .Modal__close svg {
2821
+ width: 1.5rem;
2822
+ height: 1.5rem;
2823
+ }
2824
+ .excalidraw .Dialog--fullscreen .Modal {
2787
2825
  padding: 0;
2826
+ }
2827
+ .excalidraw .Dialog--fullscreen .Modal__content {
2828
+ position: absolute;
2829
+ top: 0;
2830
+ left: 0;
2831
+ right: 0;
2832
+ bottom: 0;
2833
+ max-width: 100%;
2834
+ border: 0;
2835
+ border-radius: 0;
2836
+ }
2837
+
2838
+ /* components/Dialog.scss */
2839
+ .excalidraw .Dialog {
2840
+ user-select: text;
2841
+ cursor: auto;
2842
+ }
2843
+ .excalidraw .Dialog__title {
2788
2844
  margin: 0;
2789
- height: 1.5rem;
2790
- color: var(--ExcTextField--color);
2791
- font-family: "Assistant";
2792
- font-style: normal;
2793
- font-weight: 400;
2794
- font-size: 1rem;
2795
- line-height: 150%;
2796
- text-overflow: ellipsis;
2797
- background: transparent;
2798
- width: 100%;
2845
+ text-align: left;
2846
+ font-size: 1.25rem;
2847
+ border-bottom: 1px solid var(--dialog-border-color);
2848
+ padding: 0 0 0.75rem;
2849
+ margin-bottom: 1.5rem;
2799
2850
  }
2800
- .excalidraw .ExcTextField__input input:not(:focus):hover {
2801
- background-color: initial;
2851
+ .excalidraw .Dialog__close {
2852
+ color: var(--color-gray-40);
2853
+ margin: 0;
2854
+ position: absolute;
2855
+ top: 0.75rem;
2856
+ right: 0.5rem;
2857
+ border: 0;
2858
+ background-color: transparent;
2859
+ line-height: 0;
2860
+ cursor: pointer;
2802
2861
  }
2803
- .excalidraw .ExcTextField__input input:focus {
2804
- outline: initial;
2805
- box-shadow: initial;
2862
+ .excalidraw .Dialog__close:hover {
2863
+ color: var(--color-gray-60);
2806
2864
  }
2807
- .excalidraw .ExcTextField__input--readonly {
2808
- background: var(--ExcTextField--readonly--background);
2809
- border-color: var(--ExcTextField--readonly--border);
2865
+ .excalidraw .Dialog__close:active {
2866
+ color: var(--color-gray-40);
2810
2867
  }
2811
- .excalidraw .ExcTextField__input--readonly input {
2812
- color: var(--ExcTextField--readonly--color);
2868
+ .excalidraw .Dialog__close svg {
2869
+ width: 1.5rem;
2870
+ height: 1.5rem;
2813
2871
  }
2814
- .excalidraw .ExcTextField--hasIcon .ExcTextField__input {
2815
- padding-left: 2.5rem;
2872
+ .excalidraw .Dialog__close + .Dialog__content {
2873
+ --offset: 28px;
2874
+ height: calc(100% - var(--offset)) !important;
2875
+ margin-top: var(--offset) !important;
2876
+ }
2877
+ .excalidraw .Dialog--fullscreen .Dialog__close {
2878
+ top: 1.25rem;
2879
+ right: 1.25rem;
2816
2880
  }
2817
2881
 
2818
2882
  /* components/Actions.scss */
@@ -2893,6 +2957,98 @@
2893
2957
  border-top-left-radius: 0 !important;
2894
2958
  border-bottom-left-radius: 0 !important;
2895
2959
  }
2960
+ .compact-shape-actions {
2961
+ display: flex;
2962
+ flex-direction: column;
2963
+ gap: 0.5rem;
2964
+ max-height: calc(100vh - 200px);
2965
+ overflow-y: auto;
2966
+ padding: 0.5rem;
2967
+ }
2968
+ .compact-shape-actions .compact-action-item {
2969
+ position: relative;
2970
+ display: flex;
2971
+ justify-content: center;
2972
+ align-items: center;
2973
+ min-height: 2.5rem;
2974
+ --default-button-size: 2rem;
2975
+ }
2976
+ .compact-shape-actions .compact-action-item .compact-action-button {
2977
+ width: 2rem;
2978
+ height: 2rem;
2979
+ border: none;
2980
+ border-radius: var(--border-radius-lg);
2981
+ background: transparent;
2982
+ color: var(--color-on-surface);
2983
+ cursor: pointer;
2984
+ display: flex;
2985
+ align-items: center;
2986
+ justify-content: center;
2987
+ transition: all 0.2s ease;
2988
+ }
2989
+ .compact-shape-actions .compact-action-item .compact-action-button svg {
2990
+ width: 1rem;
2991
+ height: 1rem;
2992
+ flex: 0 0 auto;
2993
+ }
2994
+ .compact-shape-actions .compact-action-item .compact-action-button:hover {
2995
+ background: var(--button-hover-bg, var(--island-bg-color));
2996
+ border-color: var(--button-hover-border, var(--button-border, var(--default-border-color)));
2997
+ }
2998
+ .compact-shape-actions .compact-action-item .compact-action-button:active {
2999
+ background: var(--button-active-bg, var(--island-bg-color));
3000
+ border-color: var(--button-active-border, var(--color-primary-darkest));
3001
+ }
3002
+ .compact-shape-actions .compact-action-item .compact-popover-content .popover-section {
3003
+ margin-bottom: 1rem;
3004
+ }
3005
+ .compact-shape-actions .compact-action-item .compact-popover-content .popover-section:last-child {
3006
+ margin-bottom: 0;
3007
+ }
3008
+ .compact-shape-actions .compact-action-item .compact-popover-content .popover-section .popover-section-title {
3009
+ font-size: 0.75rem;
3010
+ font-weight: 600;
3011
+ color: var(--color-text-secondary);
3012
+ margin-bottom: 0.5rem;
3013
+ text-transform: uppercase;
3014
+ letter-spacing: 0.5px;
3015
+ }
3016
+ .compact-shape-actions .compact-action-item .compact-popover-content .popover-section .buttonList {
3017
+ display: flex;
3018
+ flex-wrap: wrap;
3019
+ gap: 0.25rem;
3020
+ }
3021
+ .compact-shape-actions-island {
3022
+ width: fit-content;
3023
+ overflow-x: hidden;
3024
+ }
3025
+ .compact-popover-content .popover-section {
3026
+ margin-bottom: 1rem;
3027
+ }
3028
+ .compact-popover-content .popover-section:last-child {
3029
+ margin-bottom: 0;
3030
+ }
3031
+ .compact-popover-content .popover-section .popover-section-title {
3032
+ font-size: 0.75rem;
3033
+ font-weight: 600;
3034
+ color: var(--color-text-secondary);
3035
+ margin-bottom: 0.5rem;
3036
+ text-transform: uppercase;
3037
+ letter-spacing: 0.5px;
3038
+ }
3039
+ .compact-popover-content .popover-section .buttonList {
3040
+ display: flex;
3041
+ flex-wrap: wrap;
3042
+ gap: 0.25rem;
3043
+ }
3044
+ .shape-actions-theme-scope {
3045
+ --button-border: transparent;
3046
+ --button-bg: var(--color-surface-mid);
3047
+ }
3048
+ :root.theme--dark .shape-actions-theme-scope {
3049
+ --button-hover-bg: #363541;
3050
+ --button-bg: var(--color-surface-high);
3051
+ }
2896
3052
 
2897
3053
  /* components/CommandPalette/CommandPalette.scss */
2898
3054
  .excalidraw .command-palette-dialog {
@@ -2981,6 +3137,16 @@
2981
3137
  padding: 0 0.5rem;
2982
3138
  border-radius: var(--border-radius-lg);
2983
3139
  cursor: pointer;
3140
+ --icon-size: 1rem;
3141
+ }
3142
+ .excalidraw .command-palette-dialog .commands .command-item.command-item-large {
3143
+ height: 2.75rem;
3144
+ --icon-size: 1.5rem;
3145
+ }
3146
+ .excalidraw .command-palette-dialog .commands .command-item.command-item-large .icon {
3147
+ width: var(--icon-size);
3148
+ height: var(--icon-size);
3149
+ margin-right: 0.625rem;
2984
3150
  }
2985
3151
  .excalidraw .command-palette-dialog .commands .command-item:active {
2986
3152
  background-color: var(--color-surface-low);
@@ -2989,6 +3155,7 @@
2989
3155
  display: flex;
2990
3156
  align-items: center;
2991
3157
  gap: 0.25rem;
3158
+ overflow: hidden;
2992
3159
  }
2993
3160
  .excalidraw .command-palette-dialog .commands .item-selected {
2994
3161
  background-color: var(--color-surface-mid);
@@ -3004,9 +3171,16 @@
3004
3171
  margin-top: 36px;
3005
3172
  }
3006
3173
  .excalidraw .command-palette-dialog .icon {
3007
- width: 16px;
3008
- height: 16px;
3009
- margin-right: 6px;
3174
+ width: var(--icon-size, 1rem);
3175
+ height: var(--icon-size, 1rem);
3176
+ margin-right: 0.375rem;
3177
+ }
3178
+ .excalidraw .command-palette-dialog .icon .library-item-icon {
3179
+ display: flex;
3180
+ align-items: center;
3181
+ justify-content: center;
3182
+ height: 100%;
3183
+ width: 100%;
3010
3184
  }
3011
3185
 
3012
3186
  /* components/ElementCanvasButtons.scss */
@@ -5247,6 +5421,9 @@
5247
5421
  gap: 0.75rem;
5248
5422
  pointer-events: none !important;
5249
5423
  }
5424
+ .excalidraw .layer-ui__wrapper__top-right--compact {
5425
+ gap: 0.5rem;
5426
+ }
5250
5427
  .excalidraw .layer-ui__wrapper__top-right > * {
5251
5428
  pointer-events: var(--ui-pointerEvents);
5252
5429
  }
@@ -5325,6 +5502,12 @@
5325
5502
  .excalidraw .App-toolbar.zen-mode .HintViewer {
5326
5503
  display: none;
5327
5504
  }
5505
+ .excalidraw .App-toolbar--compact .ToolIcon__keybinding {
5506
+ display: none;
5507
+ }
5508
+ .excalidraw .App-toolbar--compact .App-toolbar__divider {
5509
+ margin: 0;
5510
+ }
5328
5511
  .excalidraw .App-toolbar__divider {
5329
5512
  width: 1px;
5330
5513
  height: 1.5rem;
@@ -6368,7 +6551,7 @@ body.excalidraw-cursor-resize * {
6368
6551
  }
6369
6552
  .excalidraw .App-menu_top {
6370
6553
  grid-template-columns: 1fr 2fr 1fr;
6371
- grid-gap: 2rem;
6554
+ grid-gap: 1rem;
6372
6555
  align-items: flex-start;
6373
6556
  cursor: default;
6374
6557
  pointer-events: none !important;
@@ -6385,6 +6568,12 @@ body.excalidraw-cursor-resize * {
6385
6568
  .excalidraw .App-menu_top > *:first-child {
6386
6569
  justify-self: flex-start;
6387
6570
  }
6571
+ .excalidraw .selected-shape-actions-container {
6572
+ width: fit-content;
6573
+ }
6574
+ .excalidraw .selected-shape-actions-container--compact {
6575
+ min-width: 48px;
6576
+ }
6388
6577
  .excalidraw .App-menu_top > *:last-child {
6389
6578
  justify-self: flex-end;
6390
6579
  }