@remotion/studio 4.0.485 → 4.0.486

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 (238) hide show
  1. package/dist/ResolveCompositionConfigInStudio.js +42 -0
  2. package/dist/components/AssetSelector.js +1 -1
  3. package/dist/components/AssetSelectorItem.js +9 -9
  4. package/dist/components/AudioWaveform.js +3 -3
  5. package/dist/components/Button.js +2 -2
  6. package/dist/components/Canvas.js +28 -0
  7. package/dist/components/CanvasOrLoading.js +1 -1
  8. package/dist/components/CheckboardToggle.js +1 -1
  9. package/dist/components/Checkbox.js +3 -3
  10. package/dist/components/ColorPicker/AlphaSlider.js +4 -3
  11. package/dist/components/ColorPicker/ColorPicker.js +4 -4
  12. package/dist/components/ColorPicker/ColorPickerPopup.js +10 -10
  13. package/dist/components/ColorPicker/HueSlider.js +4 -3
  14. package/dist/components/ColorPicker/SaturationValueArea.js +5 -4
  15. package/dist/components/ColorPicker/checker.d.ts +1 -1
  16. package/dist/components/ColorPicker/checker.js +3 -3
  17. package/dist/components/CompactExplanation.js +3 -3
  18. package/dist/components/CompositionSelector.js +141 -5
  19. package/dist/components/CompositionSelectorItem.d.ts +1 -0
  20. package/dist/components/CompositionSelectorItem.js +103 -11
  21. package/dist/components/CopyButton.js +3 -2
  22. package/dist/components/CurrentAsset.d.ts +3 -1
  23. package/dist/components/CurrentAsset.js +15 -2
  24. package/dist/components/EffectPickerModal.js +1 -1
  25. package/dist/components/FilePreview.js +2 -1
  26. package/dist/components/FpsCounter.js +3 -2
  27. package/dist/components/FullscreenToggle.js +2 -1
  28. package/dist/components/GlobalKeybindings.js +0 -12
  29. package/dist/components/InlineAction.js +2 -2
  30. package/dist/components/InlineEditableTitle.d.ts +1 -0
  31. package/dist/components/InlineEditableTitle.js +12 -7
  32. package/dist/components/InspectorInfoHeader.js +2 -2
  33. package/dist/components/InspectorPanel/DefaultInspector.d.ts +1 -0
  34. package/dist/components/InspectorPanel/DefaultInspector.js +2 -2
  35. package/dist/components/InspectorPanel/KeyframeEasingNavigator.js +1 -1
  36. package/dist/components/InspectorPanel/common.js +2 -2
  37. package/dist/components/InspectorPanel/styles.js +3 -3
  38. package/dist/components/InspectorPanel.d.ts +1 -0
  39. package/dist/components/InspectorPanel.js +2 -2
  40. package/dist/components/InspectorSequenceSection.js +1 -1
  41. package/dist/components/InstallablePackage.js +1 -1
  42. package/dist/components/KeyboardShortcutsExplainer.js +5 -5
  43. package/dist/components/LoopToggle.js +1 -1
  44. package/dist/components/Menu/MenuDivider.js +1 -1
  45. package/dist/components/Menu/MenuItem.js +1 -1
  46. package/dist/components/Menu/MenuSubItem.js +1 -1
  47. package/dist/components/Menu/styles.js +3 -3
  48. package/dist/components/MenuToolbar.js +2 -2
  49. package/dist/components/ModalButton.js +1 -1
  50. package/dist/components/ModalContainer.js +3 -3
  51. package/dist/components/ModalFooter.js +2 -1
  52. package/dist/components/ModalHeader.js +3 -2
  53. package/dist/components/Modals.js +2 -1
  54. package/dist/components/NewComposition/CancelButton.js +4 -3
  55. package/dist/components/NewComposition/ComboBox.js +3 -3
  56. package/dist/components/NewComposition/InputDragger.js +11 -3
  57. package/dist/components/NewComposition/MenuContent.js +1 -1
  58. package/dist/components/NewComposition/NewComposition.js +4 -1
  59. package/dist/components/NewComposition/NewFolder.d.ts +5 -0
  60. package/dist/components/NewComposition/NewFolder.js +86 -0
  61. package/dist/components/NewComposition/RemInput.js +3 -3
  62. package/dist/components/NewComposition/RemTextarea.js +1 -1
  63. package/dist/components/NewComposition/RenameStaticFile.js +20 -59
  64. package/dist/components/NewComposition/ValidationMessage.js +1 -1
  65. package/dist/components/NewComposition/use-rename-static-file.d.ts +18 -0
  66. package/dist/components/NewComposition/use-rename-static-file.js +90 -0
  67. package/dist/components/NoRegisterRoot.js +3 -2
  68. package/dist/components/Notifications/ColorDot.js +3 -2
  69. package/dist/components/Notifications/Notification.js +4 -4
  70. package/dist/components/Notifications/NotificationCenter.js +2 -1
  71. package/dist/components/Notifications/ServerDisconnected.js +5 -4
  72. package/dist/components/OptionsPanel.js +1 -1
  73. package/dist/components/OutlineToggle.js +1 -1
  74. package/dist/components/PlayPause.js +4 -3
  75. package/dist/components/PreviewToolbar.js +1 -1
  76. package/dist/components/QuickSwitcher/AlgoliaCredit.js +2 -1
  77. package/dist/components/QuickSwitcher/QuickSwitcherContent.js +1 -1
  78. package/dist/components/QuickSwitcher/QuickSwitcherResult.js +2 -2
  79. package/dist/components/RefreshCompositionOverlay.js +2 -1
  80. package/dist/components/RenderButton.js +9 -9
  81. package/dist/components/RenderModal/CliCopyButton.js +1 -1
  82. package/dist/components/RenderModal/ClientRenderProgress.js +1 -1
  83. package/dist/components/RenderModal/DataEditor.js +1 -1
  84. package/dist/components/RenderModal/GuiRenderStatus.js +1 -1
  85. package/dist/components/RenderModal/InfoBubble.js +2 -2
  86. package/dist/components/RenderModal/InfoTooltip.js +3 -3
  87. package/dist/components/RenderModal/InlineEyeIcon.js +2 -1
  88. package/dist/components/RenderModal/InlineRemoveButton.js +2 -1
  89. package/dist/components/RenderModal/MultiRangeSlider.js +1 -1
  90. package/dist/components/RenderModal/OptionExplainer.js +2 -2
  91. package/dist/components/RenderModal/RenderModalHr.js +2 -1
  92. package/dist/components/RenderModal/RenderStatusModal.js +2 -1
  93. package/dist/components/RenderModal/SchemaEditor/SchemaLabel.js +1 -5
  94. package/dist/components/RenderModal/SchemaEditor/SchemaResetButton.js +2 -1
  95. package/dist/components/RenderModal/SchemaEditor/SchemaSeparationLine.js +1 -1
  96. package/dist/components/RenderModal/SchemaEditor/SchemaVerticalGuide.js +2 -1
  97. package/dist/components/RenderModal/SchemaEditor/ZodDateEditor.js +1 -1
  98. package/dist/components/RenderModal/SchemaEditor/ZodErrorMessages.js +1 -1
  99. package/dist/components/RenderModal/SchemaEditor/ZodNonEditableValue.js +1 -1
  100. package/dist/components/RenderModal/SchemaEditor/create-zod-values.js +2 -1
  101. package/dist/components/RenderModal/ServerRenderModal.js +1 -1
  102. package/dist/components/RenderModal/WarningIndicatorButton.js +4 -6
  103. package/dist/components/RenderModal/WebRenderModalAudio.js +4 -3
  104. package/dist/components/RenderModal/WebRenderModalLicense.js +2 -2
  105. package/dist/components/RenderModal/WebRenderModalPicture.js +2 -1
  106. package/dist/components/RenderModal/render-modals.js +3 -3
  107. package/dist/components/RenderPreview.js +1 -1
  108. package/dist/components/RenderQueue/RenderQueueCopyToClipboard.js +2 -1
  109. package/dist/components/RenderQueue/RenderQueueDownloadItem.js +2 -1
  110. package/dist/components/RenderQueue/RenderQueueItemCancelButton.js +2 -1
  111. package/dist/components/RenderQueue/RenderQueueItemStatus.js +1 -1
  112. package/dist/components/RenderQueue/RenderQueueOpenInFolder.js +2 -1
  113. package/dist/components/RenderQueue/RenderQueueRemoveItem.js +2 -1
  114. package/dist/components/RenderQueue/RenderQueueRepeat.js +2 -1
  115. package/dist/components/RenderQueue/index.js +1 -1
  116. package/dist/components/RendersTab.js +2 -2
  117. package/dist/components/SegmentedControl.js +3 -3
  118. package/dist/components/SelectedOutlineElement.d.ts +5 -0
  119. package/dist/components/SelectedOutlineElement.js +7 -7
  120. package/dist/components/SelectedOutlineOverlay.js +1 -1
  121. package/dist/components/SelectedOutlineUvControls.js +5 -5
  122. package/dist/components/SidebarCollapserControls.js +5 -4
  123. package/dist/components/Splitter/SplitterElement.js +2 -1
  124. package/dist/components/StaticFilePreview.js +1 -1
  125. package/dist/components/Tabs/index.js +3 -3
  126. package/dist/components/Tabs/vertical.js +3 -3
  127. package/dist/components/TextViewer.js +2 -1
  128. package/dist/components/TimeValue.js +1 -1
  129. package/dist/components/Timeline/EasingEditorModal.js +8 -8
  130. package/dist/components/Timeline/KeyframeSettingsModal.js +1 -1
  131. package/dist/components/Timeline/LoopedIndicator.js +2 -2
  132. package/dist/components/Timeline/MaxTimelineTracks.js +3 -2
  133. package/dist/components/Timeline/TimelineArrayField.js +6 -5
  134. package/dist/components/Timeline/TimelineColorField.js +2 -1
  135. package/dist/components/Timeline/TimelineEffectItem.js +3 -2
  136. package/dist/components/Timeline/TimelineEffectPropItem.js +2 -2
  137. package/dist/components/Timeline/TimelineExpandArrowButton.js +3 -2
  138. package/dist/components/Timeline/TimelineExpandedRow.js +2 -1
  139. package/dist/components/Timeline/TimelineExpandedSection.js +1 -1
  140. package/dist/components/Timeline/TimelineFieldLabel.js +2 -1
  141. package/dist/components/Timeline/TimelineFontFamilyField.d.ts +11 -0
  142. package/dist/components/Timeline/TimelineFontFamilyField.js +545 -0
  143. package/dist/components/Timeline/TimelineImageInfo.js +2 -1
  144. package/dist/components/Timeline/TimelineInOutPointer.js +2 -1
  145. package/dist/components/Timeline/TimelineInOutPointerHandle.js +2 -4
  146. package/dist/components/Timeline/TimelineKeyframeControls.js +2 -2
  147. package/dist/components/Timeline/TimelineKeyframeDiamondIcon.js +1 -1
  148. package/dist/components/Timeline/TimelineKeyframeEasingLine.js +1 -1
  149. package/dist/components/Timeline/TimelineLayerEye.js +3 -3
  150. package/dist/components/Timeline/TimelineMediaInfo.js +2 -2
  151. package/dist/components/Timeline/TimelinePrimitiveFieldValue.js +4 -0
  152. package/dist/components/Timeline/TimelineRotationField.js +4 -3
  153. package/dist/components/Timeline/TimelineScaleField.js +1 -1
  154. package/dist/components/Timeline/TimelineSchemaField.d.ts +2 -0
  155. package/dist/components/Timeline/TimelineSchemaField.js +47 -7
  156. package/dist/components/Timeline/TimelineScrollable.js +3 -2
  157. package/dist/components/Timeline/TimelineSelection.js +6 -6
  158. package/dist/components/Timeline/TimelineSequence.js +17 -20
  159. package/dist/components/Timeline/TimelineSequenceFrame.js +3 -2
  160. package/dist/components/Timeline/TimelineSequenceItem.js +8 -7
  161. package/dist/components/Timeline/TimelineSequenceName.js +3 -2
  162. package/dist/components/Timeline/TimelineSequencePropItem.js +2 -1
  163. package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.d.ts +20 -1
  164. package/dist/components/Timeline/TimelineSequenceRightEdgeDragHandle.js +128 -11
  165. package/dist/components/Timeline/TimelineSlider.js +2 -1
  166. package/dist/components/Timeline/TimelineSliderHandle.js +2 -1
  167. package/dist/components/Timeline/TimelineTimeIndicators.js +1 -1
  168. package/dist/components/Timeline/TimelineVideoInfo.js +2 -1
  169. package/dist/components/Timeline/TimelineZoomControls.js +4 -3
  170. package/dist/components/Timeline/call-move-keyframe.d.ts +5 -0
  171. package/dist/components/Timeline/call-move-keyframe.js +14 -3
  172. package/dist/components/Timeline/google-fonts-list.d.ts +6 -0
  173. package/dist/components/Timeline/google-fonts-list.js +1512 -0
  174. package/dist/components/Timeline/save-sequence-prop.d.ts +8 -1
  175. package/dist/components/Timeline/save-sequence-prop.js +63 -19
  176. package/dist/components/Timeline/timeline-rotation-field-utils.d.ts +5 -0
  177. package/dist/components/Timeline/timeline-rotation-field-utils.js +16 -0
  178. package/dist/components/Timeline/timeline-scroll-logic.js +5 -2
  179. package/dist/components/TimelineInOutToggle.js +1 -1
  180. package/dist/components/UpdateCheck.js +2 -2
  181. package/dist/components/UpdateModal/OpenIssueButton.js +1 -1
  182. package/dist/components/VisualControls/ClickableFileName.js +2 -2
  183. package/dist/components/effect-drag-and-drop.js +1 -0
  184. package/dist/components/import-assets.d.ts +7 -1
  185. package/dist/components/import-assets.js +55 -1
  186. package/dist/components/selected-outline-measurement.js +2 -1
  187. package/dist/error-overlay/remotion-overlay/CalculateMetadataErrorExplainer.js +2 -2
  188. package/dist/error-overlay/remotion-overlay/CodeFrame.js +7 -5
  189. package/dist/error-overlay/remotion-overlay/CompositionIdListItem.js +2 -2
  190. package/dist/error-overlay/remotion-overlay/DismissButton.js +3 -2
  191. package/dist/error-overlay/remotion-overlay/ErrorLoader.js +3 -2
  192. package/dist/error-overlay/remotion-overlay/ErrorMessage.js +4 -4
  193. package/dist/error-overlay/remotion-overlay/HelpLink.js +1 -1
  194. package/dist/error-overlay/remotion-overlay/MediaPlaybackErrorExplainer.js +4 -4
  195. package/dist/error-overlay/remotion-overlay/Overlay.js +3 -2
  196. package/dist/error-overlay/remotion-overlay/StackFrame.js +4 -3
  197. package/dist/error-overlay/remotion-overlay/Symbolicating.js +2 -1
  198. package/dist/error-overlay/remotion-overlay/carets.js +3 -2
  199. package/dist/esm/{chunk-103pp4n7.js → chunk-975rp13y.js} +9143 -6061
  200. package/dist/esm/chunk-jefhcs5z.js +164 -0
  201. package/dist/esm/internals.mjs +9144 -6028
  202. package/dist/esm/previewEntry.mjs +8335 -5215
  203. package/dist/esm/renderEntry.mjs +8 -5
  204. package/dist/helpers/checkerboard-background.js +4 -12
  205. package/dist/helpers/colors.d.ts +99 -7
  206. package/dist/helpers/colors.js +118 -10
  207. package/dist/helpers/inject-css.js +85 -83
  208. package/dist/helpers/timeline-layout.d.ts +4 -2
  209. package/dist/helpers/use-menu-structure.js +31 -3
  210. package/dist/helpers/validate-folder-rename.js +2 -10
  211. package/dist/helpers/validate-new-folder-name.d.ts +5 -0
  212. package/dist/helpers/validate-new-folder-name.js +16 -0
  213. package/dist/hot-middleware-client/client.js +3 -2
  214. package/dist/icons/Checkmark.js +2 -1
  215. package/dist/icons/audio.js +2 -1
  216. package/dist/icons/caret.js +2 -2
  217. package/dist/icons/certificate.js +2 -1
  218. package/dist/icons/data.js +2 -1
  219. package/dist/icons/eyedropper.js +2 -1
  220. package/dist/icons/file.js +2 -1
  221. package/dist/icons/frame.js +2 -1
  222. package/dist/icons/gear.js +2 -1
  223. package/dist/icons/gif.js +2 -1
  224. package/dist/icons/jump-to-start.js +2 -1
  225. package/dist/icons/keys.js +4 -3
  226. package/dist/icons/media-volume.js +1 -1
  227. package/dist/icons/minus.js +2 -1
  228. package/dist/icons/pause.js +2 -1
  229. package/dist/icons/play.js +2 -1
  230. package/dist/icons/redo.js +2 -1
  231. package/dist/icons/step-back.js +2 -1
  232. package/dist/icons/step-forward.js +2 -1
  233. package/dist/icons/undo.js +2 -1
  234. package/dist/previewEntry.js +2 -1
  235. package/dist/renderEntry.js +4 -3
  236. package/dist/state/modals.d.ts +4 -0
  237. package/package.json +11 -11
  238. package/dist/esm/chunk-6jf1natv.js +0 -25
