@atlaskit/editor-core 209.6.5 → 209.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/ui/ContentStyles/index.js +1 -1
- package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +205 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +4 -0
- package/dist/cjs/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +205 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/ContentStyles/index.js +2 -2
- package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +206 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +5 -1
- package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +206 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/ContentStyles/index.js +2 -2
- package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +204 -0
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +5 -1
- package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +204 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +29 -1
- package/dist/types/presets/universal.d.ts +29 -1
- package/dist/types/presets/useUniversalPreset.d.ts +29 -1
- package/dist/types/ui/ContentStyles/tasks-and-decisions.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +35 -1
- package/dist/types-ts4.5/presets/universal.d.ts +35 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +35 -1
- package/dist/types-ts4.5/ui/ContentStyles/tasks-and-decisions.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +1 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 209.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`4903edc4a60f8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4903edc4a60f8) -
|
|
8
|
+
[ux] Adds a configuration for media insert to allow for smart value input
|
|
9
|
+
- [`13a1ad07bb39e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/13a1ad07bb39e) -
|
|
10
|
+
[ux] EDITOR-1146 | EDITOR-1176 Introduce `blockTaskItem` node to Renderer and Editor
|
|
11
|
+
`editor-plugin-tasks-and-decisions` which adopts the same code and functionality as the regular
|
|
12
|
+
`taskItem` except that it allows block content such as extensions to be inserted. This is to
|
|
13
|
+
facilitate TinyMCE migration which requires usage of the Legacy Content Extension.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 209.6.5
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -171,7 +171,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
171
171
|
var legacyContentStyles = function legacyContentStyles(props) {
|
|
172
172
|
return (0, _react2.css)(_templateObject0 || (_templateObject0 = (0, _taggedTemplateLiteral2.default)(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t--ak-editor--breakout-fallback-width: calc(\n\t\t100cqw - var(--ak-editor--breakout-full-page-guttering-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\n\t\t/* in full width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */\n\t\t--ak-editor--breakout-fallback-width: 100%;\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t", "\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n /* Switch between the two icons based on the visual refresh feature gate */\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t/* For FullPage only when inside a table\n\tRelated code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\tIn the \"editorContentAreaContainerStyle\" function */\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), _editorSharedStyles.akEditorGutterPadding, (0, _editorSharedStyles.akEditorGutterPaddingDynamic)(), _editorSharedStyles.akEditorDefaultLayoutWidth, _editorSharedStyles.akEditorFullWidthLayoutWidth, _editorSharedStyles.akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, _editorSharedStyles.akEditorCalculatedWideLayoutWidth, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? (0, _react2.css)(_templateObject1 || (_templateObject1 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t\t\t\t@container editor-area (max-width: ", "px) {\n\t\t\t\t\t--ak-editor--large-gutter-padding: ", "px;\n\t\t\t\t}\n\t\t\t"])), _editorSharedStyles.akEditorFullPageNarrowBreakout, _editorSharedStyles.akEditorGutterPaddingReduced) : null, (0, _editorSharedStyles.editorFontSize)({
|
|
173
173
|
theme: props.theme
|
|
174
|
-
}), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", firstFloatingToolbarButtonStyles, _styles5.placeholderTextStyles, (0, _platformFeatureFlags.fg)('platform_editor_system_fake_text_highlight_colour') && _styles5.placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _collab.telepointerStyle : _collab.telepointerStyleWithInitialOnly, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, mentionNodeStyles, (0, _platformFeatureFlags.fg)('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles, (0, _platformFeatureFlags.fg)('platform_editor_fix_emoji_style_selectors') ? emojiStylesWithSelectorFixes : emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? _styles3.findReplaceStylesNewNoImportant : _styles3.findReplaceStylesNew : _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, _tasksAndDecisions.taskItemStyles, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithVisualRefresh, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithoutVisualRefresh, (0, _status.statusStyles)(), (0, _status.statusNodeStyles)(), (0, _styles.annotationSharedStyles)(), (0, _styles.smartCardStyles)(), (0, _styles.getSmartCardSharedStyles)(), _date.dateStyles, _date.dateNodeStyles, (0, _styles.embedCardStyles)(), _styles.unsupportedStyles, _styles.resizerStyles, (0, _styles.pragmaticResizerStyles)(), (0, _styles.pragmaticStylesLayoutFirstNodeResizeHandleFix)(), (0, _styles.pragmaticResizerStylesForTooltip)(), (0, _styles.pragmaticResizerStylesWithReducedEditorGutter)(), (0, _aiPanels.aiPanelStyles)(props.colorMode), firstBlockNodeStylesNew, (0, _platformFeatureFlags.fg)('platform_editor_vanilla_codebidi_warning') && _codeBidiWarning.codeBidiWarningStyles, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
|
|
174
|
+
}), _styles.whitespaceSharedStyles, (0, _styles.paragraphSharedStyles)(props.typographyTheme), _styles.listsSharedStyles, _styles.indentationSharedStyles, _styles.shadowSharedStyle, _getInlineNodeViewProducer.InlineNodeViewSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_hide_cursor_when_pm_hideselection') ? (0, _react2.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, (0, _experiments.editorExperiment)('platform_editor_advanced_code_blocks', true) ? (0, _react2.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", firstFloatingToolbarButtonStyles, _styles5.placeholderTextStyles, (0, _platformFeatureFlags.fg)('platform_editor_system_fake_text_highlight_colour') && _styles5.placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, (0, _codeBlock.codeBlockStyles)(), (0, _styles2.blocktypeStyles)(props.typographyTheme), (0, _styles.codeMarkSharedStyles)(), _styles.textColorStyles, (0, _styles.backgroundColorStyles)(), listsStyles, ruleStyles(), (0, _media.mediaStyles)(), (0, _layout.layoutStyles)(props.viewMode), (0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer') ? _collab.telepointerStyle : _collab.telepointerStyleWithInitialOnly, _selection.gapCursorStyles, (0, _panel2.panelStyles)(), mentionsStyles, mentionNodeStyles, (0, _platformFeatureFlags.fg)('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles, (0, _platformFeatureFlags.fg)('platform_editor_fix_emoji_style_selectors') ? emojiStylesWithSelectorFixes : emojiStyles, _styles.tasksAndDecisionsStyles, _styles.gridStyles, linkStyles, _styles.blockMarksSharedStyles, _styles.dateSharedStyle, _extension.extensionStyles, (0, _expand.expandStyles)(), (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? (0, _platformFeatureFlags.fg)('platform_editor_find_and_replace_improvements_1') ? _styles3.findReplaceStylesNewNoImportant : _styles3.findReplaceStylesNew : _styles3.findReplaceStyles, _styles4.textHighlightStyle, _tasksAndDecisions.taskDecisionStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_blocktaskitem_node', 'isEnabled', true) ? _tasksAndDecisions.taskItemStylesWithBlockTaskItem : _tasksAndDecisions.taskItemStyles, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithVisualRefresh, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') && _tasksAndDecisions.taskDecisionIconWithoutVisualRefresh, (0, _status.statusStyles)(), (0, _status.statusNodeStyles)(), (0, _styles.annotationSharedStyles)(), (0, _styles.smartCardStyles)(), (0, _styles.getSmartCardSharedStyles)(), _date.dateStyles, _date.dateNodeStyles, (0, _styles.embedCardStyles)(), _styles.unsupportedStyles, _styles.resizerStyles, (0, _styles.pragmaticResizerStyles)(), (0, _styles.pragmaticStylesLayoutFirstNodeResizeHandleFix)(), (0, _styles.pragmaticResizerStylesForTooltip)(), (0, _styles.pragmaticResizerStylesWithReducedEditorGutter)(), (0, _aiPanels.aiPanelStyles)(props.colorMode), firstBlockNodeStylesNew, (0, _platformFeatureFlags.fg)('platform_editor_vanilla_codebidi_warning') && _codeBidiWarning.codeBidiWarningStyles, _styles.MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? (0, _react2.css)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
|
|
175
175
|
};
|
|
176
176
|
var createEditorContentStyle = exports.createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
177
177
|
return /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.taskItemStyles = exports.taskDecisionStyles = exports.taskDecisionIconWithoutVisualRefresh = exports.taskDecisionIconWithVisualRefresh = void 0;
|
|
7
|
+
exports.taskItemStylesWithBlockTaskItem = exports.taskItemStyles = exports.taskDecisionStyles = exports.taskDecisionIconWithoutVisualRefresh = exports.taskDecisionIconWithVisualRefresh = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
@@ -349,4 +349,208 @@ var taskItemStyles = exports.taskItemStyles = (0, _react.css)((0, _definePropert
|
|
|
349
349
|
transform: 'translate(-50%, -50%)'
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
+
}));
|
|
353
|
+
|
|
354
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
355
|
+
var taskItemStylesWithBlockTaskItem = exports.taskItemStylesWithBlockTaskItem = (0, _react.css)((0, _defineProperty2.default)({
|
|
356
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
357
|
+
'[data-prosemirror-node-name="taskItem"], [data-prosemirror-node-name="blockTaskItem"]': {
|
|
358
|
+
listStyle: 'none'
|
|
359
|
+
},
|
|
360
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
361
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="task-item-main"], [data-prosemirror-node-name="blockTaskItem"] [data-component="task-item-main"]': {
|
|
362
|
+
display: 'flex',
|
|
363
|
+
flexDirection: 'row',
|
|
364
|
+
position: 'relative'
|
|
365
|
+
},
|
|
366
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
367
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="placeholder"], [data-prosemirror-node-name="blockTaskItem"] [data-component="placeholder"]': {
|
|
368
|
+
position: 'absolute',
|
|
369
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
370
|
+
margin: "0 0 0 calc(".concat("var(--ds-space-100, 8px)", " * 3)"),
|
|
371
|
+
pointerEvents: 'none',
|
|
372
|
+
textOverflow: 'ellipsis',
|
|
373
|
+
overflow: 'hidden',
|
|
374
|
+
whiteSpace: 'nowrap',
|
|
375
|
+
maxWidth: 'calc(100% - 50px)',
|
|
376
|
+
display: 'none'
|
|
377
|
+
},
|
|
378
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
379
|
+
"[data-prosemirror-node-name='taskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder'], [data-prosemirror-node-name='blockTaskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder']": {
|
|
380
|
+
display: 'block'
|
|
381
|
+
},
|
|
382
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
383
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="content"], [data-prosemirror-node-name="blockTaskItem"] [data-component="content"]': {
|
|
384
|
+
margin: 0,
|
|
385
|
+
wordWrap: 'break-word',
|
|
386
|
+
minWidth: 0,
|
|
387
|
+
flex: '1 1 auto'
|
|
388
|
+
},
|
|
389
|
+
// copied styles from packages/design-system/icon/src/components/icon-new.tsx
|
|
390
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
391
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"], [data-prosemirror-node-name="blockTaskItem"] [data-component="checkbox-icon-wrap"]': {
|
|
392
|
+
display: 'inline-block',
|
|
393
|
+
boxSizing: 'border-box',
|
|
394
|
+
flexShrink: 0,
|
|
395
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
396
|
+
lineHeight: 1,
|
|
397
|
+
paddingInlineEnd: 'var(--ds--button--new-icon-padding-end, 0)',
|
|
398
|
+
paddingInlineStart: 'var(--ds--button--new-icon-padding-start, 0)'
|
|
399
|
+
},
|
|
400
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
401
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"] svg, [data-prosemirror-node-name="blockTaskItem"] [data-component="checkbox-icon-wrap"] svg': {
|
|
402
|
+
overflow: 'hidden',
|
|
403
|
+
pointerEvents: 'none',
|
|
404
|
+
color: 'currentColor',
|
|
405
|
+
verticalAlign: 'bottom',
|
|
406
|
+
width: "var(--ds-space-200, 16px)",
|
|
407
|
+
height: "var(--ds-space-200, 16px)"
|
|
408
|
+
},
|
|
409
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
410
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon]': {
|
|
411
|
+
display: 'none'
|
|
412
|
+
},
|
|
413
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
414
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon]': {
|
|
415
|
+
display: 'inline'
|
|
416
|
+
},
|
|
417
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
418
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon]': {
|
|
419
|
+
display: 'inline'
|
|
420
|
+
},
|
|
421
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
422
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon]': {
|
|
423
|
+
display: 'none'
|
|
424
|
+
}
|
|
425
|
+
}, "[data-prosemirror-node-name=\"taskItem\"] .".concat(_styles.TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER, ", [data-prosemirror-node-name=\"blockTaskItem\"] .").concat(_styles.TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER), {
|
|
426
|
+
flex: '0 0 24px',
|
|
427
|
+
width: '24px',
|
|
428
|
+
height: '24px',
|
|
429
|
+
position: 'relative',
|
|
430
|
+
alignSelf: 'start',
|
|
431
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
432
|
+
"& > input[type='checkbox']": {
|
|
433
|
+
width: '16px',
|
|
434
|
+
height: '16px',
|
|
435
|
+
zIndex: 1,
|
|
436
|
+
cursor: 'pointer',
|
|
437
|
+
outline: 'none',
|
|
438
|
+
margin: 0,
|
|
439
|
+
opacity: 0,
|
|
440
|
+
position: 'absolute',
|
|
441
|
+
top: '50%',
|
|
442
|
+
left: '50%',
|
|
443
|
+
transform: 'translate(-50%, -50%)',
|
|
444
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
445
|
+
'&[disabled]': {
|
|
446
|
+
cursor: 'default'
|
|
447
|
+
},
|
|
448
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
449
|
+
'+ span': {
|
|
450
|
+
width: '24px',
|
|
451
|
+
height: '24px',
|
|
452
|
+
position: 'absolute',
|
|
453
|
+
top: '50%',
|
|
454
|
+
left: '50%',
|
|
455
|
+
transform: 'translate(-50%, -50%)'
|
|
456
|
+
},
|
|
457
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
458
|
+
'+ span > svg': {
|
|
459
|
+
boxSizing: 'border-box',
|
|
460
|
+
display: 'inline',
|
|
461
|
+
top: '50%',
|
|
462
|
+
left: '50%',
|
|
463
|
+
transform: 'translate(-50%, -50%)',
|
|
464
|
+
maxWidth: 'unset',
|
|
465
|
+
maxHeight: 'unset',
|
|
466
|
+
position: 'absolute',
|
|
467
|
+
overflow: 'hidden',
|
|
468
|
+
color: "var(--ds-background-input, #FFFFFF)",
|
|
469
|
+
transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
|
|
470
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
471
|
+
'path:first-of-type': {
|
|
472
|
+
visibility: 'hidden'
|
|
473
|
+
},
|
|
474
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
475
|
+
'rect:first-of-type': {
|
|
476
|
+
stroke: "var(--ds-border-input, #8590A2)",
|
|
477
|
+
strokeWidth: 1,
|
|
478
|
+
transition: 'stroke 0.2s ease-in-out'
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
482
|
+
'&:hover + span > svg': {
|
|
483
|
+
color: "var(--ds-background-input-hovered, #F7F8F9)",
|
|
484
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
485
|
+
'rect:first-of-type': {
|
|
486
|
+
stroke: "var(--ds-border-input, #8590A2)"
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
490
|
+
'&:checked:hover + span > svg': {
|
|
491
|
+
color: "var(--ds-background-selected-bold-hovered, #0055CC)",
|
|
492
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
493
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
494
|
+
'rect:first-of-type': {
|
|
495
|
+
stroke: "var(--ds-background-selected-bold-hovered, #0055CC)"
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
'&:checked': {
|
|
499
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
500
|
+
'+ span > svg': {
|
|
501
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
502
|
+
'path:first-of-type': {
|
|
503
|
+
visibility: 'visible'
|
|
504
|
+
},
|
|
505
|
+
color: "var(--ds-background-selected-bold, #0C66E4)",
|
|
506
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
507
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
508
|
+
'rect:first-of-type': {
|
|
509
|
+
stroke: "var(--ds-background-selected-bold, #0C66E4)"
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
514
|
+
'&:active + span > svg': {
|
|
515
|
+
color: "var(--ds-background-input-pressed, #FFFFFF)",
|
|
516
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
517
|
+
'rect:first-of-type': {
|
|
518
|
+
stroke: "var(--ds-border, #091E4224)"
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
522
|
+
'&:checked:active + span > svg': {
|
|
523
|
+
color: "var(--ds-background-input-pressed, #FFFFFF)",
|
|
524
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
525
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
526
|
+
'rect:first-of-type': {
|
|
527
|
+
stroke: "var(--ds-border, #091E4224)"
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
531
|
+
'&:disabled + span > svg, &:disabled:hover + span > svg, &:disabled:focus + span > svg, &:disabled:active + span > svg': {
|
|
532
|
+
color: "var(--ds-background-disabled, #091E4208)",
|
|
533
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
534
|
+
'rect:first-of-type': {
|
|
535
|
+
stroke: "var(--ds-background-disabled, #091E4208)"
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
539
|
+
'&:disabled:checked + span > svg': {
|
|
540
|
+
fill: "var(--ds-icon-disabled, #091E424F)"
|
|
541
|
+
},
|
|
542
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
543
|
+
'&:focus + span::after': {
|
|
544
|
+
position: 'absolute',
|
|
545
|
+
width: "var(--ds-space-200, 16px)",
|
|
546
|
+
height: "var(--ds-space-200, 16px)",
|
|
547
|
+
border: "2px solid ".concat("var(--ds-border-focused, #388BFF)"),
|
|
548
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
549
|
+
content: "''",
|
|
550
|
+
display: 'block',
|
|
551
|
+
top: '50%',
|
|
552
|
+
left: '50%',
|
|
553
|
+
transform: 'translate(-50%, -50%)'
|
|
554
|
+
}
|
|
555
|
+
}
|
|
352
556
|
}));
|
|
@@ -223,6 +223,10 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
223
223
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
224
224
|
_tasksAndDecisionsStyles.decisionStyles,
|
|
225
225
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
226
|
+
(0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_blocktaskitem_node', 'isEnabled', true) ?
|
|
227
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
228
|
+
_tasksAndDecisionsStyles.taskItemStylesWithBlockTaskItem :
|
|
229
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
226
230
|
_tasksAndDecisionsStyles.taskItemStyles, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') &&
|
|
227
231
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
228
232
|
_tasksAndDecisionsStyles.decisionIconWithVisualRefresh, !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') &&
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.tasksAndDecisionsStyles = exports.taskItemStyles = exports.decisionStyles = exports.decisionIconWithoutVisualRefresh = exports.decisionIconWithVisualRefresh = exports.TaskDecisionSharedCssClassName = void 0;
|
|
7
|
+
exports.tasksAndDecisionsStyles = exports.taskItemStylesWithBlockTaskItem = exports.taskItemStyles = exports.decisionStyles = exports.decisionIconWithoutVisualRefresh = exports.decisionIconWithVisualRefresh = exports.TaskDecisionSharedCssClassName = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _selectionStyles = require("./selectionStyles");
|
|
@@ -393,4 +393,208 @@ var taskItemStyles = exports.taskItemStyles = (0, _react.css)((0, _definePropert
|
|
|
393
393
|
transform: 'translate(-50%, -50%)'
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
+
}));
|
|
397
|
+
|
|
398
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
399
|
+
var taskItemStylesWithBlockTaskItem = exports.taskItemStylesWithBlockTaskItem = (0, _react.css)((0, _defineProperty2.default)({
|
|
400
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
401
|
+
'[data-prosemirror-node-name="taskItem"], [data-prosemirror-node-name="blockTaskItem"]': {
|
|
402
|
+
listStyle: 'none'
|
|
403
|
+
},
|
|
404
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
405
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="task-item-main"], [data-prosemirror-node-name="blockTaskItem"] [data-component="task-item-main"]': {
|
|
406
|
+
display: 'flex',
|
|
407
|
+
flexDirection: 'row',
|
|
408
|
+
position: 'relative'
|
|
409
|
+
},
|
|
410
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
411
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="placeholder"], [data-prosemirror-node-name="blockTaskItem"] [data-component="placeholder"]': {
|
|
412
|
+
position: 'absolute',
|
|
413
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
414
|
+
margin: "0 0 0 calc(".concat("var(--ds-space-100, 8px)", " * 3)"),
|
|
415
|
+
pointerEvents: 'none',
|
|
416
|
+
textOverflow: 'ellipsis',
|
|
417
|
+
overflow: 'hidden',
|
|
418
|
+
whiteSpace: 'nowrap',
|
|
419
|
+
maxWidth: 'calc(100% - 50px)',
|
|
420
|
+
display: 'none'
|
|
421
|
+
},
|
|
422
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
423
|
+
"[data-prosemirror-node-name='taskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder'], [data-prosemirror-node-name='blockTaskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder']": {
|
|
424
|
+
display: 'block'
|
|
425
|
+
},
|
|
426
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
427
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="content"], [data-prosemirror-node-name="blockTaskItem"] [data-component="content"]': {
|
|
428
|
+
margin: 0,
|
|
429
|
+
wordWrap: 'break-word',
|
|
430
|
+
minWidth: 0,
|
|
431
|
+
flex: '1 1 auto'
|
|
432
|
+
},
|
|
433
|
+
// copied styles from packages/design-system/icon/src/components/icon-new.tsx
|
|
434
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
435
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"], [data-prosemirror-node-name="blockTaskItem"] [data-component="checkbox-icon-wrap"]': {
|
|
436
|
+
display: 'inline-block',
|
|
437
|
+
boxSizing: 'border-box',
|
|
438
|
+
flexShrink: 0,
|
|
439
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
440
|
+
lineHeight: 1,
|
|
441
|
+
paddingInlineEnd: 'var(--ds--button--new-icon-padding-end, 0)',
|
|
442
|
+
paddingInlineStart: 'var(--ds--button--new-icon-padding-start, 0)'
|
|
443
|
+
},
|
|
444
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
445
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"] svg, [data-prosemirror-node-name="blockTaskItem"] [data-component="checkbox-icon-wrap"] svg': {
|
|
446
|
+
overflow: 'hidden',
|
|
447
|
+
pointerEvents: 'none',
|
|
448
|
+
color: 'currentColor',
|
|
449
|
+
verticalAlign: 'bottom',
|
|
450
|
+
width: "var(--ds-space-200, 16px)",
|
|
451
|
+
height: "var(--ds-space-200, 16px)"
|
|
452
|
+
},
|
|
453
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
454
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon]': {
|
|
455
|
+
display: 'none'
|
|
456
|
+
},
|
|
457
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
458
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon]': {
|
|
459
|
+
display: 'inline'
|
|
460
|
+
},
|
|
461
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
462
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon]': {
|
|
463
|
+
display: 'inline'
|
|
464
|
+
},
|
|
465
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
466
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon]': {
|
|
467
|
+
display: 'none'
|
|
468
|
+
}
|
|
469
|
+
}, "[data-prosemirror-node-name=\"taskItem\"] .".concat(TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER, ", [data-prosemirror-node-name=\"blockTaskItem\"] .").concat(TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER), {
|
|
470
|
+
flex: '0 0 24px',
|
|
471
|
+
width: '24px',
|
|
472
|
+
height: '24px',
|
|
473
|
+
position: 'relative',
|
|
474
|
+
alignSelf: 'start',
|
|
475
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
476
|
+
"& > input[type='checkbox']": {
|
|
477
|
+
width: '16px',
|
|
478
|
+
height: '16px',
|
|
479
|
+
zIndex: 1,
|
|
480
|
+
cursor: 'pointer',
|
|
481
|
+
outline: 'none',
|
|
482
|
+
margin: 0,
|
|
483
|
+
opacity: 0,
|
|
484
|
+
position: 'absolute',
|
|
485
|
+
top: '50%',
|
|
486
|
+
left: '50%',
|
|
487
|
+
transform: 'translate(-50%, -50%)',
|
|
488
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
489
|
+
'&[disabled]': {
|
|
490
|
+
cursor: 'default'
|
|
491
|
+
},
|
|
492
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
493
|
+
'+ span': {
|
|
494
|
+
width: '24px',
|
|
495
|
+
height: '24px',
|
|
496
|
+
position: 'absolute',
|
|
497
|
+
top: '50%',
|
|
498
|
+
left: '50%',
|
|
499
|
+
transform: 'translate(-50%, -50%)'
|
|
500
|
+
},
|
|
501
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
502
|
+
'+ span > svg': {
|
|
503
|
+
boxSizing: 'border-box',
|
|
504
|
+
display: 'inline',
|
|
505
|
+
top: '50%',
|
|
506
|
+
left: '50%',
|
|
507
|
+
transform: 'translate(-50%, -50%)',
|
|
508
|
+
maxWidth: 'unset',
|
|
509
|
+
maxHeight: 'unset',
|
|
510
|
+
position: 'absolute',
|
|
511
|
+
overflow: 'hidden',
|
|
512
|
+
color: "var(--ds-background-input, #FFFFFF)",
|
|
513
|
+
transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
|
|
514
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
515
|
+
'path:first-of-type': {
|
|
516
|
+
visibility: 'hidden'
|
|
517
|
+
},
|
|
518
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
519
|
+
'rect:first-of-type': {
|
|
520
|
+
stroke: "var(--ds-border-input, #8590A2)",
|
|
521
|
+
strokeWidth: 1,
|
|
522
|
+
transition: 'stroke 0.2s ease-in-out'
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
526
|
+
'&:hover + span > svg': {
|
|
527
|
+
color: "var(--ds-background-input-hovered, #F7F8F9)",
|
|
528
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
529
|
+
'rect:first-of-type': {
|
|
530
|
+
stroke: "var(--ds-border-input, #8590A2)"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
534
|
+
'&:checked:hover + span > svg': {
|
|
535
|
+
color: "var(--ds-background-selected-bold-hovered, #0055CC)",
|
|
536
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
537
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
538
|
+
'rect:first-of-type': {
|
|
539
|
+
stroke: "var(--ds-background-selected-bold-hovered, #0055CC)"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
'&:checked': {
|
|
543
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
544
|
+
'+ span > svg': {
|
|
545
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
546
|
+
'path:first-of-type': {
|
|
547
|
+
visibility: 'visible'
|
|
548
|
+
},
|
|
549
|
+
color: "var(--ds-background-selected-bold, #0C66E4)",
|
|
550
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
551
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
552
|
+
'rect:first-of-type': {
|
|
553
|
+
stroke: "var(--ds-background-selected-bold, #0C66E4)"
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
558
|
+
'&:active + span > svg': {
|
|
559
|
+
color: "var(--ds-background-input-pressed, #FFFFFF)",
|
|
560
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
561
|
+
'rect:first-of-type': {
|
|
562
|
+
stroke: "var(--ds-border, #091E4224)"
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
566
|
+
'&:checked:active + span > svg': {
|
|
567
|
+
color: "var(--ds-background-input-pressed, #FFFFFF)",
|
|
568
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
569
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
570
|
+
'rect:first-of-type': {
|
|
571
|
+
stroke: "var(--ds-border, #091E4224)"
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
575
|
+
'&:disabled + span > svg, &:disabled:hover + span > svg, &:disabled:focus + span > svg, &:disabled:active + span > svg': {
|
|
576
|
+
color: "var(--ds-background-disabled, #091E4208)",
|
|
577
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
578
|
+
'rect:first-of-type': {
|
|
579
|
+
stroke: "var(--ds-background-disabled, #091E4208)"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
583
|
+
'&:disabled:checked + span > svg': {
|
|
584
|
+
fill: "var(--ds-icon-disabled, #091E424F)"
|
|
585
|
+
},
|
|
586
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
587
|
+
'&:focus + span::after': {
|
|
588
|
+
position: 'absolute',
|
|
589
|
+
width: "var(--ds-space-200, 16px)",
|
|
590
|
+
height: "var(--ds-space-200, 16px)",
|
|
591
|
+
border: "2px solid ".concat("var(--ds-border-focused, #388BFF)"),
|
|
592
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
593
|
+
content: "''",
|
|
594
|
+
display: 'block',
|
|
595
|
+
top: '50%',
|
|
596
|
+
left: '50%',
|
|
597
|
+
transform: 'translate(-50%, -50%)'
|
|
598
|
+
}
|
|
599
|
+
}
|
|
396
600
|
}));
|
|
@@ -38,7 +38,7 @@ import { layoutStyles } from './layout';
|
|
|
38
38
|
import { mediaStyles } from './media';
|
|
39
39
|
import { panelStyles } from './panel';
|
|
40
40
|
import { statusStyles, statusNodeStyles } from './status';
|
|
41
|
-
import { taskDecisionStyles, taskDecisionIconWithoutVisualRefresh as decisionIconWithoutVisualRefresh, taskDecisionIconWithVisualRefresh as decisionIconWithVisualRefresh, taskItemStyles } from './tasks-and-decisions';
|
|
41
|
+
import { taskDecisionStyles, taskDecisionIconWithoutVisualRefresh as decisionIconWithoutVisualRefresh, taskDecisionIconWithVisualRefresh as decisionIconWithVisualRefresh, taskItemStyles, taskItemStylesWithBlockTaskItem } from './tasks-and-decisions';
|
|
42
42
|
|
|
43
43
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
44
44
|
export const linkStyles = css`
|
|
@@ -474,7 +474,7 @@ const legacyContentStyles = props => css`
|
|
|
474
474
|
${expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? fg('platform_editor_find_and_replace_improvements_1') ? findReplaceStylesNewNoImportant : findReplaceStylesNew : findReplaceStyles}
|
|
475
475
|
${textHighlightStyle}
|
|
476
476
|
${taskDecisionStyles}
|
|
477
|
-
${taskItemStyles}
|
|
477
|
+
${expValEqualsNoExposure('platform_editor_blocktaskitem_node', 'isEnabled', true) ? taskItemStylesWithBlockTaskItem : taskItemStyles}
|
|
478
478
|
/* Switch between the two icons based on the visual refresh feature gate */
|
|
479
479
|
${fg('platform-visual-refresh-icons') && decisionIconWithVisualRefresh}
|
|
480
480
|
${!fg('platform-visual-refresh-icons') && decisionIconWithoutVisualRefresh}
|