@fibery/ui-kit 1.34.8 → 1.36.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/.eslintignore +3 -0
- package/.eslintrc +14 -0
- package/CHANGELOG.md +586 -0
- package/babel.config.js +3 -0
- package/config/jest/testFrameworkSetup.js +1 -0
- package/package.json +7 -41
- package/scripts/generate-icons.mjs +116 -0
- package/src/__mocks__/createInlineTheme.js +3 -0
- package/src/__mocks__/styleMock.js +1 -0
- package/src/a11y-color.ts +1 -1
- package/src/action-badge.tsx +63 -0
- package/src/actions-menu/actions-menu-sub-menu.tsx +3 -0
- package/src/actions-panel.tsx +50 -0
- package/src/ai/max-tokens.tsx +42 -0
- package/src/ai/model.tsx +79 -0
- package/src/ai/temperature.tsx +75 -0
- package/src/animated-height-container.tsx +82 -0
- package/src/animated-number.tsx +38 -0
- package/src/animations.tsx +62 -0
- package/src/antd/AutoComplete.d.ts +1 -0
- package/src/antd/AutoComplete.js +34 -0
- package/src/antd/Tabs.d.ts +5 -0
- package/src/antd/Tabs.js +58 -0
- package/src/antd/ant-modal.tsx +11 -0
- package/src/antd/ant-upload.tsx +73 -0
- package/src/antd/auto-width-transparent-textarea.tsx +56 -0
- package/src/antd/get-wrapper.tsx +11 -0
- package/src/antd/index.tsx +4 -0
- package/src/antd/input-number.tsx +51 -0
- package/src/antd/input.tsx +56 -0
- package/src/antd/styles.ts +6 -6
- package/src/antd/utils.tsx +43 -0
- package/src/app-icon-with-fallback.tsx +147 -0
- package/src/app-icon-wrapper.tsx +44 -0
- package/src/app-icon.tsx +52 -0
- package/src/app-mode.tsx +52 -0
- package/src/appIcons.json +13066 -0
- package/src/avatar.tsx +262 -0
- package/src/axis-header.tsx +160 -0
- package/src/badge.tsx +39 -0
- package/src/board-table-loader.tsx +106 -0
- package/src/box.tsx +444 -0
- package/src/breakpoints.tsx +59 -0
- package/src/button/base-button.tsx +1 -1
- package/src/button/icon-button.tsx +2 -2
- package/src/card-container.tsx +483 -0
- package/src/checkbox-multi-select.tsx +71 -0
- package/src/checkbox.tsx +232 -0
- package/src/collapsible/index.tsx +43 -0
- package/src/collapsible-section.tsx +69 -0
- package/src/color-picker/ColorPickerOrLoader.js +23 -0
- package/src/color-picker/SliderPointer.js +14 -0
- package/src/color-picker/index.js +118 -0
- package/src/color-picker/swatch.tsx +85 -0
- package/src/command-menu/index.tsx +176 -0
- package/src/comment.tsx +218 -0
- package/src/context-menu/index.tsx +134 -0
- package/src/copy-to-clipboard.ts +1 -0
- package/src/country-selector.tsx +29 -0
- package/src/date-picker/autocomplete.tsx +74 -0
- package/src/date-picker/constants.ts +3 -0
- package/src/date-picker/contexts.ts +7 -0
- package/src/date-picker/date-range-input.tsx +346 -0
- package/src/date-picker/date-range-picker-popup-content.tsx +190 -0
- package/src/date-picker/date-range-picker.tsx +124 -0
- package/src/date-picker/day-with-start-end-buttons.tsx +171 -0
- package/src/date-picker/fake-date-input.tsx +40 -0
- package/src/date-picker/get-weekends-for-month.ts +7 -0
- package/src/date-picker/rc-input-types.ts +11 -0
- package/src/date-picker/relative-date-picker.tsx +141 -0
- package/src/date-picker/single-date-input.tsx +239 -0
- package/src/date-picker/single-date-picker-popup-content.tsx +90 -0
- package/src/date-picker/single-date-picker.tsx +243 -0
- package/src/date-picker/styles.ts +262 -0
- package/src/date-picker/types.ts +56 -0
- package/src/date-picker/utils.ts +110 -0
- package/src/date-picker/with-popup-control.tsx +61 -0
- package/src/day-select/day-select.tsx +94 -0
- package/src/day-select/iso-week-day-select.tsx +15 -0
- package/src/day-select/mount-day-select.tsx +11 -0
- package/src/day-select/week-day-select.test.tsx +48 -0
- package/src/day-select/week-day-select.tsx +42 -0
- package/src/delayed.tsx +26 -0
- package/src/design-system.test.ts +24 -0
- package/src/design-system.ts +77 -39
- package/src/dnd.tsx +55 -0
- package/src/dropdown-menu/index.tsx +2 -3
- package/src/emoji-picker/app-icon-picker.tsx +1 -0
- package/src/emoji-picker/primitives/emoji.tsx +4 -2
- package/src/emoji-picker/primitives/render-config-provider.tsx +12 -0
- package/src/emoji.tsx +30 -0
- package/src/empty-state/empty-state-action.tsx +3 -0
- package/src/empty-state/empty-state-emoji.tsx +20 -0
- package/src/empty-state/empty-state.tsx +80 -0
- package/src/empty-value.tsx +21 -0
- package/src/errors.ts +29 -0
- package/src/favorites-icon.tsx +87 -0
- package/src/features.tsx +10 -0
- package/src/fibermoji-placeholder.tsx +180 -0
- package/src/field-container.tsx +213 -0
- package/src/file-item.tsx +151 -0
- package/src/form-utils.ts +7 -0
- package/src/format-date-from-now.ts +33 -0
- package/src/full-fibery-logo.tsx +26 -0
- package/src/get-trigger-node-popup-container.ts +7 -0
- package/src/guide-link.tsx +24 -0
- package/src/header-layout.tsx +33 -0
- package/src/hint.tsx +47 -0
- package/src/hoverable-via-display.tsx +29 -0
- package/src/hoverable.tsx +53 -0
- package/src/html-styles.ts +720 -0
- package/src/icons/ast/AccessTemplate.ts +8 -0
- package/src/icons/ast/AddDatabase.ts +8 -0
- package/src/icons/ast/AddIntegration.ts +8 -0
- package/src/icons/ast/AiSearch.ts +8 -0
- package/src/icons/ast/Asterisk.ts +8 -0
- package/src/icons/ast/Clean.ts +8 -0
- package/src/icons/ast/Copy.ts +1 -1
- package/src/icons/ast/CreditsFilled.ts +8 -0
- package/src/icons/ast/CrossCircle.ts +8 -0
- package/src/icons/ast/Duplicate.ts +1 -1
- package/src/icons/ast/Gift.ts +8 -0
- package/src/icons/ast/LevelPlus.ts +8 -0
- package/src/icons/ast/Markdown.ts +8 -0
- package/src/icons/ast/PeopleCheck.ts +8 -0
- package/src/icons/ast/PresentPlay.ts +8 -0
- package/src/icons/ast/PresentStop.ts +8 -0
- package/src/icons/ast/ResetPassword.ts +8 -0
- package/src/icons/ast/SettingsOff.ts +8 -0
- package/src/icons/ast/Template.ts +8 -0
- package/src/icons/ast/UserCheck.ts +8 -0
- package/src/icons/ast/UserGroupRemove.ts +8 -0
- package/src/icons/ast/UserX.ts +8 -0
- package/src/icons/ast/ViewGantt.ts +8 -0
- package/src/icons/ast/Views.ts +1 -1
- package/src/icons/ast/index.tsx +21 -0
- package/src/icons/react/AccessTemplate.tsx +13 -0
- package/src/icons/react/AddDatabase.tsx +13 -0
- package/src/icons/react/AddIntegration.tsx +13 -0
- package/src/icons/react/AiSearch.tsx +13 -0
- package/src/icons/react/Asterisk.tsx +13 -0
- package/src/icons/react/Clean.tsx +13 -0
- package/src/icons/react/CreditsFilled.tsx +13 -0
- package/src/icons/react/CrossCircle.tsx +13 -0
- package/src/icons/react/Gift.tsx +13 -0
- package/src/icons/react/LevelPlus.tsx +13 -0
- package/src/icons/react/Markdown.tsx +13 -0
- package/src/icons/react/PeopleCheck.tsx +13 -0
- package/src/icons/react/PresentPlay.tsx +13 -0
- package/src/icons/react/PresentStop.tsx +13 -0
- package/src/icons/react/ResetPassword.tsx +13 -0
- package/src/icons/react/SettingsOff.tsx +13 -0
- package/src/icons/react/Template.tsx +13 -0
- package/src/icons/react/UserCheck.tsx +13 -0
- package/src/icons/react/UserGroupRemove.tsx +13 -0
- package/src/icons/react/UserX.tsx +13 -0
- package/src/icons/react/ViewGantt.tsx +13 -0
- package/src/icons/react/index.tsx +21 -0
- package/src/icons/svg/abort.svg +3 -0
- package/src/icons/svg/access-template.svg +4 -0
- package/src/icons/svg/activity-log.svg +4 -0
- package/src/icons/svg/activity.svg +4 -0
- package/src/icons/svg/add-after.svg +4 -0
- package/src/icons/svg/add-before.svg +4 -0
- package/src/icons/svg/add-compact.svg +2 -0
- package/src/icons/svg/add-database.svg +3 -0
- package/src/icons/svg/add-group.svg +4 -0
- package/src/icons/svg/add-integration.svg +3 -0
- package/src/icons/svg/add-reactions.svg +8 -0
- package/src/icons/svg/add.svg +2 -0
- package/src/icons/svg/ai-assistant.svg +3 -0
- package/src/icons/svg/ai-avatar.svg +3 -0
- package/src/icons/svg/ai-search.svg +3 -0
- package/src/icons/svg/alert-triangle.svg +3 -0
- package/src/icons/svg/app-details.svg +7 -0
- package/src/icons/svg/app-store-one-color.svg +4 -0
- package/src/icons/svg/app-store.svg +4 -0
- package/src/icons/svg/app-templates.svg +7 -0
- package/src/icons/svg/app-webhooks.svg +2 -0
- package/src/icons/svg/app-wiki.svg +2 -0
- package/src/icons/svg/app.svg +2 -0
- package/src/icons/svg/appearance-auto.svg +3 -0
- package/src/icons/svg/appearance-dark.svg +3 -0
- package/src/icons/svg/appearance-light.svg +3 -0
- package/src/icons/svg/arrow-bar-left.svg +4 -0
- package/src/icons/svg/arrow-bar-right.svg +4 -0
- package/src/icons/svg/arrow-bottom.svg +3 -0
- package/src/icons/svg/arrow-collapse-vertical.svg +3 -0
- package/src/icons/svg/arrow-collapse.svg +3 -0
- package/src/icons/svg/arrow-forward.svg +3 -0
- package/src/icons/svg/arrow-left.svg +3 -0
- package/src/icons/svg/arrow-right.svg +3 -0
- package/src/icons/svg/arrow-top.svg +3 -0
- package/src/icons/svg/arrow-up-circle.svg +4 -0
- package/src/icons/svg/arrows-right-left.svg +3 -0
- package/src/icons/svg/ask-for-input.svg +6 -0
- package/src/icons/svg/asterisk.svg +3 -0
- package/src/icons/svg/atom.svg +4 -0
- package/src/icons/svg/automations-cancelled.svg +3 -0
- package/src/icons/svg/automations-disabled.svg +3 -0
- package/src/icons/svg/automations-error.svg +3 -0
- package/src/icons/svg/automations-in-progress.svg +3 -0
- package/src/icons/svg/automations-not-started.svg +3 -0
- package/src/icons/svg/automations-success.svg +3 -0
- package/src/icons/svg/back.svg +2 -0
- package/src/icons/svg/backlog-icon.svg +3 -0
- package/src/icons/svg/batch-actions-icon.svg +4 -0
- package/src/icons/svg/bell-circle.svg +4 -0
- package/src/icons/svg/bell-filled.svg +4 -0
- package/src/icons/svg/bell-off.svg +4 -0
- package/src/icons/svg/bell-ringing.svg +5 -0
- package/src/icons/svg/bell-x.svg +4 -0
- package/src/icons/svg/bolt.svg +3 -0
- package/src/icons/svg/bring-forward.svg +8 -0
- package/src/icons/svg/bring-to-front.svg +3 -0
- package/src/icons/svg/cards.svg +3 -0
- package/src/icons/svg/chat-ai.svg +5 -0
- package/src/icons/svg/chat.svg +3 -0
- package/src/icons/svg/check-circle-filled.svg +3 -0
- package/src/icons/svg/check-circle.svg +4 -0
- package/src/icons/svg/checked.svg +3 -0
- package/src/icons/svg/clean.svg +6 -0
- package/src/icons/svg/clear-input-filled.svg +3 -0
- package/src/icons/svg/clear-value.svg +6 -0
- package/src/icons/svg/clear.svg +6 -0
- package/src/icons/svg/clock-alarm.svg +6 -0
- package/src/icons/svg/clock-forward.svg +3 -0
- package/src/icons/svg/clock.svg +4 -0
- package/src/icons/svg/close.svg +4 -0
- package/src/icons/svg/collapse-all.svg +3 -0
- package/src/icons/svg/color-coding-filled.svg +3 -0
- package/src/icons/svg/color-coding.svg +4 -0
- package/src/icons/svg/columns-2.svg +3 -0
- package/src/icons/svg/columns-4.svg +3 -0
- package/src/icons/svg/columns.svg +3 -0
- package/src/icons/svg/comment-bubble.svg +3 -0
- package/src/icons/svg/copy.svg +5 -0
- package/src/icons/svg/create.svg +3 -0
- package/src/icons/svg/credits-filled.svg +3 -0
- package/src/icons/svg/cross-circle.svg +4 -0
- package/src/icons/svg/database-off.svg +3 -0
- package/src/icons/svg/database-stroke.svg +4 -0
- package/src/icons/svg/database.svg +4 -0
- package/src/icons/svg/delete.svg +6 -0
- package/src/icons/svg/demo.svg +2 -0
- package/src/icons/svg/dependency.svg +3 -0
- package/src/icons/svg/double-arrow-left.svg +2 -0
- package/src/icons/svg/double-arrow-right.svg +2 -0
- package/src/icons/svg/drag-block-handle-single.svg +5 -0
- package/src/icons/svg/drag-block-handle.svg +8 -0
- package/src/icons/svg/drag-handle.svg +2 -0
- package/src/icons/svg/duplicate.svg +5 -0
- package/src/icons/svg/dynamic-filter-value.svg +3 -0
- package/src/icons/svg/edit-value.svg +5 -0
- package/src/icons/svg/email.svg +3 -0
- package/src/icons/svg/emoji-delete.svg +5 -0
- package/src/icons/svg/entity-merge.svg +3 -0
- package/src/icons/svg/equation.svg +4 -0
- package/src/icons/svg/export.svg +4 -0
- package/src/icons/svg/extension/assignments.svg +7 -0
- package/src/icons/svg/extension/avatar.svg +2 -0
- package/src/icons/svg/extension/comments.svg +5 -0
- package/src/icons/svg/extension/files.svg +2 -0
- package/src/icons/svg/extension/references.svg +2 -0
- package/src/icons/svg/extension/workflow.svg +2 -0
- package/src/icons/svg/eye.svg +4 -0
- package/src/icons/svg/favorites-checked.svg +4 -0
- package/src/icons/svg/favorites-off.svg +4 -0
- package/src/icons/svg/favorites.svg +4 -0
- package/src/icons/svg/fibery-mono.svg +3 -0
- package/src/icons/svg/field-unit.svg +3 -0
- package/src/icons/svg/fields.svg +4 -0
- package/src/icons/svg/figma.svg +7 -0
- package/src/icons/svg/file-upload.svg +7 -0
- package/src/icons/svg/filter.svg +3 -0
- package/src/icons/svg/fit-to-screen.svg +5 -0
- package/src/icons/svg/focus-mode-off.svg +5 -0
- package/src/icons/svg/focus-mode.svg +5 -0
- package/src/icons/svg/folder.svg +4 -0
- package/src/icons/svg/form-with-cover.svg +7 -0
- package/src/icons/svg/form-without-cover.svg +6 -0
- package/src/icons/svg/fullscreen-mode-off-icon.svg +3 -0
- package/src/icons/svg/fullscreen-mode-on-icon.svg +3 -0
- package/src/icons/svg/fullscreen-mode-on.svg +4 -0
- package/src/icons/svg/gift.svg +3 -0
- package/src/icons/svg/github.svg +1 -0
- package/src/icons/svg/gitlab.svg +3 -0
- package/src/icons/svg/globe-simple.svg +3 -0
- package/src/icons/svg/globe.svg +3 -0
- package/src/icons/svg/go-to.svg +5 -0
- package/src/icons/svg/google-drive.svg +8 -0
- package/src/icons/svg/google-map.svg +7 -0
- package/src/icons/svg/headphones-ai.svg +4 -0
- package/src/icons/svg/headphones.svg +3 -0
- package/src/icons/svg/hide.svg +2 -0
- package/src/icons/svg/highlights.svg +3 -0
- package/src/icons/svg/hint.svg +4 -0
- package/src/icons/svg/home.svg +2 -0
- package/src/icons/svg/image-xmark.svg +2 -0
- package/src/icons/svg/import.svg +4 -0
- package/src/icons/svg/info-circle-filled.svg +3 -0
- package/src/icons/svg/info-circle.svg +6 -0
- package/src/icons/svg/integration.svg +2 -0
- package/src/icons/svg/integrations/integration-discourse-color.svg +8 -0
- package/src/icons/svg/integrations/integration-intercom-color.svg +3 -0
- package/src/icons/svg/integrations/integration-slack-color.svg +10 -0
- package/src/icons/svg/integrations/integration-zendesk-color.svg +6 -0
- package/src/icons/svg/invite-people.svg +6 -0
- package/src/icons/svg/items-timeline.svg +4 -0
- package/src/icons/svg/items.svg +3 -0
- package/src/icons/svg/jira.svg +3 -0
- package/src/icons/svg/key.svg +4 -0
- package/src/icons/svg/lab.svg +6 -0
- package/src/icons/svg/layout-double.svg +3 -0
- package/src/icons/svg/layout-single.svg +3 -0
- package/src/icons/svg/left-panel.svg +11 -0
- package/src/icons/svg/level-plus.svg +4 -0
- package/src/icons/svg/levels.svg +2 -0
- package/src/icons/svg/line-divider.svg +3 -0
- package/src/icons/svg/link.svg +6 -0
- package/src/icons/svg/lock-outline.svg +5 -0
- package/src/icons/svg/lock.svg +4 -0
- package/src/icons/svg/logout.svg +4 -0
- package/src/icons/svg/loom.svg +3 -0
- package/src/icons/svg/loupe-zoom-in.svg +3 -0
- package/src/icons/svg/loupe-zoom-out.svg +1 -0
- package/src/icons/svg/loupe-zoom.svg +3 -0
- package/src/icons/svg/many-people.svg +4 -0
- package/src/icons/svg/map-mode.svg +6 -0
- package/src/icons/svg/markdown.svg +3 -0
- package/src/icons/svg/menu-collapser.svg +2 -0
- package/src/icons/svg/message-plus-square.svg +4 -0
- package/src/icons/svg/milestones.svg +3 -0
- package/src/icons/svg/minus.svg +4 -0
- package/src/icons/svg/miro.svg +4 -0
- package/src/icons/svg/mirror-off.svg +8 -0
- package/src/icons/svg/mirror-on.svg +3 -0
- package/src/icons/svg/mixpanel.svg +3 -0
- package/src/icons/svg/monitor.svg +3 -0
- package/src/icons/svg/more-compact.svg +4 -0
- package/src/icons/svg/more.svg +4 -0
- package/src/icons/svg/move-bottom.svg +3 -0
- package/src/icons/svg/move-left.svg +3 -0
- package/src/icons/svg/move-right.svg +3 -0
- package/src/icons/svg/move-space.svg +5 -0
- package/src/icons/svg/move-top.svg +3 -0
- package/src/icons/svg/network-add.svg +5 -0
- package/src/icons/svg/network.svg +4 -0
- package/src/icons/svg/notifications.svg +2 -0
- package/src/icons/svg/obj-child.svg +2 -0
- package/src/icons/svg/obj-m2m.svg +2 -0
- package/src/icons/svg/obj-o2o.svg +2 -0
- package/src/icons/svg/obj-parent.svg +2 -0
- package/src/icons/svg/obj-self.svg +2 -0
- package/src/icons/svg/on-schedule.svg +3 -0
- package/src/icons/svg/open-as-page.svg +4 -0
- package/src/icons/svg/page-regular-mode.svg +5 -0
- package/src/icons/svg/page-wide-mode.svg +5 -0
- package/src/icons/svg/panel-add.svg +3 -0
- package/src/icons/svg/pencil.svg +5 -0
- package/src/icons/svg/people-check.svg +4 -0
- package/src/icons/svg/people.svg +7 -0
- package/src/icons/svg/photo.svg +2 -0
- package/src/icons/svg/pin-filled.svg +5 -0
- package/src/icons/svg/pin.svg +3 -0
- package/src/icons/svg/popup.svg +5 -0
- package/src/icons/svg/posts.svg +3 -0
- package/src/icons/svg/present-play.svg +4 -0
- package/src/icons/svg/present-stop.svg +3 -0
- package/src/icons/svg/private-items.svg +5 -0
- package/src/icons/svg/question.svg +4 -0
- package/src/icons/svg/refresh.svg +4 -0
- package/src/icons/svg/remove-people.svg +6 -0
- package/src/icons/svg/remove.svg +2 -0
- package/src/icons/svg/reply.svg +2 -0
- package/src/icons/svg/reset-password.svg +6 -0
- package/src/icons/svg/restore.svg +2 -0
- package/src/icons/svg/richeditor/actions/more.svg +2 -0
- package/src/icons/svg/richeditor/block/callout.svg +4 -0
- package/src/icons/svg/richeditor/block/code.svg +7 -0
- package/src/icons/svg/richeditor/block/embed.svg +4 -0
- package/src/icons/svg/richeditor/block/entity.svg +2 -0
- package/src/icons/svg/richeditor/block/file.svg +1 -0
- package/src/icons/svg/richeditor/block/h1.svg +2 -0
- package/src/icons/svg/richeditor/block/h2.svg +2 -0
- package/src/icons/svg/richeditor/block/h3.svg +2 -0
- package/src/icons/svg/richeditor/block/h4.svg +4 -0
- package/src/icons/svg/richeditor/block/mention.svg +2 -0
- package/src/icons/svg/richeditor/block/paragraph.svg +2 -0
- package/src/icons/svg/richeditor/block/quote.svg +2 -0
- package/src/icons/svg/richeditor/checklist/create.svg +2 -0
- package/src/icons/svg/richeditor/comment/create.svg +5 -0
- package/src/icons/svg/richeditor/entity-link/create.svg +2 -0
- package/src/icons/svg/richeditor/history/redo.svg +2 -0
- package/src/icons/svg/richeditor/history/undo.svg +2 -0
- package/src/icons/svg/richeditor/image/align-center.svg +2 -0
- package/src/icons/svg/richeditor/image/align-left.svg +2 -0
- package/src/icons/svg/richeditor/image/align-right.svg +2 -0
- package/src/icons/svg/richeditor/image/upload.svg +2 -0
- package/src/icons/svg/richeditor/image/wrap-center.svg +2 -0
- package/src/icons/svg/richeditor/image/wrap-left.svg +2 -0
- package/src/icons/svg/richeditor/image/wrap-right.svg +2 -0
- package/src/icons/svg/richeditor/image/zoom.svg +5 -0
- package/src/icons/svg/richeditor/link/create.svg +9 -0
- package/src/icons/svg/richeditor/linkedhighlight/create.svg +2 -0
- package/src/icons/svg/richeditor/list/bullet.svg +2 -0
- package/src/icons/svg/richeditor/list/indent.svg +2 -0
- package/src/icons/svg/richeditor/list/ordered.svg +2 -0
- package/src/icons/svg/richeditor/list/unindent.svg +2 -0
- package/src/icons/svg/richeditor/mark/code.svg +6 -0
- package/src/icons/svg/richeditor/mark/em.svg +2 -0
- package/src/icons/svg/richeditor/mark/strike.svg +2 -0
- package/src/icons/svg/richeditor/mark/strong.svg +2 -0
- package/src/icons/svg/richeditor/mark/text-background-color.svg +2 -0
- package/src/icons/svg/richeditor/mark/underline.svg +2 -0
- package/src/icons/svg/richeditor/open-link.svg +4 -0
- package/src/icons/svg/richeditor/table/create.svg +2 -0
- package/src/icons/svg/richeditor/unlink.svg +10 -0
- package/src/icons/svg/richeditor/video/upload.svg +2 -0
- package/src/icons/svg/right-panel.svg +11 -0
- package/src/icons/svg/rows.svg +3 -0
- package/src/icons/svg/rule-scheduled.svg +5 -0
- package/src/icons/svg/search-add.svg +4 -0
- package/src/icons/svg/search-remove.svg +4 -0
- package/src/icons/svg/search.svg +2 -0
- package/src/icons/svg/self-reference-off.svg +2 -0
- package/src/icons/svg/self-reference-on.svg +2 -0
- package/src/icons/svg/send-arrow.svg +3 -0
- package/src/icons/svg/send-backward.svg +8 -0
- package/src/icons/svg/send-to-back.svg +4 -0
- package/src/icons/svg/settings-off.svg +4 -0
- package/src/icons/svg/settings.svg +4 -0
- package/src/icons/svg/share.svg +5 -0
- package/src/icons/svg/shared.svg +7 -0
- package/src/icons/svg/shield-keyhole.svg +4 -0
- package/src/icons/svg/show-author.svg +5 -0
- package/src/icons/svg/sidebar-fields-opened.svg +3 -0
- package/src/icons/svg/sidebar-fields.svg +6 -0
- package/src/icons/svg/sidebar.svg +2 -0
- package/src/icons/svg/simple-compass.svg +5 -0
- package/src/icons/svg/slack-icon.svg +3 -0
- package/src/icons/svg/slack.svg +10 -0
- package/src/icons/svg/slide-menu-close.svg +4 -0
- package/src/icons/svg/slide-menu-open.svg +4 -0
- package/src/icons/svg/slide-menu.svg +5 -0
- package/src/icons/svg/smart-folder.svg +5 -0
- package/src/icons/svg/sort-on-bottom.svg +4 -0
- package/src/icons/svg/sort-on-top.svg +4 -0
- package/src/icons/svg/sort.svg +3 -0
- package/src/icons/svg/spinner.svg +2 -0
- package/src/icons/svg/success.svg +4 -0
- package/src/icons/svg/template.svg +3 -0
- package/src/icons/svg/templates.svg +4 -0
- package/src/icons/svg/terminal.svg +5 -0
- package/src/icons/svg/text-tool-align-bottom.svg +3 -0
- package/src/icons/svg/text-tool-align-middle.svg +3 -0
- package/src/icons/svg/text-tool-align-top.svg +3 -0
- package/src/icons/svg/twitter.svg +4 -0
- package/src/icons/svg/type/boolean.svg +2 -0
- package/src/icons/svg/type/button.svg +4 -0
- package/src/icons/svg/type/checkbox.svg +2 -0
- package/src/icons/svg/type/date.svg +2 -0
- package/src/icons/svg/type/email.svg +2 -0
- package/src/icons/svg/type/emoji.svg +2 -0
- package/src/icons/svg/type/formula.svg +2 -0
- package/src/icons/svg/type/function.svg +2 -0
- package/src/icons/svg/type/location.svg +4 -0
- package/src/icons/svg/type/lookup.svg +2 -0
- package/src/icons/svg/type/money.svg +2 -0
- package/src/icons/svg/type/multi-select.svg +2 -0
- package/src/icons/svg/type/number.svg +2 -0
- package/src/icons/svg/type/percent.svg +2 -0
- package/src/icons/svg/type/phone.svg +2 -0
- package/src/icons/svg/type/relation.svg +2 -0
- package/src/icons/svg/type/rich-text.svg +2 -0
- package/src/icons/svg/type/rule.svg +2 -0
- package/src/icons/svg/type/single-select.svg +2 -0
- package/src/icons/svg/type/text.svg +2 -0
- package/src/icons/svg/type/url.svg +9 -0
- package/src/icons/svg/units/avatar.svg +5 -0
- package/src/icons/svg/units/collection.svg +5 -0
- package/src/icons/svg/units/counter.svg +5 -0
- package/src/icons/svg/units/date.svg +5 -0
- package/src/icons/svg/units/db-badge-abbr.svg +4 -0
- package/src/icons/svg/units/db-badge-full.svg +4 -0
- package/src/icons/svg/units/db-icon.svg +4 -0
- package/src/icons/svg/units/field-icon-button.svg +5 -0
- package/src/icons/svg/units/field.svg +4 -0
- package/src/icons/svg/units/input.svg +5 -0
- package/src/icons/svg/units/progress-bar.svg +5 -0
- package/src/icons/svg/units/rich-text.svg +4 -0
- package/src/icons/svg/units/snippet.svg +5 -0
- package/src/icons/svg/unlink.svg +10 -0
- package/src/icons/svg/unlock-filled.svg +5 -0
- package/src/icons/svg/unlock-outline.svg +5 -0
- package/src/icons/svg/upgrade.svg +2 -0
- package/src/icons/svg/usb-flash-drive.svg +5 -0
- package/src/icons/svg/user-check.svg +3 -0
- package/src/icons/svg/user-group-remove.svg +5 -0
- package/src/icons/svg/user-group.svg +4 -0
- package/src/icons/svg/user-role.svg +4 -0
- package/src/icons/svg/user-x.svg +5 -0
- package/src/icons/svg/view-ai.svg +3 -0
- package/src/icons/svg/view-board.svg +2 -0
- package/src/icons/svg/view-calendar.svg +2 -0
- package/src/icons/svg/view-canvas.svg +2 -0
- package/src/icons/svg/view-chart.svg +2 -0
- package/src/icons/svg/view-details.svg +2 -0
- package/src/icons/svg/view-document.svg +2 -0
- package/src/icons/svg/view-feed.svg +3 -0
- package/src/icons/svg/view-form.svg +4 -0
- package/src/icons/svg/view-gantt.svg +5 -0
- package/src/icons/svg/view-list.svg +2 -0
- package/src/icons/svg/view-map.svg +3 -0
- package/src/icons/svg/view-page.svg +3 -0
- package/src/icons/svg/view-table.svg +2 -0
- package/src/icons/svg/view-timeline.svg +2 -0
- package/src/icons/svg/views.svg +11 -0
- package/src/icons/svg/warning-triangle.svg +4 -0
- package/src/icons/svg/warning.svg +2 -0
- package/src/icons/svg/workspace-map.svg +3 -0
- package/src/icons/svg/youtube.svg +4 -0
- package/src/icons/svg/zoom-in.svg +7 -0
- package/src/icons/svg/zoom-out.svg +7 -0
- package/src/is-android.ts +3 -0
- package/src/is-iOS.ts +8 -0
- package/src/is-in-popup.ts +15 -0
- package/src/layout.tsx +88 -0
- package/src/link-input/components/AntTextAreaWithCustomReadState.js +64 -0
- package/src/link-input/index.js +89 -0
- package/src/link-input/utils.js +13 -0
- package/src/logo.tsx +81 -0
- package/src/menu-item-actions.tsx +6 -0
- package/src/nested-menu-item.tsx +0 -0
- package/src/new-badge.tsx +16 -0
- package/src/new-card-placeholder.tsx +231 -0
- package/src/not-empty.ts +3 -0
- package/src/notification-dot.tsx +23 -0
- package/src/number-input/decimal.js +59 -0
- package/src/number-input/decimal.test.js +71 -0
- package/src/number-input/edit-unit-styles.ts +18 -0
- package/src/number-input/index.js +191 -0
- package/src/number-input/index.test.js +106 -0
- package/src/number-input/number-inline-input-with-autosize.tsx +156 -0
- package/src/number-input/number-input.tsx +152 -0
- package/src/number-input/stack.tsx +25 -0
- package/src/number-input/step-button.tsx +73 -0
- package/src/number-input/styles.ts +50 -0
- package/src/number-input/text-area-with-autosize.tsx +91 -0
- package/src/number-input/text-inline-input-with-autosize.tsx +60 -0
- package/src/online-users.tsx +238 -0
- package/src/palette.ts +2 -30
- package/src/platform.ts +4 -0
- package/src/popup/index.tsx +382 -0
- package/src/popup/modifiers.tsx +70 -0
- package/src/popup/popup-modifiers-context.ts +12 -0
- package/src/popup/popup-stack-context.tsx +44 -0
- package/src/popup/reference.ts +7 -0
- package/src/popup/styles.ts +62 -0
- package/src/popup/use-click-outside.ts +22 -0
- package/src/progress.tsx +14 -0
- package/src/reactions/get-word-divider.tsx +15 -0
- package/src/reactions/reaction-button.tsx +254 -0
- package/src/reactions/reaction-picker.tsx +126 -0
- package/src/reactions/reactions.tsx +30 -0
- package/src/ready-to-scroll-context.tsx +16 -0
- package/src/rich-input-loader.tsx +78 -0
- package/src/rich-text-embed-error.tsx +44 -0
- package/src/select/custom-select-partials/clear-indicator.tsx +4 -0
- package/src/select/custom-select-partials/group-heading.tsx +4 -5
- package/src/select/custom-select-partials/menu-list-virtualized.tsx +22 -4
- package/src/select/custom-select-partials/menu.tsx +5 -6
- package/src/select/index.tsx +39 -28
- package/src/select/select-in-popover.tsx +21 -16
- package/src/select/styles.ts +10 -2
- package/src/styles-utils.tsx +16 -0
- package/src/tab-nav/tab-nav.tsx +208 -0
- package/src/table.tsx +91 -0
- package/src/toast/primitives.tsx +6 -7
- package/src/toast/toast-action.tsx +7 -1
- package/src/toast/toast-queue.ts +2 -2
- package/src/toast/toast.tsx +78 -16
- package/src/toast/toaster.tsx +2 -17
- package/src/toast/utils/toastify-item-name.ts +16 -5
- package/src/tooltip.tsx +9 -0
- package/src/type-badge-box.tsx +42 -0
- package/src/type-badge.tsx +315 -0
- package/src/unit/as-string.tsx +1 -0
- package/src/unit/index.tsx +55 -0
- package/src/unit/loading-unit-value.tsx +13 -0
- package/src/unit/maybe-unit-value.tsx +9 -0
- package/src/unit/primitive.tsx +167 -0
- package/src/unit/required-indicator.svg +3 -0
- package/src/unit/styles.ts +165 -0
- package/src/unit/types.ts +31 -0
- package/src/unit/unit-button-group.tsx +38 -0
- package/src/unit/unit-content-layout.tsx +37 -0
- package/src/unit/unit-content.tsx +37 -0
- package/src/unit/unit-with-title.tsx +8 -0
- package/src/unit/unit-with-tooltip.tsx +60 -0
- package/src/use-is-support-hover.ts +5 -0
- package/src/use-long-press.tsx +79 -0
- package/src/use-me.tsx +11 -0
- package/src/use-navigation.tsx +11 -0
- package/src/use-why-did-you-update.tsx +78 -0
- package/src/utils-dom.ts +26 -0
- package/src/with-data.tsx +78 -0
- package/src/workflow-progress-icon.tsx +73 -0
- package/tsconfig.json +4 -0
- package/src/icons/get-icon-container-style.tsx +0 -13
|
@@ -0,0 +1,720 @@
|
|
|
1
|
+
/* eslint-disable max-lines */
|
|
2
|
+
import {css} from "@linaria/core";
|
|
3
|
+
import {
|
|
4
|
+
border,
|
|
5
|
+
fontFamily,
|
|
6
|
+
fontWeight,
|
|
7
|
+
lineHeight,
|
|
8
|
+
space,
|
|
9
|
+
textStyles,
|
|
10
|
+
themeVars,
|
|
11
|
+
transition,
|
|
12
|
+
typeSizes,
|
|
13
|
+
} from "./design-system";
|
|
14
|
+
|
|
15
|
+
export const linkStyles = {
|
|
16
|
+
color: themeVars.linkColor,
|
|
17
|
+
borderBottom: themeVars.linkBorder,
|
|
18
|
+
textDecoration: "none",
|
|
19
|
+
cursor: "pointer",
|
|
20
|
+
transition: `border ${transition}`,
|
|
21
|
+
"&:hover": {
|
|
22
|
+
color: themeVars.linkHoverColor,
|
|
23
|
+
borderBottom: themeVars.linkBorderHover,
|
|
24
|
+
textDecoration: "none",
|
|
25
|
+
cursor: "pointer",
|
|
26
|
+
transition: `border ${transition}`,
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const emptyNodeStyle = {
|
|
31
|
+
float: "left",
|
|
32
|
+
pointerEvents: "none",
|
|
33
|
+
height: 0,
|
|
34
|
+
color: themeVars.disabledTextColor,
|
|
35
|
+
content: "attr(placeholder)",
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/*
|
|
39
|
+
Used in regular text editor
|
|
40
|
+
*/
|
|
41
|
+
const htmlStyles = {
|
|
42
|
+
fontSize: 16,
|
|
43
|
+
"& h1": {
|
|
44
|
+
fontFamily,
|
|
45
|
+
fontSize: 28,
|
|
46
|
+
letterSpacing: "-0.003em",
|
|
47
|
+
lineHeight: lineHeight.heading,
|
|
48
|
+
fontWeight: fontWeight.semibold,
|
|
49
|
+
color: themeVars.textColor,
|
|
50
|
+
paddingBottom: space.s3,
|
|
51
|
+
paddingTop: space.s3,
|
|
52
|
+
marginBottom: space.s8,
|
|
53
|
+
marginTop: space.s24,
|
|
54
|
+
},
|
|
55
|
+
"& h2": {
|
|
56
|
+
fontFamily,
|
|
57
|
+
fontSize: 24,
|
|
58
|
+
letterSpacing: "-0.002em",
|
|
59
|
+
lineHeight: lineHeight.heading,
|
|
60
|
+
fontWeight: fontWeight.semibold,
|
|
61
|
+
color: themeVars.textColor,
|
|
62
|
+
paddingBottom: space.s3,
|
|
63
|
+
paddingTop: space.s3,
|
|
64
|
+
marginBottom: space.s4,
|
|
65
|
+
marginTop: space.s24,
|
|
66
|
+
},
|
|
67
|
+
"& h3": {
|
|
68
|
+
fontFamily,
|
|
69
|
+
fontSize: 20,
|
|
70
|
+
letterSpacing: "-0.002em",
|
|
71
|
+
lineHeight: lineHeight.heading,
|
|
72
|
+
fontWeight: fontWeight.semibold,
|
|
73
|
+
color: themeVars.textColor,
|
|
74
|
+
paddingBottom: space.s3,
|
|
75
|
+
paddingTop: space.s3,
|
|
76
|
+
marginBottom: space.s4,
|
|
77
|
+
marginTop: space.s20,
|
|
78
|
+
},
|
|
79
|
+
"& h4": {
|
|
80
|
+
fontFamily,
|
|
81
|
+
fontSize: 18,
|
|
82
|
+
lineHeight: lineHeight.heading,
|
|
83
|
+
fontWeight: fontWeight.semibold,
|
|
84
|
+
color: themeVars.textColor,
|
|
85
|
+
paddingBottom: space.s3,
|
|
86
|
+
paddingTop: space.s3,
|
|
87
|
+
marginBottom: space.s4,
|
|
88
|
+
marginTop: space.s16,
|
|
89
|
+
},
|
|
90
|
+
"& ul": {
|
|
91
|
+
margin: space.s2,
|
|
92
|
+
marginLeft: space.s12,
|
|
93
|
+
listStyleType: "disc",
|
|
94
|
+
padding: 0,
|
|
95
|
+
...textStyles.regular,
|
|
96
|
+
},
|
|
97
|
+
"& ol": {
|
|
98
|
+
margin: space.s2,
|
|
99
|
+
marginLeft: space.s12,
|
|
100
|
+
listStyleType: "decimal",
|
|
101
|
+
padding: 0,
|
|
102
|
+
...textStyles.regular,
|
|
103
|
+
},
|
|
104
|
+
"& ol li::marker": {
|
|
105
|
+
...textStyles.numeric.tabularOn,
|
|
106
|
+
},
|
|
107
|
+
"& li": {
|
|
108
|
+
marginLeft: space.s12,
|
|
109
|
+
padding: 0,
|
|
110
|
+
...textStyles.regular,
|
|
111
|
+
},
|
|
112
|
+
"& li p": {
|
|
113
|
+
marginTop: space.s2,
|
|
114
|
+
marginBottom: space.s2,
|
|
115
|
+
marginLeft: space.s4,
|
|
116
|
+
paddingTop: space.s3,
|
|
117
|
+
paddingBottom: space.s3,
|
|
118
|
+
},
|
|
119
|
+
"& blockquote": {
|
|
120
|
+
marginTop: space.s6,
|
|
121
|
+
marginBottom: space.s6,
|
|
122
|
+
paddingTop: 0,
|
|
123
|
+
marginLeft: space.s2,
|
|
124
|
+
marginRight: 0,
|
|
125
|
+
paddingBottom: 0,
|
|
126
|
+
paddingLeft: space.s12,
|
|
127
|
+
paddingRight: space.s12,
|
|
128
|
+
borderLeft: `${space.s3}px solid ${themeVars.colorBorderBlockQuote}`,
|
|
129
|
+
"& p": {
|
|
130
|
+
fontSize: typeSizes[3],
|
|
131
|
+
},
|
|
132
|
+
"& *:last-child": {
|
|
133
|
+
marginBottom: 0,
|
|
134
|
+
marginTop: 0,
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
"& p": {
|
|
138
|
+
marginTop: space.s2,
|
|
139
|
+
marginBottom: space.s2,
|
|
140
|
+
paddingTop: space.s3,
|
|
141
|
+
paddingBottom: space.s3,
|
|
142
|
+
...textStyles.big,
|
|
143
|
+
lineHeight: lineHeight.text,
|
|
144
|
+
},
|
|
145
|
+
"& .fibery-rich-text-check-item": {
|
|
146
|
+
marginTop: space.s2,
|
|
147
|
+
marginBottom: space.s2,
|
|
148
|
+
paddingTop: space.s3,
|
|
149
|
+
paddingBottom: space.s3,
|
|
150
|
+
...textStyles.big,
|
|
151
|
+
lineHeight: lineHeight.text,
|
|
152
|
+
},
|
|
153
|
+
"& table": {
|
|
154
|
+
marginTop: space.s8,
|
|
155
|
+
marginBottom: space.s4,
|
|
156
|
+
},
|
|
157
|
+
"& td": {
|
|
158
|
+
paddingTop: space.s3,
|
|
159
|
+
paddingLeft: space.s12,
|
|
160
|
+
paddingRight: space.s12,
|
|
161
|
+
paddingBottom: space.s3,
|
|
162
|
+
"& p": {
|
|
163
|
+
marginTop: space.s2,
|
|
164
|
+
marginBottom: space.s2,
|
|
165
|
+
paddingTop: space.s3,
|
|
166
|
+
paddingBottom: space.s3,
|
|
167
|
+
...textStyles.big,
|
|
168
|
+
lineHeight: lineHeight.text,
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
"& .code-block": {
|
|
172
|
+
marginTop: space.s8,
|
|
173
|
+
marginBottom: space.s8,
|
|
174
|
+
},
|
|
175
|
+
"& pre": {
|
|
176
|
+
whiteSpace: "pre-wrap",
|
|
177
|
+
overflow: "visible",
|
|
178
|
+
paddingTop: space.s24 + space.s6,
|
|
179
|
+
paddingBottom: space.s24 + space.s4,
|
|
180
|
+
paddingLeft: space.s12 + space.s4,
|
|
181
|
+
paddingRight: space.s12 + space.s4,
|
|
182
|
+
backgroundColor: themeVars.codeBlockBgColor,
|
|
183
|
+
borderRadius: 6,
|
|
184
|
+
...textStyles.code,
|
|
185
|
+
"& *:last-child": {
|
|
186
|
+
marginBottom: 0,
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
"& code": {
|
|
190
|
+
...textStyles.code,
|
|
191
|
+
fontSize: "85%",
|
|
192
|
+
lineHeight: "inherit",
|
|
193
|
+
fontWeight: "inherit",
|
|
194
|
+
padding: `${space.s3}px ${space.s4}px`,
|
|
195
|
+
color: themeVars.codeColor,
|
|
196
|
+
backgroundColor: themeVars.codeBgColor,
|
|
197
|
+
borderRadius: border.radius4,
|
|
198
|
+
},
|
|
199
|
+
"& pre code": {
|
|
200
|
+
...textStyles.code,
|
|
201
|
+
backgroundColor: themeVars.transparent,
|
|
202
|
+
color: themeVars.textColor,
|
|
203
|
+
padding: 0,
|
|
204
|
+
boxShadow: "none",
|
|
205
|
+
borderRadius: 0,
|
|
206
|
+
margin: 0,
|
|
207
|
+
tabSize: 4,
|
|
208
|
+
},
|
|
209
|
+
"& b, & strong": {
|
|
210
|
+
fontWeight: fontWeight.bold,
|
|
211
|
+
},
|
|
212
|
+
"& a.prosemirror-link": linkStyles,
|
|
213
|
+
"& div.fibery-note": {
|
|
214
|
+
...textStyles.note,
|
|
215
|
+
marginBottom: space.s12,
|
|
216
|
+
"& p": {
|
|
217
|
+
margin: space.s12,
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
"& div.fibery-important": {
|
|
221
|
+
...textStyles.important,
|
|
222
|
+
marginBottom: space.s12,
|
|
223
|
+
"& p": {
|
|
224
|
+
margin: space.s12,
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
"& > *:first-child": {
|
|
228
|
+
marginTop: 0,
|
|
229
|
+
},
|
|
230
|
+
"& > *:last-child": {
|
|
231
|
+
marginBottom: 0,
|
|
232
|
+
},
|
|
233
|
+
"& > .fibery-rich-text-image-block:last-child": {
|
|
234
|
+
marginBottom: space.s4,
|
|
235
|
+
},
|
|
236
|
+
"& .fibery-rich-text-heading:has(.highlighted-node), & pre:has(.highlighted-node), & p:has(.highlighted-node), & .fibery-rich-text-check-item:has(.highlighted-node)":
|
|
237
|
+
{
|
|
238
|
+
backgroundColor: `${themeVars.warningBgColor} !important`,
|
|
239
|
+
scrollMarginTop: "33vh",
|
|
240
|
+
transition: "background-color 1s",
|
|
241
|
+
},
|
|
242
|
+
"& .code-block:has(.highlighted-node)": {
|
|
243
|
+
scrollMarginTop: "33vh",
|
|
244
|
+
},
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
/*
|
|
248
|
+
Used in comments and view descriptions
|
|
249
|
+
*/
|
|
250
|
+
const smallHtmlStyles = {
|
|
251
|
+
fontSize: typeSizes[4],
|
|
252
|
+
"& h1": {
|
|
253
|
+
fontFamily,
|
|
254
|
+
fontSize: 24,
|
|
255
|
+
letterSpacing: "-0.003em",
|
|
256
|
+
lineHeight: lineHeight.heading,
|
|
257
|
+
fontWeight: fontWeight.semibold,
|
|
258
|
+
color: themeVars.textColor,
|
|
259
|
+
paddingBottom: space.s2,
|
|
260
|
+
paddingTop: space.s2,
|
|
261
|
+
marginBottom: space.s6,
|
|
262
|
+
marginTop: space.s24,
|
|
263
|
+
},
|
|
264
|
+
"& h2": {
|
|
265
|
+
fontFamily,
|
|
266
|
+
fontSize: 21,
|
|
267
|
+
letterSpacing: "-0.002em",
|
|
268
|
+
lineHeight: lineHeight.heading,
|
|
269
|
+
fontWeight: fontWeight.semibold,
|
|
270
|
+
color: themeVars.textColor,
|
|
271
|
+
paddingBottom: space.s2,
|
|
272
|
+
paddingTop: space.s2,
|
|
273
|
+
marginBottom: space.s4,
|
|
274
|
+
marginTop: space.s20,
|
|
275
|
+
},
|
|
276
|
+
"& h3": {
|
|
277
|
+
fontFamily,
|
|
278
|
+
fontSize: 18,
|
|
279
|
+
letterSpacing: "-0.002em",
|
|
280
|
+
lineHeight: lineHeight.heading,
|
|
281
|
+
fontWeight: fontWeight.semibold,
|
|
282
|
+
color: themeVars.textColor,
|
|
283
|
+
paddingBottom: space.s2,
|
|
284
|
+
paddingTop: space.s2,
|
|
285
|
+
marginBottom: space.s4,
|
|
286
|
+
marginTop: space.s16,
|
|
287
|
+
},
|
|
288
|
+
"& h4": {
|
|
289
|
+
fontFamily,
|
|
290
|
+
fontSize: 16,
|
|
291
|
+
lineHeight: lineHeight.heading,
|
|
292
|
+
fontWeight: fontWeight.semibold,
|
|
293
|
+
color: themeVars.textColor,
|
|
294
|
+
paddingBottom: space.s2,
|
|
295
|
+
paddingTop: space.s2,
|
|
296
|
+
marginBottom: space.s4,
|
|
297
|
+
marginTop: space.s14,
|
|
298
|
+
},
|
|
299
|
+
"& ul": {
|
|
300
|
+
margin: space.s2,
|
|
301
|
+
marginLeft: space.s12,
|
|
302
|
+
listStyleType: "disc",
|
|
303
|
+
padding: 0,
|
|
304
|
+
...textStyles.regular,
|
|
305
|
+
},
|
|
306
|
+
"& ol": {
|
|
307
|
+
margin: space.s2,
|
|
308
|
+
marginLeft: space.s12,
|
|
309
|
+
listStyleType: "decimal",
|
|
310
|
+
padding: 0,
|
|
311
|
+
...textStyles.regular,
|
|
312
|
+
},
|
|
313
|
+
"& ol li::marker": {
|
|
314
|
+
...textStyles.numeric.tabularOn,
|
|
315
|
+
},
|
|
316
|
+
"& li": {
|
|
317
|
+
marginLeft: space.s12,
|
|
318
|
+
padding: 0,
|
|
319
|
+
...textStyles.regular,
|
|
320
|
+
},
|
|
321
|
+
"& li p": {
|
|
322
|
+
marginTop: space.s2,
|
|
323
|
+
marginBottom: space.s2,
|
|
324
|
+
paddingTop: space.s2,
|
|
325
|
+
paddingBottom: space.s2,
|
|
326
|
+
},
|
|
327
|
+
"& blockquote": {
|
|
328
|
+
marginTop: space.s4,
|
|
329
|
+
marginBottom: space.s4,
|
|
330
|
+
paddingTop: 0,
|
|
331
|
+
marginLeft: 0,
|
|
332
|
+
marginRight: 0,
|
|
333
|
+
paddingBottom: 0,
|
|
334
|
+
paddingLeft: space.s10,
|
|
335
|
+
paddingRight: space.s10,
|
|
336
|
+
borderLeft: `3px solid ${themeVars.colorBorderBlockQuote}`,
|
|
337
|
+
"& p": {
|
|
338
|
+
fontSize: typeSizes[4],
|
|
339
|
+
},
|
|
340
|
+
"& *:last-child": {
|
|
341
|
+
marginBottom: 0,
|
|
342
|
+
},
|
|
343
|
+
},
|
|
344
|
+
"& p": {
|
|
345
|
+
marginTop: space.s2,
|
|
346
|
+
marginBottom: space.s2,
|
|
347
|
+
paddingTop: space.s2,
|
|
348
|
+
paddingBottom: space.s2,
|
|
349
|
+
...textStyles.regular,
|
|
350
|
+
lineHeight: lineHeight.text,
|
|
351
|
+
},
|
|
352
|
+
"& .fibery-rich-text-check-item": {
|
|
353
|
+
marginTop: space.s2,
|
|
354
|
+
marginBottom: space.s2,
|
|
355
|
+
paddingTop: space.s2,
|
|
356
|
+
paddingBottom: space.s2,
|
|
357
|
+
...textStyles.regular,
|
|
358
|
+
lineHeight: lineHeight.text,
|
|
359
|
+
},
|
|
360
|
+
"& table": {
|
|
361
|
+
marginTop: space.s6,
|
|
362
|
+
marginBottom: space.s4,
|
|
363
|
+
},
|
|
364
|
+
"& td": {
|
|
365
|
+
paddingTop: space.s2,
|
|
366
|
+
paddingLeft: space.s10,
|
|
367
|
+
paddingRight: space.s10,
|
|
368
|
+
paddingBottom: space.s2,
|
|
369
|
+
"& p": {
|
|
370
|
+
marginTop: space.s2,
|
|
371
|
+
marginBottom: space.s2,
|
|
372
|
+
paddingTop: space.s2,
|
|
373
|
+
paddingBottom: space.s2,
|
|
374
|
+
...textStyles.regular,
|
|
375
|
+
lineHeight: lineHeight.text,
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
"& .code-block": {
|
|
379
|
+
marginTop: space.s6,
|
|
380
|
+
marginBottom: space.s6,
|
|
381
|
+
},
|
|
382
|
+
"& pre": {
|
|
383
|
+
whiteSpace: "pre-wrap",
|
|
384
|
+
overflow: "visible",
|
|
385
|
+
paddingTop: space.s20 + space.s6,
|
|
386
|
+
paddingBottom: space.s20 + space.s4,
|
|
387
|
+
paddingLeft: space.s10 + space.s4,
|
|
388
|
+
paddingRight: space.s10 + space.s4,
|
|
389
|
+
backgroundColor: themeVars.codeBlockBgColor,
|
|
390
|
+
borderRadius: 6,
|
|
391
|
+
...textStyles.code,
|
|
392
|
+
"& *:last-child": {
|
|
393
|
+
marginBottom: 0,
|
|
394
|
+
},
|
|
395
|
+
},
|
|
396
|
+
"& code": {
|
|
397
|
+
...textStyles.code,
|
|
398
|
+
fontSize: "85%",
|
|
399
|
+
lineHeight: "inherit",
|
|
400
|
+
fontWeight: "inherit",
|
|
401
|
+
padding: `${space.s2}px ${space.s3}px`,
|
|
402
|
+
color: themeVars.codeColor,
|
|
403
|
+
backgroundColor: themeVars.codeBgColor,
|
|
404
|
+
borderRadius: space.s3,
|
|
405
|
+
},
|
|
406
|
+
"& pre code": {
|
|
407
|
+
...textStyles.code,
|
|
408
|
+
backgroundColor: themeVars.transparent,
|
|
409
|
+
color: themeVars.textColor,
|
|
410
|
+
padding: 0,
|
|
411
|
+
boxShadow: "none",
|
|
412
|
+
borderRadius: 0,
|
|
413
|
+
margin: 0,
|
|
414
|
+
tabSize: 4,
|
|
415
|
+
},
|
|
416
|
+
"& b, & strong": {
|
|
417
|
+
fontWeight: fontWeight.bold,
|
|
418
|
+
},
|
|
419
|
+
"& a.prosemirror-link": linkStyles,
|
|
420
|
+
"& div.fibery-note": {
|
|
421
|
+
...textStyles.note,
|
|
422
|
+
marginBottom: space.s12,
|
|
423
|
+
"& p": {
|
|
424
|
+
margin: space.s12,
|
|
425
|
+
},
|
|
426
|
+
},
|
|
427
|
+
"& div.fibery-important": {
|
|
428
|
+
...textStyles.important,
|
|
429
|
+
marginBottom: space.s12,
|
|
430
|
+
"& p": {
|
|
431
|
+
margin: space.s12,
|
|
432
|
+
},
|
|
433
|
+
},
|
|
434
|
+
"& > *:first-child": {
|
|
435
|
+
marginTop: 0,
|
|
436
|
+
},
|
|
437
|
+
"& > *:last-child": {
|
|
438
|
+
marginBottom: 0,
|
|
439
|
+
},
|
|
440
|
+
"& > .fibery-rich-text-image-block:last-child": {
|
|
441
|
+
marginBottom: space.s2,
|
|
442
|
+
},
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
/*
|
|
446
|
+
Used in chat
|
|
447
|
+
*/
|
|
448
|
+
/*
|
|
449
|
+
Used in chat
|
|
450
|
+
*/
|
|
451
|
+
const chatHtmlStyles = {
|
|
452
|
+
fontSize: typeSizes[4],
|
|
453
|
+
"& h1": {
|
|
454
|
+
fontFamily,
|
|
455
|
+
fontSize: 20,
|
|
456
|
+
letterSpacing: "-0.003em",
|
|
457
|
+
lineHeight: lineHeight.heading,
|
|
458
|
+
fontWeight: fontWeight.semibold,
|
|
459
|
+
color: themeVars.textColor,
|
|
460
|
+
marginBottom: space.s8,
|
|
461
|
+
marginTop: space.s20,
|
|
462
|
+
},
|
|
463
|
+
"& h2": {
|
|
464
|
+
fontFamily,
|
|
465
|
+
fontSize: 18,
|
|
466
|
+
letterSpacing: "-0.002em",
|
|
467
|
+
lineHeight: lineHeight.heading,
|
|
468
|
+
fontWeight: fontWeight.semibold,
|
|
469
|
+
color: themeVars.textColor,
|
|
470
|
+
marginBottom: space.s4,
|
|
471
|
+
marginTop: space.s18,
|
|
472
|
+
},
|
|
473
|
+
"& h3": {
|
|
474
|
+
fontFamily,
|
|
475
|
+
fontSize: 16,
|
|
476
|
+
letterSpacing: "-0.002em",
|
|
477
|
+
lineHeight: lineHeight.heading,
|
|
478
|
+
fontWeight: fontWeight.semibold,
|
|
479
|
+
color: themeVars.textColor,
|
|
480
|
+
marginBottom: space.s4,
|
|
481
|
+
marginTop: space.s16,
|
|
482
|
+
},
|
|
483
|
+
"& h4": {
|
|
484
|
+
fontFamily,
|
|
485
|
+
fontSize: 14,
|
|
486
|
+
lineHeight: lineHeight.heading,
|
|
487
|
+
fontWeight: fontWeight.semibold,
|
|
488
|
+
color: themeVars.textColor,
|
|
489
|
+
marginBottom: space.s4,
|
|
490
|
+
marginTop: space.s14,
|
|
491
|
+
},
|
|
492
|
+
"& ul": {
|
|
493
|
+
margin: space.s2,
|
|
494
|
+
marginLeft: space.s6,
|
|
495
|
+
listStyleType: "disc",
|
|
496
|
+
padding: 0,
|
|
497
|
+
...textStyles.regular,
|
|
498
|
+
},
|
|
499
|
+
"& ol": {
|
|
500
|
+
margin: space.s2,
|
|
501
|
+
marginLeft: space.s6,
|
|
502
|
+
listStyleType: "decimal",
|
|
503
|
+
padding: 0,
|
|
504
|
+
...textStyles.regular,
|
|
505
|
+
},
|
|
506
|
+
"& ol li::marker": {
|
|
507
|
+
...textStyles.numeric.tabularOn,
|
|
508
|
+
},
|
|
509
|
+
"& li": {
|
|
510
|
+
marginLeft: space.s10,
|
|
511
|
+
padding: 0,
|
|
512
|
+
...textStyles.regular,
|
|
513
|
+
},
|
|
514
|
+
"& li p": {
|
|
515
|
+
marginTop: space.s2,
|
|
516
|
+
marginBottom: space.s2,
|
|
517
|
+
paddingTop: space.s2,
|
|
518
|
+
paddingBottom: space.s2,
|
|
519
|
+
},
|
|
520
|
+
"& blockquote": {
|
|
521
|
+
marginTop: space.s4,
|
|
522
|
+
marginBottom: space.s4,
|
|
523
|
+
paddingTop: 0,
|
|
524
|
+
marginLeft: 0,
|
|
525
|
+
marginRight: 0,
|
|
526
|
+
paddingBottom: 0,
|
|
527
|
+
paddingLeft: space.s10,
|
|
528
|
+
paddingRight: space.s10,
|
|
529
|
+
borderLeft: `3px solid ${themeVars.colorBorderBlockQuote}`,
|
|
530
|
+
"& p": {
|
|
531
|
+
fontSize: typeSizes[4],
|
|
532
|
+
},
|
|
533
|
+
"& *:last-child": {
|
|
534
|
+
marginBottom: 0,
|
|
535
|
+
},
|
|
536
|
+
},
|
|
537
|
+
"& p": {
|
|
538
|
+
marginTop: space.s2,
|
|
539
|
+
marginBottom: space.s2,
|
|
540
|
+
paddingTop: space.s2,
|
|
541
|
+
paddingBottom: space.s2,
|
|
542
|
+
...textStyles.regular,
|
|
543
|
+
lineHeight: lineHeight.text,
|
|
544
|
+
},
|
|
545
|
+
"& .fibery-rich-text-check-item": {
|
|
546
|
+
marginTop: space.s2,
|
|
547
|
+
marginBottom: space.s2,
|
|
548
|
+
paddingTop: space.s2,
|
|
549
|
+
paddingBottom: space.s2,
|
|
550
|
+
...textStyles.regular,
|
|
551
|
+
lineHeight: lineHeight.text,
|
|
552
|
+
},
|
|
553
|
+
"& table": {
|
|
554
|
+
marginTop: space.s4,
|
|
555
|
+
marginBottom: space.s4,
|
|
556
|
+
},
|
|
557
|
+
"& td": {
|
|
558
|
+
paddingTop: space.s2,
|
|
559
|
+
paddingLeft: space.s10,
|
|
560
|
+
paddingRight: space.s10,
|
|
561
|
+
paddingBottom: space.s2,
|
|
562
|
+
"& p": {
|
|
563
|
+
marginTop: space.s2,
|
|
564
|
+
marginBottom: space.s2,
|
|
565
|
+
paddingTop: space.s2,
|
|
566
|
+
paddingBottom: space.s2,
|
|
567
|
+
...textStyles.regular,
|
|
568
|
+
lineHeight: lineHeight.text,
|
|
569
|
+
},
|
|
570
|
+
},
|
|
571
|
+
"& .code-block": {
|
|
572
|
+
marginTop: space.s6,
|
|
573
|
+
marginBottom: space.s6,
|
|
574
|
+
},
|
|
575
|
+
"& pre": {
|
|
576
|
+
whiteSpace: "pre-wrap",
|
|
577
|
+
overflow: "visible",
|
|
578
|
+
paddingTop: space.s20 + space.s6,
|
|
579
|
+
paddingBottom: space.s20 + space.s4,
|
|
580
|
+
paddingLeft: space.s10 + space.s4,
|
|
581
|
+
paddingRight: space.s10 + space.s4,
|
|
582
|
+
backgroundColor: themeVars.codeBlockBgColor,
|
|
583
|
+
borderRadius: 6,
|
|
584
|
+
...textStyles.code,
|
|
585
|
+
"& *:last-child": {
|
|
586
|
+
marginBottom: 0,
|
|
587
|
+
},
|
|
588
|
+
},
|
|
589
|
+
"& code": {
|
|
590
|
+
...textStyles.code,
|
|
591
|
+
fontSize: "85%",
|
|
592
|
+
lineHeight: "inherit",
|
|
593
|
+
fontWeight: "inherit",
|
|
594
|
+
padding: `${space.s2}px ${space.s3}px`,
|
|
595
|
+
color: themeVars.codeColor,
|
|
596
|
+
backgroundColor: themeVars.codeBgColor,
|
|
597
|
+
borderRadius: space.s3,
|
|
598
|
+
},
|
|
599
|
+
"& pre code": {
|
|
600
|
+
...textStyles.code,
|
|
601
|
+
backgroundColor: themeVars.transparent,
|
|
602
|
+
color: themeVars.textColor,
|
|
603
|
+
padding: 0,
|
|
604
|
+
boxShadow: "none",
|
|
605
|
+
borderRadius: 0,
|
|
606
|
+
margin: 0,
|
|
607
|
+
tabSize: 4,
|
|
608
|
+
},
|
|
609
|
+
"& b, & strong": {
|
|
610
|
+
fontWeight: fontWeight.bold,
|
|
611
|
+
},
|
|
612
|
+
"& a.prosemirror-link": linkStyles,
|
|
613
|
+
"& div.fibery-note": {
|
|
614
|
+
...textStyles.note,
|
|
615
|
+
marginBottom: space.s12,
|
|
616
|
+
"& p": {
|
|
617
|
+
margin: space.s12,
|
|
618
|
+
},
|
|
619
|
+
},
|
|
620
|
+
"& div.fibery-important": {
|
|
621
|
+
...textStyles.important,
|
|
622
|
+
marginBottom: space.s12,
|
|
623
|
+
"& p": {
|
|
624
|
+
margin: space.s12,
|
|
625
|
+
},
|
|
626
|
+
},
|
|
627
|
+
"& > *:first-child": {
|
|
628
|
+
marginTop: 0,
|
|
629
|
+
},
|
|
630
|
+
"& > *:last-child": {
|
|
631
|
+
marginBottom: 0,
|
|
632
|
+
},
|
|
633
|
+
"& > .fibery-rich-text-image-block:last-child": {
|
|
634
|
+
marginBottom: space.s2,
|
|
635
|
+
},
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
/*
|
|
639
|
+
Used in Whiteboard editor
|
|
640
|
+
*/
|
|
641
|
+
const whiteboardHtmlStyles = {
|
|
642
|
+
"& p": {
|
|
643
|
+
marginBottom: "1em",
|
|
644
|
+
paddingTop: 0,
|
|
645
|
+
paddingBottom: 0,
|
|
646
|
+
lineHeight: "1.2em",
|
|
647
|
+
minWidth: space.s1,
|
|
648
|
+
fontFamily: "inherit",
|
|
649
|
+
fontSize: "inherit",
|
|
650
|
+
},
|
|
651
|
+
"& a.prosemirror-link": {
|
|
652
|
+
color: "currentColor",
|
|
653
|
+
borderBottom: "1.5px solid currentColor",
|
|
654
|
+
textDecoration: "none",
|
|
655
|
+
cursor: "pointer",
|
|
656
|
+
transition: "none",
|
|
657
|
+
"&:hover": {
|
|
658
|
+
color: "currentColor",
|
|
659
|
+
borderBottom: "1.5px solid currentColor",
|
|
660
|
+
textDecoration: "none",
|
|
661
|
+
cursor: "pointer",
|
|
662
|
+
transition: "none",
|
|
663
|
+
},
|
|
664
|
+
},
|
|
665
|
+
"& b, & strong": {
|
|
666
|
+
fontWeight: fontWeight.bold,
|
|
667
|
+
},
|
|
668
|
+
"& > *:first-child": {
|
|
669
|
+
marginTop: 0,
|
|
670
|
+
},
|
|
671
|
+
"& > *:last-child": {
|
|
672
|
+
marginBottom: 0,
|
|
673
|
+
},
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
export const htmlStylesClass = css`
|
|
677
|
+
${{...htmlStyles}}
|
|
678
|
+
`;
|
|
679
|
+
|
|
680
|
+
export const smallHtmlStylesClass = css`
|
|
681
|
+
${{
|
|
682
|
+
...smallHtmlStyles,
|
|
683
|
+
"& > *:last-child": {
|
|
684
|
+
marginBottom: 0,
|
|
685
|
+
},
|
|
686
|
+
"& .empty-node::before": {
|
|
687
|
+
...textStyles.regular,
|
|
688
|
+
...emptyNodeStyle,
|
|
689
|
+
},
|
|
690
|
+
}}
|
|
691
|
+
`;
|
|
692
|
+
|
|
693
|
+
export const chatHtmlStylesClass = css`
|
|
694
|
+
${{
|
|
695
|
+
...chatHtmlStyles,
|
|
696
|
+
"& > *:last-child": {
|
|
697
|
+
marginBottom: 0,
|
|
698
|
+
},
|
|
699
|
+
"& .empty-node::before": {
|
|
700
|
+
...textStyles.regular,
|
|
701
|
+
...emptyNodeStyle,
|
|
702
|
+
},
|
|
703
|
+
}}
|
|
704
|
+
`;
|
|
705
|
+
|
|
706
|
+
export const regularRichEditorHTMLStyles = css`
|
|
707
|
+
${{
|
|
708
|
+
...htmlStyles,
|
|
709
|
+
"& .empty-node::before": {
|
|
710
|
+
...textStyles.big,
|
|
711
|
+
...emptyNodeStyle,
|
|
712
|
+
},
|
|
713
|
+
}}
|
|
714
|
+
`;
|
|
715
|
+
|
|
716
|
+
export const whiteboardRichEditorHTMLStyles = css`
|
|
717
|
+
${{
|
|
718
|
+
...whiteboardHtmlStyles,
|
|
719
|
+
}}
|
|
720
|
+
`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
// This icon file is generated automatically.
|
|
3
|
+
|
|
4
|
+
import { IconDefinition } from '../types';
|
|
5
|
+
|
|
6
|
+
const AccessTemplate: IconDefinition = {"icon":{"type":"root","children":[{"type":"element","tagName":"svg","properties":{"viewBox":"0 0 20 20"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","clipRule":"evenodd","d":"M13.187 2.24a8.334 8.334 0 0 1 2.705 1.868A8.334 8.334 0 1 1 4.108 15.892 8.333 8.333 0 0 1 13.187 2.24Zm-2.53 14.4a6.667 6.667 0 0 0 4.06-1.923A6.625 6.625 0 0 0 16.667 10a6.667 6.667 0 1 0-6.01 6.64ZM7.5 8.916a2.417 2.417 0 1 1 3.167 2.298v1.535a.75.75 0 0 1-1.5 0v-1.535A2.418 2.418 0 0 1 7.5 8.917ZM9.917 8a.917.917 0 1 0 0 1.833.917.917 0 0 0 0-1.833Z"},"children":[]}],"metadata":""}]},"name":"access-template"};
|
|
7
|
+
|
|
8
|
+
export default AccessTemplate;
|