@@ -25,8 +25,8 @@ const InfoTooltip = ({ children, arrowDirection, backgroundColor }) => {
25
25
  return {
26
26
  boxShadow: arrowDirection === 'down' ? styles_1.SHADOW_TOWARDS_TOP : styles_1.SHADOW_TOWARDS_BOTTOM,
27
27
  background: backgroundColor,
28
- color: 'white',
29
- border: '0.5px solid ' + colors_1.BORDER_COLOR,
28
+ color: colors_1.WHITE,
29
+ border: '0.5px solid ' + colors_1.BLACK_HEX,
30
30
  maxHeight: 200,
31
31
  overflow: 'auto',
32
32
  borderRadius: '4px',
@@ -37,6 +37,6 @@ const InfoTooltip = ({ children, arrowDirection, backgroundColor }) => {
37
37
  flexDirection: arrowDirection === 'up' ? 'column-reverse' : 'column',
38
38
  alignItems: 'flex-start',
39
39
  }, children: [
40
- jsx_runtime_1.jsx("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: children }), arrowDirection === 'down' ? (jsx_runtime_1.jsx("svg", { viewBox: "0 0 14 7", style: arrowDown, children: jsx_runtime_1.jsx("path", { d: `M 14 0 L 7 7 L 0 0`, fill: backgroundColor, strokeLinecap: "butt", stroke: colors_1.BORDER_COLOR, strokeWidth: 0.5 }) })) : null, arrowDirection === 'up' ? (jsx_runtime_1.jsx("svg", { viewBox: "0 0 14 7", style: arrowUp, children: jsx_runtime_1.jsx("path", { d: `M 0 7 L 7 0 L 14 7`, fill: backgroundColor, strokeLinecap: "butt", stroke: colors_1.BORDER_COLOR, strokeWidth: 0.5 }) })) : null] }));
40
+ jsx_runtime_1.jsx("div", { style: container, className: is_menu_item_1.VERTICAL_SCROLLBAR_CLASSNAME, children: children }), arrowDirection === 'down' ? (jsx_runtime_1.jsx("svg", { viewBox: "0 0 14 7", style: arrowDown, children: jsx_runtime_1.jsx("path", { d: `M 14 0 L 7 7 L 0 0`, fill: backgroundColor, strokeLinecap: "butt", stroke: colors_1.BLACK_HEX, strokeWidth: 0.5 }) })) : null, arrowDirection === 'up' ? (jsx_runtime_1.jsx("svg", { viewBox: "0 0 14 7", style: arrowUp, children: jsx_runtime_1.jsx("path", { d: `M 0 7 L 7 0 L 14 7`, fill: backgroundColor, strokeLinecap: "butt", stroke: colors_1.BLACK_HEX, strokeWidth: 0.5 }) })) : null] }));
41
41
  };
42
42
  exports.InfoTooltip = InfoTooltip;
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InlineEyeButton = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
+ const colors_1 = require("../../helpers/colors");
6
7
  const InlineAction_1 = require("../InlineAction");
7
8
  const clearIcon = {
8
9
  height: 14,
9
- color: 'currentColor',
10
+ color: colors_1.CURRENT_COLOR,
10
11
  };
11
12
  const InlineEyeButton = ({ onClick, enabled }) => {
12
13
  const renderAction = (0, react_1.useCallback)((color) => {
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InlineRemoveButton = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
+ const colors_1 = require("../../helpers/colors");
6
7
  const InlineAction_1 = require("../InlineAction");
7
8
  const clearIcon = {
8
9
  height: 14,
9
- color: 'currentColor',
10
+ color: colors_1.CURRENT_COLOR,
10
11
  };
11
12
  const InlineRemoveButton = ({ onClick }) => {
12
13
  const renderAction = (0, react_1.useCallback)((color) => {
@@ -5,7 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const colors_1 = require("../../helpers/colors");
7
7
  const container = {
8
- borderColor: 'black',
8
+ borderColor: colors_1.BLACK,
9
9
  borderStyle: 'solid',
10
10
  borderWidth: '2px',
11
11
  height: 39,
@@ -27,7 +27,7 @@ const description = {
27
27
  const link = {
28
28
  fontSize: 14,
29
29
  maxWidth: 200,
30
- color: '#0b84f3',
30
+ color: colors_1.BLUE,
31
31
  wordWrap: 'break-word',
32
32
  textDecoration: 'none',
33
33
  };
@@ -41,7 +41,7 @@ const infoRow = {
41
41
  const infoRowLabel = {
42
42
  width: 150,
43
43
  fontSize: 14,
44
- color: 'white',
44
+ color: colors_1.WHITE,
45
45
  };
46
46
  const flexSpacer = {
47
47
  display: 'flex',
@@ -2,11 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RenderModalHr = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const colors_1 = require("../../helpers/colors");
5
6
  const hrStyle = {
6
7
  margin: '0 0 0 0',
7
8
  padding: '0 0 0 0',
8
9
  border: 'none',
9
- borderTop: '1px solid #000',
10
+ borderTop: colors_1.BORDER_BLACK,
10
11
  marginRight: 16,
11
12
  marginLeft: 16,
12
13
  marginTop: 8,
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RenderStatusModal = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
+ const colors_1 = require("../../helpers/colors");
6
7
  const retry_payload_1 = require("../../helpers/retry-payload");
7
8
  const modals_1 = require("../../state/modals");
8
9
  const Button_1 = require("../Button");
@@ -22,7 +23,7 @@ const container = {
22
23
  paddingTop: 0,
23
24
  };
24
25
  const codeBlock = {
25
- backgroundColor: '#222',
26
+ backgroundColor: colors_1.RENDER_STATUS_BACKGROUND,
26
27
  whiteSpace: 'pre',
27
28
  padding: 12,
28
29
  borderRadius: 4,
@@ -23,11 +23,7 @@ const SchemaLabel = ({ jsonPath, onRemove, valid, suffix, handleClick }) => {
23
23
  return {
24
24
  fontFamily: 'monospace',
25
25
  fontSize: 12,
26
- color: valid
27
- ? clickableButtonHovered
28
- ? 'white'
29
- : colors_1.LIGHT_TEXT
30
- : colors_1.FAIL_COLOR,
26
+ color: valid ? (clickableButtonHovered ? colors_1.WHITE : colors_1.LIGHT_TEXT) : colors_1.FAIL_COLOR,
31
27
  lineHeight: '20px',
32
28
  };
33
29
  }, [clickableButtonHovered, valid]);
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SchemaResetButton = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
+ const colors_1 = require("../../../helpers/colors");
6
7
  const InlineAction_1 = require("../../InlineAction");
7
8
  const icon = {
8
9
  height: 14,
9
- color: 'currentColor',
10
+ color: colors_1.CURRENT_COLOR,
10
11
  };
11
12
  const SchemaResetButton = ({ onClick }) => {
12
13
  const renderAction = (0, react_1.useCallback)((color) => {
@@ -89,7 +89,7 @@ const SchemaArrayItemSeparationLine = ({ onChange, index, schema, isLast, showAd
89
89
  display: 'flex',
90
90
  flexDirection: 'column',
91
91
  alignItems: 'flex-end',
92
- }, children: [showAddButton && (jsx_runtime_1.jsx("div", { style: dynamicAddButtonStyle, onPointerEnter: onOuterMouseEnter, onPointerLeave: onOuterMouseLeave, children: jsx_runtime_1.jsx("div", { onClick: onAdd, style: inner, onPointerEnter: onInnerMouseEnter, onPointerLeave: onInnerMouseLeave, children: jsx_runtime_1.jsx(plus_1.Plus, { color: innerHovered ? 'white' : colors_1.LIGHT_TEXT, style: {
92
+ }, children: [showAddButton && (jsx_runtime_1.jsx("div", { style: dynamicAddButtonStyle, onPointerEnter: onOuterMouseEnter, onPointerLeave: onOuterMouseLeave, children: jsx_runtime_1.jsx("div", { onClick: onAdd, style: inner, onPointerEnter: onInnerMouseEnter, onPointerLeave: onInnerMouseLeave, children: jsx_runtime_1.jsx(plus_1.Plus, { color: innerHovered ? colors_1.WHITE : colors_1.LIGHT_TEXT, style: {
93
93
  display: 'block',
94
94
  height: exports.VERTICAL_GUIDE_HEIGHT / 2,
95
95
  } }) }) })), jsx_runtime_1.jsx("div", { style: arraySeparationLine })
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SchemaVerticalGuide = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
+ const colors_1 = require("../../../helpers/colors");
6
7
  const SchemaSeparationLine_1 = require("./SchemaSeparationLine");
7
8
  const flex = {
8
9
  flex: 1,
@@ -22,7 +23,7 @@ const SchemaVerticalGuide = ({ isRoot, children }) => {
22
23
  : {
23
24
  height: `calc(100% - ${SchemaSeparationLine_1.VERTICAL_GUIDE_HEIGHT / 2}px)`,
24
25
  width: 1,
25
- background: '#363A3E',
26
+ background: colors_1.LINE_COLOR,
26
27
  position: 'absolute',
27
28
  };
28
29
  }, [isRoot]);
@@ -17,7 +17,7 @@ const fullWidth = {
17
17
  const explainer = {
18
18
  fontFamily: 'sans-serif',
19
19
  fontSize: 12,
20
- color: colors_1.VERY_LIGHT_TEXT,
20
+ color: colors_1.WHITE_ALPHA_30,
21
21
  };
22
22
  // This will do 2 things:
23
23
  // - Make the calendar icon white
@@ -15,7 +15,7 @@ const compactSchemaLabel = {
15
15
  fontSize: 12,
16
16
  };
17
17
  const jsonLabel = {
18
- color: 'white',
18
+ color: colors_1.WHITE,
19
19
  fontSize: 13,
20
20
  fontFamily: 'sans-serif',
21
21
  display: 'flex',
@@ -10,7 +10,7 @@ const fullWidth = {
10
10
  };
11
11
  const emptyLabel = {
12
12
  width: '100%',
13
- color: colors_1.VERY_LIGHT_TEXT,
13
+ color: colors_1.WHITE_ALPHA_30,
14
14
  fontFamily: 'sans-serif',
15
15
  fontSize: 14,
16
16
  };
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createZodValues = void 0;
4
+ const colors_1 = require("../../../helpers/colors");
4
5
  const zod_schema_type_1 = require("./zod-schema-type");
5
6
  const createZodValues = (schema, zodRuntime, zodTypes) => {
6
7
  var _a;
@@ -13,7 +14,7 @@ const createZodValues = (schema, zodRuntime, zodTypes) => {
13
14
  const description = (0, zod_schema_type_1.getZodSchemaDescription)(schema);
14
15
  if (zodTypes) {
15
16
  if (description === zodTypes.ZodZypesInternals.REMOTION_COLOR_BRAND) {
16
- return '#ffffff';
17
+ return colors_1.WHITE_FULL_HEX;
17
18
  }
18
19
  if (description === zodTypes.ZodZypesInternals.REMOTION_TEXTAREA_BRAND) {
19
20
  return '';
@@ -1000,7 +1000,7 @@ const RenderModal = ({ readOnlyStudio, initialFrame, initialVideoImageFormat, in
1000
1000
  "Audio"] })) : null, shownTabs.includes('gif') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'gif', onClick: () => setTab('gif'), children: [
1001
1001
  jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(gif_1.GifIcon, { style: render_modals_1.icon }) }),
1002
1002
  "GIF"] })) : null, shownTabs.includes('encoding') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'encoding', onClick: () => setTab('encoding'), children: [
1003
- jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(video_1.FilmIcon, { style: render_modals_1.icon, color: "currentcolor" }) }),
1003
+ jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(video_1.FilmIcon, { style: render_modals_1.icon, color: colors_1.CURRENT_COLOR_LOWERCASE }) }),
1004
1004
  "Encoding"] })) : null, shownTabs.includes('environment') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'environment', onClick: () => setTab('environment'), children: [
1005
1005
  jsx_runtime_1.jsx("div", { style: render_modals_1.iconContainer, children: jsx_runtime_1.jsx(data_1.DataIcon, { style: render_modals_1.icon }) }),
1006
1006
  "Environment"] })) : null, shownTabs.includes('advanced') ? (jsx_runtime_1.jsxs(vertical_1.VerticalTab, { style: render_modals_1.horizontalTab, selected: tab === 'advanced', onClick: () => setTab('advanced'), children: [
@@ -11,7 +11,7 @@ const style = {
11
11
  display: 'inline-flex',
12
12
  justifyContent: 'center',
13
13
  alignItems: 'center',
14
- backgroundColor: 'transparent',
14
+ backgroundColor: colors_1.TRANSPARENT,
15
15
  color: colors_1.LIGHT_TEXT,
16
16
  borderStyle: 'solid',
17
17
  borderWidth: 1,
@@ -50,11 +50,9 @@ const WarningIndicatorButton = ({ setShowWarning, showWarning, warningCount, siz
50
50
  const buttonStyle = (0, react_1.useMemo)(() => {
51
51
  return {
52
52
  ...(size === 'compact' ? compactStyle : style),
53
- backgroundColor: showWarning ? colors_1.INPUT_BACKGROUND : 'transparent',
54
- borderColor: showWarning
55
- ? colors_1.INPUT_BORDER_COLOR_HOVERED
56
- : colors_1.INPUT_BORDER_COLOR_UNHOVERED,
57
- color: showWarning ? 'white' : colors_1.LIGHT_TEXT,
53
+ backgroundColor: showWarning ? colors_1.INPUT_BACKGROUND : colors_1.TRANSPARENT,
54
+ borderColor: showWarning ? colors_1.WHITE_ALPHA_05 : colors_1.BLACK_ALPHA_60,
55
+ color: showWarning ? colors_1.WHITE : colors_1.LIGHT_TEXT,
58
56
  };
59
57
  }, [showWarning, size]);
60
58
  return (jsx_runtime_1.jsxs("button", { type: "button", style: buttonStyle, onClick: onClick, children: [
@@ -4,6 +4,7 @@ exports.WebRenderModalAudio = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const web_renderer_1 = require("@remotion/web-renderer");
6
6
  const react_1 = require("react");
7
+ const colors_1 = require("../../helpers/colors");
7
8
  const Checkmark_1 = require("../../icons/Checkmark");
8
9
  const layout_1 = require("../layout");
9
10
  const is_menu_item_1 = require("../Menu/is-menu-item");
@@ -17,8 +18,8 @@ const container = {
17
18
  overflowY: 'auto',
18
19
  };
19
20
  const fallbackNoticeStyle = {
20
- backgroundColor: 'rgba(59, 130, 246, 0.15)',
21
- border: '1px solid rgba(59, 130, 246, 0.4)',
21
+ backgroundColor: colors_1.INFO_BLUE_BACKGROUND,
22
+ border: colors_1.BORDER_INFO_BLUE,
22
23
  borderRadius: 4,
23
24
  padding: '8px 12px',
24
25
  marginLeft: 16,
@@ -26,7 +27,7 @@ const fallbackNoticeStyle = {
26
27
  marginTop: 8,
27
28
  fontSize: 13,
28
29
  lineHeight: 1.4,
29
- color: '#60a5fa',
30
+ color: colors_1.INFO_BLUE,
30
31
  };
31
32
  const humanReadableWebAudioCodec = (audioCodec) => {
32
33
  switch (audioCodec) {
@@ -33,14 +33,14 @@ const paddedDescriptionStyle = {
33
33
  fontSize: 14,
34
34
  fontFamily: 'sans-serif',
35
35
  padding: 9,
36
- border: '1px solid ' + colors_1.INPUT_BORDER_COLOR_UNHOVERED,
36
+ border: '1px solid ' + colors_1.BLACK_ALPHA_60,
37
37
  borderRadius: 8,
38
38
  lineHeight: 1.5,
39
39
  marginLeft: 16,
40
40
  marginRight: 16,
41
41
  };
42
42
  const descriptionLink = {
43
- color: 'white',
43
+ color: colors_1.WHITE,
44
44
  fontSize: 14,
45
45
  };
46
46
  const checkboxLabel = {
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WebRenderModalPicture = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
+ const colors_1 = require("../../helpers/colors");
6
7
  const Checkbox_1 = require("../Checkbox");
7
8
  const ComboBox_1 = require("../NewComposition/ComboBox");
8
9
  const layout_1 = require("./layout");
@@ -22,7 +23,7 @@ const WebRenderModalPicture = ({ renderMode, videoBitrate, setVideoBitrate, keyf
22
23
  jsx_runtime_1.jsxs("div", { style: layout_1.optionRow, children: [
23
24
  jsx_runtime_1.jsx("div", { style: layout_1.label, children: "Quality" }), jsx_runtime_1.jsx("div", { style: layout_1.rightRow, children: jsx_runtime_1.jsx(ComboBox_1.Combobox, { values: qualityOptions, selectedId: videoBitrate, title: "Quality" }) })
24
25
  ] }), jsx_runtime_1.jsx(NumberSetting_1.NumberSetting, { name: "Keyframe Interval", formatter: (v) => `${v}s`, min: 1, max: 300, step: 1, value: keyframeIntervalInSeconds, onValueChanged: setKeyframeIntervalInSeconds }), jsx_runtime_1.jsxs("div", { style: layout_1.optionRow, children: [
25
- jsx_runtime_1.jsx("div", { style: layout_1.label, children: "Transparent" }), jsx_runtime_1.jsx("div", { style: layout_1.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: transparent, onChange: onTransparentChanged, name: "transparent" }) })
26
+ jsx_runtime_1.jsx("div", { style: layout_1.label, children: "Transparent" }), jsx_runtime_1.jsx("div", { style: layout_1.rightRow, children: jsx_runtime_1.jsx(Checkbox_1.Checkbox, { checked: transparent, onChange: onTransparentChanged, name: colors_1.TRANSPARENT }) })
26
27
  ] })
27
28
  ] }))] }));
28
29
  };
@@ -15,7 +15,7 @@ exports.container = {
15
15
  flexDirection: 'row',
16
16
  alignItems: 'center',
17
17
  padding: '12px 16px',
18
- borderBottom: '1px solid black',
18
+ borderBottom: colors_1.BORDER_BLACK,
19
19
  };
20
20
  exports.optionsPanel = {
21
21
  display: 'flex',
@@ -51,12 +51,12 @@ exports.iconContainer = {
51
51
  alignItems: 'center',
52
52
  };
53
53
  exports.icon = {
54
- color: 'currentcolor',
54
+ color: colors_1.CURRENT_COLOR_LOWERCASE,
55
55
  height: 20,
56
56
  };
57
57
  exports.buttonStyle = {
58
58
  backgroundColor: colors_1.BLUE,
59
- color: 'white',
59
+ color: colors_1.WHITE,
60
60
  };
61
61
  exports.flexer = {
62
62
  flex: 1,
@@ -10,7 +10,7 @@ const get_preview_file_type_1 = require("../helpers/get-preview-file-type");
10
10
  const FilePreview_1 = require("./FilePreview");
11
11
  const msgStyle = {
12
12
  fontSize: 13,
13
- color: 'white',
13
+ color: colors_1.WHITE,
14
14
  fontFamily: 'sans-serif',
15
15
  display: 'flex',
16
16
  justifyContent: 'center',
@@ -3,13 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RenderQueueCopyToClipboard = exports.supportsCopyingToClipboard = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
+ const colors_1 = require("../../helpers/colors");
6
7
  const get_asset_metadata_1 = require("../../helpers/get-asset-metadata");
7
8
  const clipboard_1 = require("../../icons/clipboard");
8
9
  const InlineAction_1 = require("../InlineAction");
9
10
  const NotificationCenter_1 = require("../Notifications/NotificationCenter");
10
11
  const revealIconStyle = {
11
12
  height: 12,
12
- color: 'currentColor',
13
+ color: colors_1.CURRENT_COLOR,
13
14
  };
14
15
  const supportsCopyingToClipboard = (job) => {
15
16
  if (job.status !== 'done') {
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RenderQueueDownloadItem = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
+ const colors_1 = require("../../helpers/colors");
6
7
  const InlineAction_1 = require("../InlineAction");
7
8
  const NotificationCenter_1 = require("../Notifications/NotificationCenter");
8
9
  const ClientRenderQueueProcessor_1 = require("./ClientRenderQueueProcessor");
@@ -24,7 +25,7 @@ const RenderQueueDownloadItem = ({ job }) => {
24
25
  const icon = (0, react_1.useMemo)(() => {
25
26
  return {
26
27
  height: 12,
27
- color: 'currentColor',
28
+ color: colors_1.CURRENT_COLOR,
28
29
  };
29
30
  }, []);
30
31
  const renderAction = (0, react_1.useCallback)((color) => {
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RenderQueueCancelButton = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
+ const colors_1 = require("../../helpers/colors");
6
7
  const InlineAction_1 = require("../InlineAction");
7
8
  const NotificationCenter_1 = require("../Notifications/NotificationCenter");
8
9
  const actions_1 = require("./actions");
@@ -23,7 +24,7 @@ const RenderQueueCancelButton = ({ job }) => {
23
24
  const icon = (0, react_1.useMemo)(() => {
24
25
  return {
25
26
  height: 14,
26
- color: 'currentColor',
27
+ color: colors_1.CURRENT_COLOR,
27
28
  };
28
29
  }, []);
29
30
  const renderAction = (0, react_1.useCallback)((color) => {
@@ -75,7 +75,7 @@ const RenderQueueItemStatus = ({ job }) => {
75
75
  return (jsx_runtime_1.jsx("svg", { style: iconStyle, viewBox: "0 0 512 512", children: jsx_runtime_1.jsx("path", { fill: colors_1.LIGHT_TEXT, d: "M256 512C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256s-114.6 256-256 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z" }) }));
76
76
  }
77
77
  if (job.status === 'done') {
78
- return (jsx_runtime_1.jsx("button", { type: "button", style: invisibleStyle, onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, onClick: onClick, children: jsx_runtime_1.jsx("svg", { style: iconStyle, viewBox: "0 0 512 512", children: jsx_runtime_1.jsx("path", { fill: hovered ? 'white' : colors_1.LIGHT_TEXT, d: "M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM369 209L241 337l-17 17-17-17-64-64-17-17L160 222.1l17 17 47 47L335 175l17-17L385.9 192l-17 17z" }) }) }));
78
+ return (jsx_runtime_1.jsx("button", { type: "button", style: invisibleStyle, onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, onClick: onClick, children: jsx_runtime_1.jsx("svg", { style: iconStyle, viewBox: "0 0 512 512", children: jsx_runtime_1.jsx("path", { fill: hovered ? colors_1.WHITE : colors_1.LIGHT_TEXT, d: "M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM369 209L241 337l-17 17-17-17-64-64-17-17L160 222.1l17 17 47 47L335 175l17-17L385.9 192l-17 17z" }) }) }));
79
79
  }
80
80
  if (job.status === 'running') {
81
81
  let progressValue;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RenderQueueOpenInFinderItem = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
+ const colors_1 = require("../../helpers/colors");
6
7
  const folder_1 = require("../../icons/folder");
7
8
  const InlineAction_1 = require("../InlineAction");
8
9
  const NotificationCenter_1 = require("../Notifications/NotificationCenter");
@@ -17,7 +18,7 @@ const RenderQueueOpenInFinderItem = ({ job }) => {
17
18
  const icon = (0, react_1.useMemo)(() => {
18
19
  return {
19
20
  height: 12,
20
- color: 'currentColor',
21
+ color: colors_1.CURRENT_COLOR,
21
22
  };
22
23
  }, []);
23
24
  const renderAction = (0, react_1.useCallback)((color) => {
@@ -5,6 +5,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const remotion_1 = require("remotion");
7
7
  const save_render_output_1 = require("../../api/save-render-output");
8
+ const colors_1 = require("../../helpers/colors");
8
9
  const InlineAction_1 = require("../InlineAction");
9
10
  const NotificationCenter_1 = require("../Notifications/NotificationCenter");
10
11
  const actions_1 = require("./actions");
@@ -39,7 +40,7 @@ const RenderQueueRemoveItem = ({ job }) => {
39
40
  const icon = (0, react_1.useMemo)(() => {
40
41
  return {
41
42
  height: 16,
42
- color: 'currentColor',
43
+ color: colors_1.CURRENT_COLOR,
43
44
  };
44
45
  }, []);
45
46
  const renderAction = (0, react_1.useCallback)((color) => {
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RenderQueueRepeatItem = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
+ const colors_1 = require("../../helpers/colors");
6
7
  const mobile_layout_1 = require("../../helpers/mobile-layout");
7
8
  const retry_payload_1 = require("../../helpers/retry-payload");
8
9
  const modals_1 = require("../../state/modals");
@@ -37,7 +38,7 @@ const RenderQueueRepeatItem = ({ job }) => {
37
38
  const icon = (0, react_1.useMemo)(() => {
38
39
  return {
39
40
  height: 12,
40
- color: 'currentColor',
41
+ color: colors_1.CURRENT_COLOR,
41
42
  };
42
43
  }, []);
43
44
  const renderAction = (0, react_1.useCallback)((color) => {
@@ -45,7 +45,7 @@ const is_menu_item_1 = require("../Menu/is-menu-item");
45
45
  const context_1 = require("./context");
46
46
  const RenderQueueItem_1 = require("./RenderQueueItem");
47
47
  const separatorStyle = {
48
- borderBottom: `1px solid ${colors_1.BORDER_COLOR}`,
48
+ borderBottom: `1px solid ${colors_1.BLACK_HEX}`,
49
49
  };
50
50
  const errorExplanation = {
51
51
  fontSize: 14,
@@ -31,8 +31,8 @@ const RendersTab = ({ selected, onClick }) => {
31
31
  const badgeStyle = (0, react_1.useMemo)(() => {
32
32
  return {
33
33
  ...badge,
34
- backgroundColor: failedJobs > 0 ? colors_1.FAIL_COLOR : 'transparent',
35
- color: failedJobs > 0 ? 'white' : colors_1.LIGHT_TEXT,
34
+ backgroundColor: failedJobs > 0 ? colors_1.FAIL_COLOR : colors_1.TRANSPARENT,
35
+ color: failedJobs > 0 ? colors_1.WHITE : colors_1.LIGHT_TEXT,
36
36
  borderWidth: failedJobs > 0 ? 0 : 1,
37
37
  borderStyle: 'solid',
38
38
  borderColor: colors_1.LIGHT_TEXT,
@@ -9,7 +9,7 @@ const container = {
9
9
  display: 'flex',
10
10
  flexDirection: 'row',
11
11
  overflow: 'hidden',
12
- border: '1px solid ' + colors_1.INPUT_BORDER_COLOR_UNHOVERED,
12
+ border: '1px solid ' + colors_1.BLACK_ALPHA_60,
13
13
  flexWrap: 'wrap',
14
14
  maxWidth: 350,
15
15
  justifyContent: 'flex-end',
@@ -63,8 +63,8 @@ const Item = ({ selected, onClick, children, size }) => {
63
63
  const itemStyle = (0, react_1.useMemo)(() => {
64
64
  return {
65
65
  ...(size === 'compact' ? compactItem : item),
66
- backgroundColor: selected ? colors_1.INPUT_BACKGROUND : 'transparent',
67
- color: selected ? 'white' : hovered ? 'white' : colors_1.LIGHT_TEXT,
66
+ backgroundColor: selected ? colors_1.INPUT_BACKGROUND : colors_1.TRANSPARENT,
67
+ color: selected ? colors_1.WHITE : hovered ? colors_1.WHITE : colors_1.LIGHT_TEXT,
68
68
  };
69
69
  }, [hovered, selected, size]);
70
70
  return (jsx_runtime_1.jsx("button", { type: "button", onPointerEnter: onPointerEnter, onPointerLeave: onPointerLeave, style: itemStyle, tabIndex: tabIndex, onClick: onClick, children: children }));
@@ -2,6 +2,11 @@ import React from 'react';
2
2
  import type { SelectedOutline } from './selected-outline-geometry';
3
3
  import { type SelectedOutlineDragTarget, type SelectedOutlineRotationDragTarget, type SelectedOutlineScaleDragTarget, type SelectedOutlineTarget } from './selected-outline-types';
4
4
  import type { TimelineSelection, TimelineSelectionInteraction } from './Timeline/TimelineSelection';
5
+ export declare const SelectedOutlineTransformOriginHandle: React.FC<{
6
+ readonly outline: SelectedOutline;
7
+ readonly onDraggingChange: (dragging: boolean) => void;
8
+ readonly target: SelectedOutlineTarget | undefined;
9
+ }>;
5
10
  export declare const SelectedOutlineElement: React.FC<{
6
11
  readonly allDragTargets: readonly SelectedOutlineDragTarget[];
7
12
  readonly allRotationDragTargets: readonly SelectedOutlineRotationDragTarget[];
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.SelectedOutlineElement = void 0;
36
+ exports.SelectedOutlineElement = exports.SelectedOutlineTransformOriginHandle = void 0;
37
37
  const jsx_runtime_1 = require("react/jsx-runtime");
38
38
  const react_1 = __importStar(require("react"));
39
39
  const react_dom_1 = require("react-dom");
@@ -308,11 +308,12 @@ const SelectedOutlineTransformOriginHandle = ({ outline, onDraggingChange, targe
308
308
  return null;
309
309
  }
310
310
  return (jsx_runtime_1.jsxs("g", { pointerEvents: "all", cursor: "crosshair", onPointerDown: onPointerDown, "aria-hidden": "true", style: {
311
- filter: 'drop-shadow(0 0 1px rgba(255, 255, 255, 0.2))',
311
+ filter: colors_1.SELECTED_OUTLINE_DROP_SHADOW,
312
312
  }, children: [
313
313
  jsx_runtime_1.jsx("circle", { cx: position.x, cy: position.y, r: 4, stroke: colors_1.BLUE, fill: "none", strokeWidth: 2, vectorEffect: "non-scaling-stroke" }), jsx_runtime_1.jsx("line", { x1: position.x - 8, y1: position.y, x2: position.x + 8, y2: position.y, stroke: colors_1.BLUE, strokeWidth: 2, vectorEffect: "non-scaling-stroke" }), jsx_runtime_1.jsx("line", { x1: position.x, y1: position.y - 8, x2: position.x, y2: position.y + 8, stroke: colors_1.BLUE, strokeWidth: 2, vectorEffect: "non-scaling-stroke" })
314
314
  ] }));
315
315
  };
316
+ exports.SelectedOutlineTransformOriginHandle = SelectedOutlineTransformOriginHandle;
316
317
  const SelectedOutlinePolygon = ({ allDragTargets, contextMenuValues, dragging, hovered, onContextMenuOpen, outline, onDraggingChange, onHoverChange, onSelect, onTextEditStart, scale, target, }) => {
317
318
  var _a, _b, _c, _d;
318
319
  const { getDragOverrides } = (0, react_1.useContext)(remotion_1.Internals.VisualModeDragOverridesContext);
@@ -532,7 +533,7 @@ const SelectedOutlinePolygon = ({ allDragTargets, contextMenuValues, dragging, h
532
533
  });
533
534
  }, [effectDrop]);
534
535
  return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
535
- jsx_runtime_1.jsx("polygon", { ref: polygonRef, points: points, fill: effectDropHovered ? 'rgba(0, 155, 255, 0.12)' : 'transparent', stroke: colors_1.BLUE, strokeOpacity: visible || effectDropHovered ? 1 : 0, strokeWidth: 2, vectorEffect: "non-scaling-stroke", pointerEvents: target === undefined ? undefined : 'all', onPointerEnter: () => {
536
+ jsx_runtime_1.jsx("polygon", { ref: polygonRef, points: points, fill: effectDropHovered ? colors_1.TIMELINE_DROP_BLUE_ALPHA_12 : colors_1.TRANSPARENT, stroke: colors_1.BLUE, strokeOpacity: visible || effectDropHovered ? 1 : 0, strokeWidth: 2, vectorEffect: "non-scaling-stroke", pointerEvents: target === undefined ? undefined : 'all', onPointerEnter: () => {
536
537
  if (!dragging) {
537
538
  onHoverChange(outline.key);
538
539
  }
@@ -696,7 +697,7 @@ const SelectedOutlineScaleEdgeLine = ({ allScaleDragTargets, contextMenuValues,
696
697
  return null;
697
698
  }
698
699
  return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
699
- jsx_runtime_1.jsx("line", { ref: lineRef, x1: edgeInfo.start.x, y1: edgeInfo.start.y, x2: edgeInfo.end.x, y2: edgeInfo.end.y, stroke: "transparent", strokeWidth: 12, vectorEffect: "non-scaling-stroke", pointerEvents: "stroke", cursor: edgeInfo.cursor, onPointerEnter: () => {
700
+ jsx_runtime_1.jsx("line", { ref: lineRef, x1: edgeInfo.start.x, y1: edgeInfo.start.y, x2: edgeInfo.end.x, y2: edgeInfo.end.y, stroke: colors_1.TRANSPARENT, strokeWidth: 12, vectorEffect: "non-scaling-stroke", pointerEvents: "stroke", cursor: edgeInfo.cursor, onPointerEnter: () => {
700
701
  if (!dragging) {
701
702
  onHoverChange(outline.key);
702
703
  }
@@ -918,7 +919,7 @@ const SelectedOutlineRotationCornerHandle = ({ allRotationDragTargets, contextMe
918
919
  return null;
919
920
  }
920
921
  return (jsx_runtime_1.jsxs(jsx_runtime_1.Fragment, { children: [
921
- jsx_runtime_1.jsx("circle", { ref: circleRef, cx: cornerInfo.point.x, cy: cornerInfo.point.y, r: 12, fill: "transparent", stroke: "transparent", vectorEffect: "non-scaling-stroke", pointerEvents: "all", cursor: cornerInfo.cursor, onPointerEnter: () => {
922
+ jsx_runtime_1.jsx("circle", { ref: circleRef, cx: cornerInfo.point.x, cy: cornerInfo.point.y, r: 12, fill: colors_1.TRANSPARENT, stroke: colors_1.TRANSPARENT, vectorEffect: "non-scaling-stroke", pointerEvents: "all", cursor: cornerInfo.cursor, onPointerEnter: () => {
922
923
  if (!dragging) {
923
924
  onHoverChange(outline.key);
924
925
  }
@@ -1117,7 +1118,6 @@ const SelectedOutlineElement = ({ allDragTargets, allRotationDragTargets, allSca
1117
1118
  ? ['top', 'right', 'bottom', 'left'].map((edge) => (jsx_runtime_1.jsx(SelectedOutlineScaleEdgeLine, { allScaleDragTargets: allScaleDragTargets, contextMenuValues: emptyContextMenuValues, dragging: dragging, edge: edge, outline: outline, onContextMenuOpen: onContextMenuOpen, onDraggingChange: onDraggingChange, onHoverChange: onHoverChange, onSelect: onSelect, target: target }, edge)))
1118
1119
  : null, (target === null || target === void 0 ? void 0 : target.containsSelection) || hovered
1119
1120
  ? ['top-left', 'top-right', 'bottom-right', 'bottom-left'].map((corner) => (jsx_runtime_1.jsx(SelectedOutlineRotationCornerHandle, { allRotationDragTargets: allRotationDragTargets, contextMenuValues: emptyContextMenuValues, corner: corner, dragging: dragging, outline: outline, onContextMenuOpen: onContextMenuOpen, onDraggingChange: onDraggingChange, onHoverChange: onHoverChange, onSelect: onSelect, target: target }, corner)))
1120
- : null, jsx_runtime_1.jsx(SelectedOutlineTransformOriginHandle, { outline: outline, onDraggingChange: onDraggingChange, target: target })
1121
- ] }));
1121
+ : null] }));
1122
1122
  };
1123
1123
  exports.SelectedOutlineElement = SelectedOutlineElement;
@@ -671,6 +671,6 @@ const SelectedOutlineOverlay = ({ scale, translationX, translationY }) => {
671
671
  if (outlineTargets.length === 0) {
672
672
  return null;
673
673
  }
674
- return (jsx_runtime_1.jsxs("svg", { ref: overlayRef, style: outlineContainer, width: "100%", height: "100%", "aria-hidden": "true", children: [outlinesForRendering.map((outline) => (jsx_runtime_1.jsx(SelectedOutlineElement_1.SelectedOutlineElement, { allDragTargets: allDragTargets, allRotationDragTargets: allRotationDragTargets, allScaleDragTargets: allScaleDragTargets, dragging: draggingOutline, hovered: hoveredOutlineKey === outline.key, outline: outline, onDraggingChange: onDraggingChange, onHoverChange: setHoveredOutlineKey, onSelect: selectOutlineItem, scale: scale, target: targetsByKey.get(outline.key) }, outline.key))), outlinesForRendering.map((outline) => (jsx_runtime_1.jsx(SelectedOutlineUvControls_1.SelectedOutlineUvHandleConnectionLayer, { outline: outline, target: targetsByKey.get(outline.key) }, `${outline.key}-uv-connection-lines`))), outlinesForRendering.map((outline) => (jsx_runtime_1.jsx(SelectedOutlineUvControls_1.SelectedOutlineUvHandleCircleLayer, { onDraggingChange: onDraggingChange, onSelect: selectOutlineItem, outline: outline, target: targetsByKey.get(outline.key) }, `${outline.key}-uv-handles`)))] }));
674
+ return (jsx_runtime_1.jsxs("svg", { ref: overlayRef, style: outlineContainer, width: "100%", height: "100%", "aria-hidden": "true", children: [outlinesForRendering.map((outline) => (jsx_runtime_1.jsx(SelectedOutlineElement_1.SelectedOutlineElement, { allDragTargets: allDragTargets, allRotationDragTargets: allRotationDragTargets, allScaleDragTargets: allScaleDragTargets, dragging: draggingOutline, hovered: hoveredOutlineKey === outline.key, outline: outline, onDraggingChange: onDraggingChange, onHoverChange: setHoveredOutlineKey, onSelect: selectOutlineItem, scale: scale, target: targetsByKey.get(outline.key) }, outline.key))), outlinesForRendering.map((outline) => (jsx_runtime_1.jsx(SelectedOutlineElement_1.SelectedOutlineTransformOriginHandle, { outline: outline, onDraggingChange: onDraggingChange, target: targetsByKey.get(outline.key) }, `${outline.key}-transform-origin`))), outlinesForRendering.map((outline) => (jsx_runtime_1.jsx(SelectedOutlineUvControls_1.SelectedOutlineUvHandleConnectionLayer, { outline: outline, target: targetsByKey.get(outline.key) }, `${outline.key}-uv-connection-lines`))), outlinesForRendering.map((outline) => (jsx_runtime_1.jsx(SelectedOutlineUvControls_1.SelectedOutlineUvHandleCircleLayer, { onDraggingChange: onDraggingChange, onSelect: selectOutlineItem, outline: outline, target: targetsByKey.get(outline.key) }, `${outline.key}-uv-handles`)))] }));
675
675
  };
676
676
  exports.SelectedOutlineOverlay = SelectedOutlineOverlay;