@fibery/ui-kit 4.1.0 → 4.3.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 +20 -0
- package/package.json +9 -13
- package/src/antd/ant-upload.tsx +13 -13
- package/src/antd/auto-complete.tsx +10 -10
- package/src/antd/input-number.tsx +59 -49
- package/src/antd/input.tsx +1 -1
- package/src/antd/styles.ts +28 -22
- package/src/antd/tabs.tsx +28 -28
- package/src/apca.lc-low.test.ts +1 -3
- package/src/apca.test.ts +42 -43
- package/src/apca.ts +38 -39
- package/src/app-icon-with-fallback.tsx +6 -2
- package/src/avatar-colors.ts +71 -0
- package/src/avatar.tsx +2 -10
- package/src/banner/banner.tsx +1 -2
- package/src/box.tsx +26 -16
- package/src/button/back-button.tsx +2 -2
- package/src/button/make-button-colors.ts +13 -13
- package/src/button/select-button.tsx +2 -2
- package/src/canvas-colors.ts +71 -118
- package/src/checkbox.tsx +3 -3
- package/src/collapsible-section.tsx +3 -3
- package/src/color-filter.test.ts +13 -0
- package/src/color-filter.ts +27 -4
- package/src/color-utils.ts +9 -2
- package/src/command-menu/nested-command-menu.tsx +2 -2
- package/src/comment.tsx +2 -2
- package/src/count-badge.tsx +3 -11
- package/src/date-picker/date-range-picker-popup-content.tsx +3 -2
- package/src/date-picker/date-range-picker.tsx +23 -1
- package/src/date-picker/relative-date-picker.tsx +3 -2
- package/src/date-picker/single-date-picker-popup-content.tsx +3 -2
- package/src/date-picker/single-date-picker.tsx +19 -2
- package/src/design-system/alpha-coefficients.ts +235 -0
- package/src/design-system/alpha.ts +10 -1
- package/src/design-system/colors-enum.dark.neutral.test.ts +168 -168
- package/src/design-system/colors-enum.dark.warm.test.ts +168 -168
- package/src/design-system/colors-enum.light.neutral.test.ts +168 -168
- package/src/design-system/colors-enum.light.warm.test.ts +168 -168
- package/src/design-system/colors.ts +279 -182
- package/src/design-system/def.ts +1 -1
- package/src/design-system/fns.avatarPlaceholder.dark.neutral.test.ts +52 -0
- package/src/design-system/fns.avatarPlaceholder.dark.warm.test.ts +52 -0
- package/src/design-system/fns.avatarPlaceholder.light.neutral.test.ts +52 -0
- package/src/design-system/fns.avatarPlaceholder.light.warm.test.ts +52 -0
- package/src/design-system/fns.enum.ts +2 -0
- package/src/design-system/fns.icon.ts +1 -1
- package/src/design-system/fns.ts +43 -13
- package/src/design-system/theme.test.ts +4 -6
- package/src/design-system/theme.ts +22 -13
- package/src/design-system/vars.test.ts +2 -2
- package/src/design-system/vars.ts +3 -3
- package/src/design-system.ts +3 -1
- package/src/dom-utils.ts +5 -12
- package/src/dot.tsx +1 -0
- package/src/double-apply.ts +2 -2
- package/src/download-file.ts +36 -0
- package/src/dropdown-menu/index.tsx +0 -1
- package/src/emoji-picker/primitives/footer.tsx +1 -1
- package/src/emoji-picker/utils/frequently.ts +1 -1
- package/src/favorites-icon.tsx +2 -2
- package/src/fibermoji-placeholder.tsx +23 -56
- package/src/fibery-brand-logo.tsx +82 -0
- package/src/field-container.tsx +2 -2
- package/src/field-type-icon.tsx +18 -18
- package/src/file-item/file-menu-items.tsx +30 -12
- package/src/file-item/file-preview-actions.tsx +53 -12
- package/src/file-item/share-file.ts +53 -0
- package/src/file-item.tsx +9 -9
- package/src/format-date-from-now.ts +10 -5
- package/src/header-layout.tsx +41 -24
- package/src/highlight-colors.test.ts +1 -1
- package/src/highlight-colors.ts +27 -0
- package/src/html-styles.ts +0 -1
- package/src/icons/ast/appearance-auto.ts +1 -1
- package/src/icons/ast/architect.ts +12 -0
- package/src/icons/ast/arrow-back.ts +12 -0
- package/src/icons/ast/arrow-down.ts +12 -0
- package/src/icons/ast/{send-arrow.ts → arrow-send.ts} +3 -3
- package/src/icons/ast/arrow-up.ts +12 -0
- package/src/icons/ast/avatar.ts +12 -0
- package/src/icons/ast/backlog.ts +12 -0
- package/src/icons/ast/{check-circle-filled.ts → circle-check-filled.ts} +3 -3
- package/src/icons/ast/{check-circle.ts → circle-check.ts} +3 -3
- package/src/icons/ast/{error-circle-filled.ts → circle-cross-filled.ts} +3 -3
- package/src/icons/ast/circle-cross.ts +12 -0
- package/src/icons/ast/{info-circle-filled.ts → circle-info-filled.ts} +3 -3
- package/src/icons/ast/{info-circle.ts → circle-info.ts} +3 -3
- package/src/icons/ast/circle-pause.ts +12 -0
- package/src/icons/ast/circle-play.ts +12 -0
- package/src/icons/ast/comments.ts +12 -0
- package/src/icons/ast/credits-filled.ts +1 -1
- package/src/icons/ast/{add-database.ts → database-add.ts} +3 -3
- package/src/icons/ast/database-outline.ts +12 -0
- package/src/icons/ast/eye-off.ts +12 -0
- package/src/icons/ast/favorites-filled.ts +12 -0
- package/src/icons/ast/{switch-to-mention.ts → field-units-large.ts} +3 -3
- package/src/icons/ast/files.ts +12 -0
- package/src/icons/ast/{smart-folder.ts → folder-smart.ts} +3 -3
- package/src/icons/ast/fullscreen-mode-off.ts +12 -0
- package/src/icons/ast/fullscreen-mode-on.ts +1 -1
- package/src/icons/ast/{add-group.ts → group-add.ts} +3 -3
- package/src/icons/ast/{image-xmark.ts → image-error.ts} +3 -3
- package/src/icons/ast/index.tsx +132 -215
- package/src/icons/ast/{add-integration.ts → integration-add.ts} +3 -3
- package/src/icons/ast/integration-discourse.ts +12 -0
- package/src/icons/ast/integration-fibery.ts +12 -0
- package/src/icons/ast/integration-figma.ts +12 -0
- package/src/icons/ast/integration-github.ts +12 -0
- package/src/icons/ast/integration-gitlab.ts +12 -0
- package/src/icons/ast/integration-google-drive.ts +12 -0
- package/src/icons/ast/integration-google-map.ts +12 -0
- package/src/icons/ast/integration-intercom.ts +12 -0
- package/src/icons/ast/integration-jira.ts +12 -0
- package/src/icons/ast/integration-loom.ts +12 -0
- package/src/icons/ast/integration-miro.ts +12 -0
- package/src/icons/ast/integration-mixpanel.ts +12 -0
- package/src/icons/ast/integration-slack.ts +12 -0
- package/src/icons/ast/{suggest-integration.ts → integration-suggest.ts} +3 -3
- package/src/icons/ast/integration-twitter.ts +12 -0
- package/src/icons/ast/integration-unsplash.ts +12 -0
- package/src/icons/ast/integration-youtube.ts +12 -0
- package/src/icons/ast/integration-zendesk.ts +12 -0
- package/src/icons/ast/limits.ts +12 -0
- package/src/icons/ast/lock-filled.ts +12 -0
- package/src/icons/ast/lock.ts +1 -1
- package/src/icons/ast/move-down.ts +12 -0
- package/src/icons/ast/move-up.ts +12 -0
- package/src/icons/ast/open-in-panel.ts +12 -0
- package/src/icons/ast/open-link.ts +12 -0
- package/src/icons/ast/people-all.ts +12 -0
- package/src/icons/ast/people-edit.ts +12 -0
- package/src/icons/ast/people-group-remove.ts +12 -0
- package/src/icons/ast/people-group.ts +12 -0
- package/src/icons/ast/{invite-people.ts → people-invite.ts} +3 -3
- package/src/icons/ast/{remove-people.ts → people-remove.ts} +3 -3
- package/src/icons/ast/people-role.ts +12 -0
- package/src/icons/ast/people-x.ts +12 -0
- package/src/icons/ast/plus.ts +12 -0
- package/src/icons/ast/preferences.ts +12 -0
- package/src/icons/ast/propagate.ts +12 -0
- package/src/icons/ast/{add-reactions.ts → reactions-add.ts} +3 -3
- package/src/icons/ast/redo.ts +12 -0
- package/src/icons/ast/references.ts +12 -0
- package/src/icons/ast/richeditor-block-callout.ts +1 -1
- package/src/icons/ast/richeditor-block-code.ts +1 -1
- package/src/icons/ast/richeditor-block-embed.ts +1 -1
- package/src/icons/ast/richeditor-block-entity.ts +1 -1
- package/src/icons/ast/richeditor-block-file.ts +1 -1
- package/src/icons/ast/richeditor-block-h1.ts +1 -1
- package/src/icons/ast/richeditor-block-h2.ts +1 -1
- package/src/icons/ast/richeditor-block-h3.ts +1 -1
- package/src/icons/ast/richeditor-block-h4.ts +1 -1
- package/src/icons/ast/richeditor-block-mention.ts +1 -1
- package/src/icons/ast/richeditor-block-paragraph.ts +1 -1
- package/src/icons/ast/richeditor-block-quote.ts +1 -1
- package/src/icons/ast/richeditor-checklist-create.ts +1 -1
- package/src/icons/ast/richeditor-image-align-center.ts +1 -1
- package/src/icons/ast/richeditor-image-align-left.ts +1 -1
- package/src/icons/ast/richeditor-image-align-right.ts +1 -1
- package/src/icons/ast/richeditor-image.ts +12 -0
- package/src/icons/ast/richeditor-linkedhighlight-create.ts +1 -1
- package/src/icons/ast/richeditor-list-bullet.ts +1 -1
- package/src/icons/ast/richeditor-list-indent.ts +1 -1
- package/src/icons/ast/richeditor-list-ordered.ts +1 -1
- package/src/icons/ast/richeditor-list-unindent.ts +1 -1
- package/src/icons/ast/richeditor-mark-code.ts +1 -1
- package/src/icons/ast/richeditor-mark-em.ts +1 -1
- package/src/icons/ast/richeditor-mark-highlight.ts +1 -1
- package/src/icons/ast/richeditor-mark-strike.ts +1 -1
- package/src/icons/ast/richeditor-mark-strong.ts +1 -1
- package/src/icons/ast/richeditor-mark-text-background-color.ts +1 -1
- package/src/icons/ast/richeditor-mark-underline.ts +1 -1
- package/src/icons/ast/richeditor-table-create.ts +1 -1
- package/src/icons/ast/richeditor-video-upload.ts +1 -1
- package/src/icons/ast/{bolt.ts → rule.ts} +3 -3
- package/src/icons/ast/simple-compass.ts +1 -1
- package/src/icons/ast/space-add.ts +12 -0
- package/src/icons/ast/{move-space.ts → space-move.ts} +3 -3
- package/src/icons/ast/type-button.ts +1 -1
- package/src/icons/ast/type-checkbox.ts +1 -1
- package/src/icons/ast/type-date.ts +1 -1
- package/src/icons/ast/type-email.ts +1 -1
- package/src/icons/ast/type-emoji.ts +1 -1
- package/src/icons/ast/type-formula.ts +1 -1
- package/src/icons/ast/type-location.ts +1 -1
- package/src/icons/ast/type-lookup.ts +1 -1
- package/src/icons/ast/type-money.ts +1 -1
- package/src/icons/ast/type-multi-select.ts +1 -1
- package/src/icons/ast/type-number.ts +1 -1
- package/src/icons/ast/type-percent.ts +1 -1
- package/src/icons/ast/type-phone.ts +1 -1
- package/src/icons/ast/type-relation.ts +1 -1
- package/src/icons/ast/type-rich-text.ts +1 -1
- package/src/icons/ast/type-single-select.ts +1 -1
- package/src/icons/ast/type-text.ts +1 -1
- package/src/icons/ast/undo.ts +12 -0
- package/src/icons/ast/units-avatar.ts +1 -1
- package/src/icons/ast/units-collection.ts +1 -1
- package/src/icons/ast/units-counter.ts +1 -1
- package/src/icons/ast/units-date.ts +1 -1
- package/src/icons/ast/units-field-icon-button.ts +1 -1
- package/src/icons/ast/units-field.ts +1 -1
- package/src/icons/ast/units-input.ts +1 -1
- package/src/icons/ast/units-normal.ts +12 -0
- package/src/icons/ast/units-progress-bar.ts +1 -1
- package/src/icons/ast/units-rich-text.ts +1 -1
- package/src/icons/ast/units-snippet.ts +1 -1
- package/src/icons/ast/unlock.ts +12 -0
- package/src/icons/ast/{clear-value.ts → value-clear.ts} +3 -3
- package/src/icons/ast/view-app.ts +12 -0
- package/src/icons/ast/workflow.ts +12 -0
- package/src/icons/react/{anthropic.tsx → architect.tsx} +5 -5
- package/src/icons/react/arrow-back.tsx +18 -0
- package/src/icons/react/arrow-down.tsx +18 -0
- package/src/icons/react/arrow-send.tsx +18 -0
- package/src/icons/react/{app-wiki.tsx → arrow-up.tsx} +5 -5
- package/src/icons/react/avatar.tsx +18 -0
- package/src/icons/react/backlog.tsx +18 -0
- package/src/icons/react/circle-check-filled.tsx +18 -0
- package/src/icons/react/{add-database.tsx → circle-check.tsx} +5 -5
- package/src/icons/react/circle-cross-filled.tsx +18 -0
- package/src/icons/react/circle-cross.tsx +18 -0
- package/src/icons/react/circle-info-filled.tsx +18 -0
- package/src/icons/react/circle-info.tsx +18 -0
- package/src/icons/react/circle-pause.tsx +18 -0
- package/src/icons/react/circle-play.tsx +18 -0
- package/src/icons/react/comments.tsx +18 -0
- package/src/icons/react/database-add.tsx +18 -0
- package/src/icons/react/database-outline.tsx +18 -0
- package/src/icons/react/{chat-ai.tsx → eye-off.tsx} +5 -5
- package/src/icons/react/favorites-filled.tsx +18 -0
- package/src/icons/react/field-units-large.tsx +18 -0
- package/src/icons/react/{apple.tsx → files.tsx} +5 -5
- package/src/icons/react/folder-smart.tsx +18 -0
- package/src/icons/react/fullscreen-mode-off.tsx +18 -0
- package/src/icons/react/{app-store.tsx → group-add.tsx} +5 -5
- package/src/icons/react/image-error.tsx +18 -0
- package/src/icons/react/index.tsx +132 -215
- package/src/icons/react/{add-integration.tsx → integration-add.tsx} +5 -5
- package/src/icons/react/integration-discourse.tsx +18 -0
- package/src/icons/react/integration-fibery.tsx +18 -0
- package/src/icons/react/integration-figma.tsx +18 -0
- package/src/icons/react/integration-github.tsx +18 -0
- package/src/icons/react/integration-gitlab.tsx +18 -0
- package/src/icons/react/integration-google-drive.tsx +18 -0
- package/src/icons/react/integration-google-map.tsx +18 -0
- package/src/icons/react/{automations-disabled.tsx → integration-intercom.tsx} +5 -5
- package/src/icons/react/integration-jira.tsx +18 -0
- package/src/icons/react/integration-loom.tsx +18 -0
- package/src/icons/react/integration-miro.tsx +18 -0
- package/src/icons/react/{extension-references.tsx → integration-mixpanel.tsx} +5 -5
- package/src/icons/react/integration-slack.tsx +18 -0
- package/src/icons/react/integration-suggest.tsx +18 -0
- package/src/icons/react/integration-twitter.tsx +18 -0
- package/src/icons/react/integration-unsplash.tsx +18 -0
- package/src/icons/react/integration-youtube.tsx +18 -0
- package/src/icons/react/integration-zendesk.tsx +18 -0
- package/src/icons/react/{notifications.tsx → limits.tsx} +5 -5
- package/src/icons/react/lock-filled.tsx +18 -0
- package/src/icons/react/{add-group.tsx → move-down.tsx} +5 -5
- package/src/icons/react/move-up.tsx +18 -0
- package/src/icons/react/open-in-panel.tsx +18 -0
- package/src/icons/react/{ai-search.tsx → open-link.tsx} +5 -5
- package/src/icons/react/people-all.tsx +18 -0
- package/src/icons/react/people-edit.tsx +18 -0
- package/src/icons/react/people-group-remove.tsx +18 -0
- package/src/icons/react/people-group.tsx +18 -0
- package/src/icons/react/{add-reactions.tsx → people-invite.tsx} +5 -5
- package/src/icons/react/people-remove.tsx +18 -0
- package/src/icons/react/people-role.tsx +18 -0
- package/src/icons/react/people-x.tsx +18 -0
- package/src/icons/react/{chat.tsx → plus.tsx} +5 -5
- package/src/icons/react/preferences.tsx +18 -0
- package/src/icons/react/propagate.tsx +18 -0
- package/src/icons/react/reactions-add.tsx +18 -0
- package/src/icons/react/{csv.tsx → redo.tsx} +5 -5
- package/src/icons/react/references.tsx +18 -0
- package/src/icons/react/richeditor-block-callout.tsx +1 -1
- package/src/icons/react/richeditor-block-code.tsx +1 -1
- package/src/icons/react/richeditor-block-embed.tsx +1 -1
- package/src/icons/react/richeditor-block-entity.tsx +1 -1
- package/src/icons/react/richeditor-block-file.tsx +1 -1
- package/src/icons/react/richeditor-block-h1.tsx +1 -1
- package/src/icons/react/richeditor-block-h2.tsx +1 -1
- package/src/icons/react/richeditor-block-h3.tsx +1 -1
- package/src/icons/react/richeditor-block-h4.tsx +1 -1
- package/src/icons/react/richeditor-block-mention.tsx +1 -1
- package/src/icons/react/richeditor-block-paragraph.tsx +1 -1
- package/src/icons/react/richeditor-block-quote.tsx +1 -1
- package/src/icons/react/richeditor-checklist-create.tsx +1 -1
- package/src/icons/react/richeditor-image-align-center.tsx +1 -1
- package/src/icons/react/richeditor-image-align-left.tsx +1 -1
- package/src/icons/react/richeditor-image-align-right.tsx +1 -1
- package/src/icons/react/richeditor-image.tsx +18 -0
- package/src/icons/react/richeditor-linkedhighlight-create.tsx +1 -1
- package/src/icons/react/richeditor-list-bullet.tsx +1 -1
- package/src/icons/react/richeditor-list-indent.tsx +1 -1
- package/src/icons/react/richeditor-list-ordered.tsx +1 -1
- package/src/icons/react/richeditor-list-unindent.tsx +1 -1
- package/src/icons/react/richeditor-mark-code.tsx +1 -1
- package/src/icons/react/richeditor-mark-em.tsx +1 -1
- package/src/icons/react/richeditor-mark-highlight.tsx +1 -1
- package/src/icons/react/richeditor-mark-strike.tsx +1 -1
- package/src/icons/react/richeditor-mark-strong.tsx +1 -1
- package/src/icons/react/richeditor-mark-text-background-color.tsx +1 -1
- package/src/icons/react/richeditor-mark-underline.tsx +1 -1
- package/src/icons/react/richeditor-table-create.tsx +1 -1
- package/src/icons/react/richeditor-video-upload.tsx +1 -1
- package/src/icons/react/{back.tsx → rule.tsx} +5 -5
- package/src/icons/react/{ai-avatar.tsx → space-add.tsx} +5 -5
- package/src/icons/react/space-move.tsx +18 -0
- package/src/icons/react/type-button.tsx +1 -1
- package/src/icons/react/type-checkbox.tsx +1 -1
- package/src/icons/react/type-date.tsx +1 -1
- package/src/icons/react/type-email.tsx +1 -1
- package/src/icons/react/type-emoji.tsx +1 -1
- package/src/icons/react/type-formula.tsx +1 -1
- package/src/icons/react/type-location.tsx +1 -1
- package/src/icons/react/type-lookup.tsx +1 -1
- package/src/icons/react/type-money.tsx +1 -1
- package/src/icons/react/type-multi-select.tsx +1 -1
- package/src/icons/react/type-number.tsx +1 -1
- package/src/icons/react/type-percent.tsx +1 -1
- package/src/icons/react/type-phone.tsx +1 -1
- package/src/icons/react/type-relation.tsx +1 -1
- package/src/icons/react/type-rich-text.tsx +1 -1
- package/src/icons/react/type-single-select.tsx +1 -1
- package/src/icons/react/type-text.tsx +1 -1
- package/src/icons/react/{bolt.tsx → undo.tsx} +5 -5
- package/src/icons/react/units-avatar.tsx +1 -1
- package/src/icons/react/units-collection.tsx +1 -1
- package/src/icons/react/units-counter.tsx +1 -1
- package/src/icons/react/units-date.tsx +1 -1
- package/src/icons/react/units-field-icon-button.tsx +1 -1
- package/src/icons/react/units-field.tsx +1 -1
- package/src/icons/react/units-input.tsx +1 -1
- package/src/icons/react/units-normal.tsx +18 -0
- package/src/icons/react/units-progress-bar.tsx +1 -1
- package/src/icons/react/units-rich-text.tsx +1 -1
- package/src/icons/react/units-snippet.tsx +1 -1
- package/src/icons/react/unlock.tsx +18 -0
- package/src/icons/react/value-clear.tsx +18 -0
- package/src/icons/react/view-app.tsx +18 -0
- package/src/icons/react/workflow.tsx +18 -0
- package/src/icons/svg/appearance-auto.svg +1 -1
- package/src/icons/svg/{arrow-bottom.svg → arrow-down.svg} +1 -1
- package/src/icons/svg/arrow-forward.svg +1 -1
- package/src/icons/svg/arrow-left.svg +1 -1
- package/src/icons/svg/arrow-right.svg +1 -1
- package/src/icons/svg/{arrow-top.svg → arrow-up.svg} +1 -1
- package/src/icons/svg/asterisk.svg +2 -2
- package/src/icons/svg/{automations-error.svg → circle-cross.svg} +1 -1
- package/src/icons/svg/{automations-not-started.svg → circle-pause.svg} +1 -1
- package/src/icons/svg/{automations-in-progress.svg → circle-play.svg} +1 -1
- package/src/icons/svg/collapse-all-horizontal.svg +1 -1
- package/src/icons/svg/collapse-all.svg +1 -1
- package/src/icons/svg/credits-filled.svg +1 -1
- package/src/icons/svg/entity-create.svg +1 -1
- package/src/icons/svg/expand-all-horizontal.svg +1 -1
- package/src/icons/svg/fullscreen-mode-on.svg +2 -3
- package/src/icons/svg/go-to.svg +1 -1
- package/src/icons/svg/integration-unsplash.svg +3 -0
- package/src/icons/svg/layout-double.svg +1 -1
- package/src/icons/svg/layout-single.svg +1 -1
- package/src/icons/svg/limits.svg +3 -0
- package/src/icons/svg/lock-filled.svg +4 -0
- package/src/icons/svg/lock.svg +5 -4
- package/src/icons/svg/page-regular-mode.svg +3 -3
- package/src/icons/svg/page-wide-mode.svg +3 -3
- package/src/icons/svg/people-edit.svg +4 -0
- package/src/icons/svg/{user-group.svg → people-group.svg} +1 -1
- package/src/icons/svg/{user-role.svg → people-role.svg} +1 -1
- package/src/icons/svg/{richeditor/list/indent.svg → richeditor-list-indent.svg} +1 -1
- package/src/icons/svg/richeditor-mark-code.svg +5 -0
- package/src/icons/svg/richeditor-mark-em.svg +3 -0
- package/src/icons/svg/richeditor-mark-highlight.svg +3 -0
- package/src/icons/svg/richeditor-mark-strike.svg +3 -0
- package/src/icons/svg/richeditor-mark-strong.svg +3 -0
- package/src/icons/svg/simple-compass.svg +2 -2
- package/src/icons/svg/space-app.svg +1 -1
- package/src/icons/svg/space-generate.svg +1 -1
- package/src/icons/svg/space-scratch.svg +1 -1
- package/src/icons/svg/space-template.svg +1 -1
- package/src/icons/svg/value-edit.svg +1 -1
- package/src/icons/svg/view-app.svg +6 -0
- package/src/icons/svg/view-gantt.svg +3 -3
- package/src/icons/svg/warning-triangle-filled.svg +1 -1
- package/src/images-gallery/images-gallery.tsx +0 -1
- package/src/images-gallery/slide-buttons.tsx +52 -19
- package/src/is-in-popup.ts +0 -3
- package/src/loading-sausage.tsx +3 -3
- package/src/mobile-drawer.tsx +104 -0
- package/src/number-input/types.ts +1 -1
- package/src/palettes/common.ts +3 -3
- package/src/palettes/diff-colors.test.ts +135 -1
- package/src/palettes/diff-colors.ts +135 -1
- package/src/palettes/inspect.canvas-colors.test.ts +63 -63
- package/src/palettes/inspect.defs.colors.neutral-arch.test.ts +290 -90
- package/src/palettes/inspect.defs.colors.neutral-user.test.ts +290 -90
- package/src/palettes/inspect.defs.colors.warm-arch.test.ts +290 -90
- package/src/palettes/inspect.defs.colors.warm-user.test.ts +290 -90
- package/src/palettes/show-colors.test.ts +5 -4
- package/src/palettes/testkit.test.ts +6 -0
- package/src/palettes/testkit.ts +81 -23
- package/src/phone.ts +27 -0
- package/src/popover/index.tsx +20 -11
- package/src/popover/popup-modifiers-context.ts +1 -2
- package/src/reactions/reaction-picker.tsx +3 -3
- package/src/rich-text-embed-error.tsx +2 -2
- package/src/root-theme-provider.test.tsx +2 -3
- package/src/select/components/option.tsx +0 -1
- package/src/select/index.tsx +1 -0
- package/src/select/select-in-popover.tsx +42 -28
- package/src/select/select.tsx +2 -0
- package/src/select/util.ts +1 -1
- package/src/thematic.tsx +10 -10
- package/src/theme-provider.test.tsx +19 -19
- package/src/theme-provider.tsx +3 -7
- package/src/theme-settings-core.ts +118 -0
- package/src/theme-settings.ts +2 -117
- package/src/theme-snapshots.test.ts +6 -7
- package/src/theming.build.ts +21 -15
- package/src/theming.generated.css +2162 -1974
- package/src/theming.generated.ts +2701 -2472
- package/src/toast/toast.tsx +1 -1
- package/src/toggle-button/round-toggle-button.tsx +28 -4
- package/src/toggle-button/toggle-button.tsx +69 -23
- package/src/toggle-on-off.tsx +0 -9
- package/src/use-is-phone.tsx +3 -27
- package/vitest.config.ts +1 -0
- package/src/icons/ast/ai-avatar.ts +0 -12
- package/src/icons/ast/ai-search.ts +0 -12
- package/src/icons/ast/anthropic.ts +0 -12
- package/src/icons/ast/app-details.ts +0 -12
- package/src/icons/ast/app-store-one-color.ts +0 -12
- package/src/icons/ast/app-store.ts +0 -12
- package/src/icons/ast/app-templates.ts +0 -12
- package/src/icons/ast/app-webhooks.ts +0 -12
- package/src/icons/ast/app-wiki.ts +0 -12
- package/src/icons/ast/apple.ts +0 -12
- package/src/icons/ast/arrow-bottom.ts +0 -12
- package/src/icons/ast/arrow-top.ts +0 -12
- package/src/icons/ast/automations-cancelled.ts +0 -12
- package/src/icons/ast/automations-disabled.ts +0 -12
- package/src/icons/ast/automations-error.ts +0 -12
- package/src/icons/ast/automations-in-progress.ts +0 -12
- package/src/icons/ast/automations-not-started.ts +0 -12
- package/src/icons/ast/automations-success.ts +0 -12
- package/src/icons/ast/back.ts +0 -12
- package/src/icons/ast/backlog-icon.ts +0 -12
- package/src/icons/ast/batch-actions-icon.ts +0 -12
- package/src/icons/ast/bell-filled.ts +0 -12
- package/src/icons/ast/chat-ai.ts +0 -12
- package/src/icons/ast/chat.ts +0 -12
- package/src/icons/ast/clean.ts +0 -12
- package/src/icons/ast/color-coding-filled.ts +0 -12
- package/src/icons/ast/create.ts +0 -12
- package/src/icons/ast/cross-circle.ts +0 -12
- package/src/icons/ast/csv.ts +0 -12
- package/src/icons/ast/database-off.ts +0 -12
- package/src/icons/ast/database-stroke.ts +0 -12
- package/src/icons/ast/demo.ts +0 -12
- package/src/icons/ast/dependency.ts +0 -12
- package/src/icons/ast/dividers.ts +0 -12
- package/src/icons/ast/document.ts +0 -12
- package/src/icons/ast/double-arrow-left.ts +0 -12
- package/src/icons/ast/double-arrow-right.ts +0 -12
- package/src/icons/ast/double-line.ts +0 -12
- package/src/icons/ast/drag-block-handle-single.ts +0 -12
- package/src/icons/ast/edit-value.ts +0 -12
- package/src/icons/ast/extension-assignments.ts +0 -12
- package/src/icons/ast/extension-avatar.ts +0 -12
- package/src/icons/ast/extension-comments.ts +0 -12
- package/src/icons/ast/extension-files.ts +0 -12
- package/src/icons/ast/extension-references.ts +0 -12
- package/src/icons/ast/extension-workflow.ts +0 -12
- package/src/icons/ast/favorites-checked.ts +0 -12
- package/src/icons/ast/fibery-desktop-app.ts +0 -12
- package/src/icons/ast/field-unit.ts +0 -12
- package/src/icons/ast/figma.ts +0 -12
- package/src/icons/ast/file-broken.ts +0 -12
- package/src/icons/ast/fullscreen-mode-off-icon.ts +0 -12
- package/src/icons/ast/fullscreen-mode-on-icon.ts +0 -12
- package/src/icons/ast/github.ts +0 -12
- package/src/icons/ast/gitlab.ts +0 -12
- package/src/icons/ast/globe.ts +0 -12
- package/src/icons/ast/google-drive.ts +0 -12
- package/src/icons/ast/google-map.ts +0 -12
- package/src/icons/ast/hide.ts +0 -12
- package/src/icons/ast/integrations-integration-discourse-color.ts +0 -12
- package/src/icons/ast/integrations-integration-intercom-color.ts +0 -12
- package/src/icons/ast/integrations-integration-slack-color.ts +0 -12
- package/src/icons/ast/integrations-integration-zendesk-color.ts +0 -12
- package/src/icons/ast/intercom.ts +0 -12
- package/src/icons/ast/jira.ts +0 -12
- package/src/icons/ast/left-panel.ts +0 -12
- package/src/icons/ast/level-plus.ts +0 -12
- package/src/icons/ast/lock-outline.ts +0 -12
- package/src/icons/ast/loom.ts +0 -12
- package/src/icons/ast/loupe-zoom.ts +0 -12
- package/src/icons/ast/many-people.ts +0 -12
- package/src/icons/ast/message-plus-square.ts +0 -12
- package/src/icons/ast/miro.ts +0 -12
- package/src/icons/ast/mixpanel.ts +0 -12
- package/src/icons/ast/move-bottom.ts +0 -12
- package/src/icons/ast/move-top.ts +0 -12
- package/src/icons/ast/network-add.ts +0 -12
- package/src/icons/ast/network.ts +0 -12
- package/src/icons/ast/notifications.ts +0 -12
- package/src/icons/ast/open-ai.ts +0 -12
- package/src/icons/ast/open-as-page.ts +0 -12
- package/src/icons/ast/popup.ts +0 -12
- package/src/icons/ast/posts.ts +0 -12
- package/src/icons/ast/quick-filter-personal.ts +0 -12
- package/src/icons/ast/quick-filter.ts +0 -12
- package/src/icons/ast/reply.ts +0 -12
- package/src/icons/ast/restore.ts +0 -12
- package/src/icons/ast/richeditor-actions-more.ts +0 -12
- package/src/icons/ast/richeditor-comment-create.ts +0 -12
- package/src/icons/ast/richeditor-entity-link-create.ts +0 -12
- package/src/icons/ast/richeditor-history-redo.ts +0 -12
- package/src/icons/ast/richeditor-history-undo.ts +0 -12
- package/src/icons/ast/richeditor-image-upload.ts +0 -12
- package/src/icons/ast/richeditor-image-wrap-center.ts +0 -12
- package/src/icons/ast/richeditor-image-wrap-left.ts +0 -12
- package/src/icons/ast/richeditor-image-wrap-right.ts +0 -12
- package/src/icons/ast/richeditor-image-zoom.ts +0 -12
- package/src/icons/ast/richeditor-link-create.ts +0 -12
- package/src/icons/ast/richeditor-open-link.ts +0 -12
- package/src/icons/ast/richeditor-unlink.ts +0 -12
- package/src/icons/ast/right-panel.ts +0 -12
- package/src/icons/ast/rule-scheduled.ts +0 -12
- package/src/icons/ast/settings-off.ts +0 -12
- package/src/icons/ast/shared.ts +0 -12
- package/src/icons/ast/sidebar-fields-opened.ts +0 -12
- package/src/icons/ast/sidebar-fields.ts +0 -12
- package/src/icons/ast/sidebar.ts +0 -12
- package/src/icons/ast/slack-icon.ts +0 -12
- package/src/icons/ast/slack.ts +0 -12
- package/src/icons/ast/slide-menu-close.ts +0 -12
- package/src/icons/ast/slide-menu-open.ts +0 -12
- package/src/icons/ast/sort-on-bottom.ts +0 -12
- package/src/icons/ast/sort-on-top.ts +0 -12
- package/src/icons/ast/space-list.ts +0 -12
- package/src/icons/ast/success.ts +0 -12
- package/src/icons/ast/template.ts +0 -12
- package/src/icons/ast/thumbs-down.ts +0 -12
- package/src/icons/ast/thumbs-up.ts +0 -12
- package/src/icons/ast/twitter.ts +0 -12
- package/src/icons/ast/type-boolean.ts +0 -12
- package/src/icons/ast/type-function.ts +0 -12
- package/src/icons/ast/type-id.ts +0 -12
- package/src/icons/ast/type-rule.ts +0 -12
- package/src/icons/ast/type-url.ts +0 -12
- package/src/icons/ast/units-db-badge-abbr.ts +0 -12
- package/src/icons/ast/units-db-badge-full.ts +0 -12
- package/src/icons/ast/units-db-icon.ts +0 -12
- package/src/icons/ast/unlock-outline.ts +0 -12
- package/src/icons/ast/upgrade.ts +0 -12
- package/src/icons/ast/user-check.ts +0 -12
- package/src/icons/ast/user-group-remove.ts +0 -12
- package/src/icons/ast/user-group.ts +0 -12
- package/src/icons/ast/user-role.ts +0 -12
- package/src/icons/ast/user-x.ts +0 -12
- package/src/icons/ast/windows.ts +0 -12
- package/src/icons/ast/workspace-map.ts +0 -12
- package/src/icons/ast/youtube.ts +0 -12
- package/src/icons/ast/zoom-in.ts +0 -12
- package/src/icons/ast/zoom-out.ts +0 -12
- package/src/icons/react/app-details.tsx +0 -18
- package/src/icons/react/app-store-one-color.tsx +0 -18
- package/src/icons/react/app-templates.tsx +0 -18
- package/src/icons/react/app-webhooks.tsx +0 -18
- package/src/icons/react/arrow-bottom.tsx +0 -18
- package/src/icons/react/arrow-top.tsx +0 -18
- package/src/icons/react/automations-cancelled.tsx +0 -18
- package/src/icons/react/automations-error.tsx +0 -18
- package/src/icons/react/automations-in-progress.tsx +0 -18
- package/src/icons/react/automations-not-started.tsx +0 -18
- package/src/icons/react/automations-success.tsx +0 -18
- package/src/icons/react/backlog-icon.tsx +0 -18
- package/src/icons/react/batch-actions-icon.tsx +0 -18
- package/src/icons/react/bell-filled.tsx +0 -18
- package/src/icons/react/check-circle-filled.tsx +0 -18
- package/src/icons/react/check-circle.tsx +0 -18
- package/src/icons/react/clean.tsx +0 -18
- package/src/icons/react/clear-value.tsx +0 -18
- package/src/icons/react/color-coding-filled.tsx +0 -18
- package/src/icons/react/create.tsx +0 -18
- package/src/icons/react/cross-circle.tsx +0 -18
- package/src/icons/react/database-off.tsx +0 -18
- package/src/icons/react/database-stroke.tsx +0 -18
- package/src/icons/react/demo.tsx +0 -18
- package/src/icons/react/dependency.tsx +0 -18
- package/src/icons/react/dividers.tsx +0 -18
- package/src/icons/react/document.tsx +0 -18
- package/src/icons/react/double-arrow-left.tsx +0 -18
- package/src/icons/react/double-arrow-right.tsx +0 -18
- package/src/icons/react/double-line.tsx +0 -18
- package/src/icons/react/drag-block-handle-single.tsx +0 -18
- package/src/icons/react/edit-value.tsx +0 -18
- package/src/icons/react/error-circle-filled.tsx +0 -18
- package/src/icons/react/extension-assignments.tsx +0 -18
- package/src/icons/react/extension-avatar.tsx +0 -18
- package/src/icons/react/extension-comments.tsx +0 -18
- package/src/icons/react/extension-files.tsx +0 -18
- package/src/icons/react/extension-workflow.tsx +0 -18
- package/src/icons/react/favorites-checked.tsx +0 -18
- package/src/icons/react/fibery-desktop-app.tsx +0 -18
- package/src/icons/react/field-unit.tsx +0 -18
- package/src/icons/react/figma.tsx +0 -18
- package/src/icons/react/file-broken.tsx +0 -18
- package/src/icons/react/fullscreen-mode-off-icon.tsx +0 -18
- package/src/icons/react/fullscreen-mode-on-icon.tsx +0 -18
- package/src/icons/react/github.tsx +0 -18
- package/src/icons/react/gitlab.tsx +0 -18
- package/src/icons/react/globe.tsx +0 -18
- package/src/icons/react/google-drive.tsx +0 -18
- package/src/icons/react/google-map.tsx +0 -18
- package/src/icons/react/hide.tsx +0 -18
- package/src/icons/react/image-xmark.tsx +0 -18
- package/src/icons/react/info-circle-filled.tsx +0 -18
- package/src/icons/react/info-circle.tsx +0 -18
- package/src/icons/react/integrations-integration-discourse-color.tsx +0 -18
- package/src/icons/react/integrations-integration-intercom-color.tsx +0 -18
- package/src/icons/react/integrations-integration-slack-color.tsx +0 -18
- package/src/icons/react/integrations-integration-zendesk-color.tsx +0 -18
- package/src/icons/react/intercom.tsx +0 -18
- package/src/icons/react/invite-people.tsx +0 -18
- package/src/icons/react/jira.tsx +0 -18
- package/src/icons/react/left-panel.tsx +0 -18
- package/src/icons/react/level-plus.tsx +0 -18
- package/src/icons/react/lock-outline.tsx +0 -18
- package/src/icons/react/loom.tsx +0 -18
- package/src/icons/react/loupe-zoom.tsx +0 -18
- package/src/icons/react/many-people.tsx +0 -18
- package/src/icons/react/message-plus-square.tsx +0 -18
- package/src/icons/react/miro.tsx +0 -18
- package/src/icons/react/mixpanel.tsx +0 -18
- package/src/icons/react/move-bottom.tsx +0 -18
- package/src/icons/react/move-space.tsx +0 -18
- package/src/icons/react/move-top.tsx +0 -18
- package/src/icons/react/network-add.tsx +0 -18
- package/src/icons/react/network.tsx +0 -18
- package/src/icons/react/open-ai.tsx +0 -18
- package/src/icons/react/open-as-page.tsx +0 -18
- package/src/icons/react/popup.tsx +0 -18
- package/src/icons/react/posts.tsx +0 -18
- package/src/icons/react/quick-filter-personal.tsx +0 -18
- package/src/icons/react/quick-filter.tsx +0 -18
- package/src/icons/react/remove-people.tsx +0 -18
- package/src/icons/react/reply.tsx +0 -18
- package/src/icons/react/restore.tsx +0 -18
- package/src/icons/react/richeditor-actions-more.tsx +0 -18
- package/src/icons/react/richeditor-comment-create.tsx +0 -18
- package/src/icons/react/richeditor-entity-link-create.tsx +0 -18
- package/src/icons/react/richeditor-history-redo.tsx +0 -18
- package/src/icons/react/richeditor-history-undo.tsx +0 -18
- package/src/icons/react/richeditor-image-upload.tsx +0 -18
- package/src/icons/react/richeditor-image-wrap-center.tsx +0 -18
- package/src/icons/react/richeditor-image-wrap-left.tsx +0 -18
- package/src/icons/react/richeditor-image-wrap-right.tsx +0 -18
- package/src/icons/react/richeditor-image-zoom.tsx +0 -18
- package/src/icons/react/richeditor-link-create.tsx +0 -18
- package/src/icons/react/richeditor-open-link.tsx +0 -18
- package/src/icons/react/richeditor-unlink.tsx +0 -18
- package/src/icons/react/right-panel.tsx +0 -18
- package/src/icons/react/rule-scheduled.tsx +0 -18
- package/src/icons/react/send-arrow.tsx +0 -18
- package/src/icons/react/settings-off.tsx +0 -18
- package/src/icons/react/shared.tsx +0 -18
- package/src/icons/react/sidebar-fields-opened.tsx +0 -18
- package/src/icons/react/sidebar-fields.tsx +0 -18
- package/src/icons/react/sidebar.tsx +0 -18
- package/src/icons/react/slack-icon.tsx +0 -18
- package/src/icons/react/slack.tsx +0 -18
- package/src/icons/react/slide-menu-close.tsx +0 -18
- package/src/icons/react/slide-menu-open.tsx +0 -18
- package/src/icons/react/smart-folder.tsx +0 -18
- package/src/icons/react/sort-on-bottom.tsx +0 -18
- package/src/icons/react/sort-on-top.tsx +0 -18
- package/src/icons/react/space-list.tsx +0 -18
- package/src/icons/react/success.tsx +0 -18
- package/src/icons/react/suggest-integration.tsx +0 -18
- package/src/icons/react/switch-to-mention.tsx +0 -18
- package/src/icons/react/template.tsx +0 -18
- package/src/icons/react/thumbs-down.tsx +0 -18
- package/src/icons/react/thumbs-up.tsx +0 -18
- package/src/icons/react/twitter.tsx +0 -18
- package/src/icons/react/type-boolean.tsx +0 -18
- package/src/icons/react/type-function.tsx +0 -18
- package/src/icons/react/type-id.tsx +0 -18
- package/src/icons/react/type-rule.tsx +0 -18
- package/src/icons/react/type-url.tsx +0 -18
- package/src/icons/react/units-db-badge-abbr.tsx +0 -18
- package/src/icons/react/units-db-badge-full.tsx +0 -18
- package/src/icons/react/units-db-icon.tsx +0 -18
- package/src/icons/react/unlock-outline.tsx +0 -18
- package/src/icons/react/upgrade.tsx +0 -18
- package/src/icons/react/user-check.tsx +0 -18
- package/src/icons/react/user-group-remove.tsx +0 -18
- package/src/icons/react/user-group.tsx +0 -18
- package/src/icons/react/user-role.tsx +0 -18
- package/src/icons/react/user-x.tsx +0 -18
- package/src/icons/react/windows.tsx +0 -18
- package/src/icons/react/workspace-map.tsx +0 -18
- package/src/icons/react/youtube.tsx +0 -18
- package/src/icons/react/zoom-in.tsx +0 -18
- package/src/icons/react/zoom-out.tsx +0 -18
- package/src/icons/svg/ai-avatar.svg +0 -3
- package/src/icons/svg/ai-search.svg +0 -3
- package/src/icons/svg/anthropic.svg +0 -3
- package/src/icons/svg/app-store-one-color.svg +0 -4
- package/src/icons/svg/app-store.svg +0 -4
- package/src/icons/svg/app-webhooks.svg +0 -2
- package/src/icons/svg/app-wiki.svg +0 -2
- package/src/icons/svg/apple.svg +0 -4
- package/src/icons/svg/automations-cancelled.svg +0 -3
- package/src/icons/svg/automations-disabled.svg +0 -3
- package/src/icons/svg/automations-success.svg +0 -3
- package/src/icons/svg/batch-actions-icon.svg +0 -4
- package/src/icons/svg/bell-filled.svg +0 -4
- package/src/icons/svg/chat-ai.svg +0 -5
- package/src/icons/svg/chat.svg +0 -3
- package/src/icons/svg/clean.svg +0 -6
- package/src/icons/svg/color-coding-filled.svg +0 -3
- package/src/icons/svg/create.svg +0 -3
- package/src/icons/svg/cross-circle.svg +0 -4
- package/src/icons/svg/csv.svg +0 -3
- package/src/icons/svg/database-off.svg +0 -3
- package/src/icons/svg/demo.svg +0 -2
- package/src/icons/svg/dependency.svg +0 -3
- package/src/icons/svg/document.svg +0 -4
- package/src/icons/svg/double-arrow-left.svg +0 -2
- package/src/icons/svg/double-arrow-right.svg +0 -2
- package/src/icons/svg/double-line.svg +0 -3
- package/src/icons/svg/drag-block-handle-single.svg +0 -5
- package/src/icons/svg/edit-value.svg +0 -5
- package/src/icons/svg/extension/assignments.svg +0 -7
- package/src/icons/svg/file-broken.svg +0 -3
- package/src/icons/svg/fullscreen-mode-on-icon.svg +0 -3
- package/src/icons/svg/globe.svg +0 -3
- package/src/icons/svg/integrations/integration-slack-color.svg +0 -10
- package/src/icons/svg/intercom.svg +0 -3
- package/src/icons/svg/left-panel.svg +0 -11
- package/src/icons/svg/level-plus.svg +0 -4
- package/src/icons/svg/lock-outline.svg +0 -5
- package/src/icons/svg/loupe-zoom.svg +0 -3
- package/src/icons/svg/message-plus-square.svg +0 -4
- package/src/icons/svg/network-add.svg +0 -5
- package/src/icons/svg/notifications.svg +0 -2
- package/src/icons/svg/open-ai.svg +0 -3
- package/src/icons/svg/open-as-page.svg +0 -3
- package/src/icons/svg/posts.svg +0 -3
- package/src/icons/svg/quick-filter-personal.svg +0 -3
- package/src/icons/svg/quick-filter.svg +0 -3
- package/src/icons/svg/reply.svg +0 -2
- package/src/icons/svg/restore.svg +0 -2
- package/src/icons/svg/richeditor/actions/more.svg +0 -2
- package/src/icons/svg/richeditor/comment/create.svg +0 -5
- package/src/icons/svg/richeditor/entity-link/create.svg +0 -2
- package/src/icons/svg/richeditor/image/wrap-center.svg +0 -2
- package/src/icons/svg/richeditor/image/wrap-left.svg +0 -2
- package/src/icons/svg/richeditor/image/wrap-right.svg +0 -2
- package/src/icons/svg/richeditor/image/zoom.svg +0 -5
- package/src/icons/svg/richeditor/link/create.svg +0 -9
- package/src/icons/svg/richeditor/mark/code.svg +0 -5
- package/src/icons/svg/richeditor/mark/em.svg +0 -3
- package/src/icons/svg/richeditor/mark/highlight.svg +0 -3
- package/src/icons/svg/richeditor/mark/strike.svg +0 -3
- package/src/icons/svg/richeditor/mark/strong.svg +0 -3
- package/src/icons/svg/richeditor/unlink.svg +0 -10
- package/src/icons/svg/right-panel.svg +0 -11
- package/src/icons/svg/rule-scheduled.svg +0 -5
- package/src/icons/svg/settings-off.svg +0 -4
- package/src/icons/svg/shared.svg +0 -7
- package/src/icons/svg/sidebar-fields-opened.svg +0 -3
- package/src/icons/svg/sidebar-fields.svg +0 -6
- package/src/icons/svg/sidebar.svg +0 -2
- package/src/icons/svg/slack-icon.svg +0 -3
- package/src/icons/svg/slide-menu-close.svg +0 -4
- package/src/icons/svg/slide-menu-open.svg +0 -4
- package/src/icons/svg/sort-on-bottom.svg +0 -4
- package/src/icons/svg/sort-on-top.svg +0 -4
- package/src/icons/svg/space-list.svg +0 -4
- package/src/icons/svg/success.svg +0 -4
- package/src/icons/svg/template.svg +0 -3
- package/src/icons/svg/thumbs-down.svg +0 -3
- package/src/icons/svg/thumbs-up.svg +0 -3
- package/src/icons/svg/type/boolean.svg +0 -2
- package/src/icons/svg/type/function.svg +0 -2
- package/src/icons/svg/type/id.svg +0 -3
- package/src/icons/svg/type/rule.svg +0 -2
- package/src/icons/svg/type/url.svg +0 -9
- package/src/icons/svg/units/db-badge-abbr.svg +0 -4
- package/src/icons/svg/units/db-badge-full.svg +0 -4
- package/src/icons/svg/units/db-icon.svg +0 -4
- package/src/icons/svg/upgrade.svg +0 -2
- package/src/icons/svg/user-check.svg +0 -3
- package/src/icons/svg/windows.svg +0 -15
- package/src/icons/svg/workspace-map.svg +0 -3
- package/src/icons/svg/zoom-out.svg +0 -7
- /package/src/icons/svg/{dividers.svg → architect.svg} +0 -0
- /package/src/icons/svg/{back.svg → arrow-back.svg} +0 -0
- /package/src/icons/svg/{send-arrow.svg → arrow-send.svg} +0 -0
- /package/src/icons/svg/{extension/avatar.svg → avatar.svg} +0 -0
- /package/src/icons/svg/{backlog-icon.svg → backlog.svg} +0 -0
- /package/src/icons/svg/{check-circle-filled.svg → circle-check-filled.svg} +0 -0
- /package/src/icons/svg/{check-circle.svg → circle-check.svg} +0 -0
- /package/src/icons/svg/{error-circle-filled.svg → circle-cross-filled.svg} +0 -0
- /package/src/icons/svg/{info-circle-filled.svg → circle-info-filled.svg} +0 -0
- /package/src/icons/svg/{info-circle.svg → circle-info.svg} +0 -0
- /package/src/icons/svg/{extension/comments.svg → comments.svg} +0 -0
- /package/src/icons/svg/{add-database.svg → database-add.svg} +0 -0
- /package/src/icons/svg/{database-stroke.svg → database-outline.svg} +0 -0
- /package/src/icons/svg/{hide.svg → eye-off.svg} +0 -0
- /package/src/icons/svg/{favorites-checked.svg → favorites-filled.svg} +0 -0
- /package/src/icons/svg/{switch-to-mention.svg → field-units-large.svg} +0 -0
- /package/src/icons/svg/{extension/files.svg → files.svg} +0 -0
- /package/src/icons/svg/{smart-folder.svg → folder-smart.svg} +0 -0
- /package/src/icons/svg/{fullscreen-mode-off-icon.svg → fullscreen-mode-off.svg} +0 -0
- /package/src/icons/svg/{add-group.svg → group-add.svg} +0 -0
- /package/src/icons/svg/{image-xmark.svg → image-error.svg} +0 -0
- /package/src/icons/svg/{add-integration.svg → integration-add.svg} +0 -0
- /package/src/icons/svg/{integrations/integration-discourse-color.svg → integration-discourse.svg} +0 -0
- /package/src/icons/svg/{fibery-desktop-app.svg → integration-fibery.svg} +0 -0
- /package/src/icons/svg/{figma.svg → integration-figma.svg} +0 -0
- /package/src/icons/svg/{github.svg → integration-github.svg} +0 -0
- /package/src/icons/svg/{gitlab.svg → integration-gitlab.svg} +0 -0
- /package/src/icons/svg/{google-drive.svg → integration-google-drive.svg} +0 -0
- /package/src/icons/svg/{google-map.svg → integration-google-map.svg} +0 -0
- /package/src/icons/svg/{integrations/integration-intercom-color.svg → integration-intercom.svg} +0 -0
- /package/src/icons/svg/{jira.svg → integration-jira.svg} +0 -0
- /package/src/icons/svg/{loom.svg → integration-loom.svg} +0 -0
- /package/src/icons/svg/{miro.svg → integration-miro.svg} +0 -0
- /package/src/icons/svg/{mixpanel.svg → integration-mixpanel.svg} +0 -0
- /package/src/icons/svg/{slack.svg → integration-slack.svg} +0 -0
- /package/src/icons/svg/{suggest-integration.svg → integration-suggest.svg} +0 -0
- /package/src/icons/svg/{twitter.svg → integration-twitter.svg} +0 -0
- /package/src/icons/svg/{youtube.svg → integration-youtube.svg} +0 -0
- /package/src/icons/svg/{integrations/integration-zendesk-color.svg → integration-zendesk.svg} +0 -0
- /package/src/icons/svg/{move-bottom.svg → move-down.svg} +0 -0
- /package/src/icons/svg/{move-top.svg → move-up.svg} +0 -0
- /package/src/icons/svg/{popup.svg → open-in-panel.svg} +0 -0
- /package/src/icons/svg/{richeditor/open-link.svg → open-link.svg} +0 -0
- /package/src/icons/svg/{many-people.svg → people-all.svg} +0 -0
- /package/src/icons/svg/{user-group-remove.svg → people-group-remove.svg} +0 -0
- /package/src/icons/svg/{invite-people.svg → people-invite.svg} +0 -0
- /package/src/icons/svg/{remove-people.svg → people-remove.svg} +0 -0
- /package/src/icons/svg/{user-x.svg → people-x.svg} +0 -0
- /package/src/icons/svg/{zoom-in.svg → plus.svg} +0 -0
- /package/src/icons/svg/{app-details.svg → preferences.svg} +0 -0
- /package/src/icons/svg/{network.svg → propagate.svg} +0 -0
- /package/src/icons/svg/{add-reactions.svg → reactions-add.svg} +0 -0
- /package/src/icons/svg/{richeditor/history/redo.svg → redo.svg} +0 -0
- /package/src/icons/svg/{extension/references.svg → references.svg} +0 -0
- /package/src/icons/svg/{richeditor/block/callout.svg → richeditor-block-callout.svg} +0 -0
- /package/src/icons/svg/{richeditor/block/code.svg → richeditor-block-code.svg} +0 -0
- /package/src/icons/svg/{richeditor/block/embed.svg → richeditor-block-embed.svg} +0 -0
- /package/src/icons/svg/{richeditor/block/entity.svg → richeditor-block-entity.svg} +0 -0
- /package/src/icons/svg/{richeditor/block/file.svg → richeditor-block-file.svg} +0 -0
- /package/src/icons/svg/{richeditor/block/h1.svg → richeditor-block-h1.svg} +0 -0
- /package/src/icons/svg/{richeditor/block/h2.svg → richeditor-block-h2.svg} +0 -0
- /package/src/icons/svg/{richeditor/block/h3.svg → richeditor-block-h3.svg} +0 -0
- /package/src/icons/svg/{richeditor/block/h4.svg → richeditor-block-h4.svg} +0 -0
- /package/src/icons/svg/{richeditor/block/mention.svg → richeditor-block-mention.svg} +0 -0
- /package/src/icons/svg/{richeditor/block/paragraph.svg → richeditor-block-paragraph.svg} +0 -0
- /package/src/icons/svg/{richeditor/block/quote.svg → richeditor-block-quote.svg} +0 -0
- /package/src/icons/svg/{richeditor/checklist/create.svg → richeditor-checklist-create.svg} +0 -0
- /package/src/icons/svg/{richeditor/image/align-center.svg → richeditor-image-align-center.svg} +0 -0
- /package/src/icons/svg/{richeditor/image/align-left.svg → richeditor-image-align-left.svg} +0 -0
- /package/src/icons/svg/{richeditor/image/align-right.svg → richeditor-image-align-right.svg} +0 -0
- /package/src/icons/svg/{richeditor/image/upload.svg → richeditor-image.svg} +0 -0
- /package/src/icons/svg/{richeditor/linkedhighlight/create.svg → richeditor-linkedhighlight-create.svg} +0 -0
- /package/src/icons/svg/{richeditor/list/bullet.svg → richeditor-list-bullet.svg} +0 -0
- /package/src/icons/svg/{richeditor/list/ordered.svg → richeditor-list-ordered.svg} +0 -0
- /package/src/icons/svg/{richeditor/list/unindent.svg → richeditor-list-unindent.svg} +0 -0
- /package/src/icons/svg/{richeditor/mark/text-background-color.svg → richeditor-mark-text-background-color.svg} +0 -0
- /package/src/icons/svg/{richeditor/mark/underline.svg → richeditor-mark-underline.svg} +0 -0
- /package/src/icons/svg/{richeditor/table/create.svg → richeditor-table-create.svg} +0 -0
- /package/src/icons/svg/{richeditor/video/upload.svg → richeditor-video-upload.svg} +0 -0
- /package/src/icons/svg/{bolt.svg → rule.svg} +0 -0
- /package/src/icons/svg/{app-templates.svg → space-add.svg} +0 -0
- /package/src/icons/svg/{move-space.svg → space-move.svg} +0 -0
- /package/src/icons/svg/{type/button.svg → type-button.svg} +0 -0
- /package/src/icons/svg/{type/checkbox.svg → type-checkbox.svg} +0 -0
- /package/src/icons/svg/{type/date.svg → type-date.svg} +0 -0
- /package/src/icons/svg/{type/email.svg → type-email.svg} +0 -0
- /package/src/icons/svg/{type/emoji.svg → type-emoji.svg} +0 -0
- /package/src/icons/svg/{type/formula.svg → type-formula.svg} +0 -0
- /package/src/icons/svg/{type/location.svg → type-location.svg} +0 -0
- /package/src/icons/svg/{type/lookup.svg → type-lookup.svg} +0 -0
- /package/src/icons/svg/{type/money.svg → type-money.svg} +0 -0
- /package/src/icons/svg/{type/multi-select.svg → type-multi-select.svg} +0 -0
- /package/src/icons/svg/{type/number.svg → type-number.svg} +0 -0
- /package/src/icons/svg/{type/percent.svg → type-percent.svg} +0 -0
- /package/src/icons/svg/{type/phone.svg → type-phone.svg} +0 -0
- /package/src/icons/svg/{type/relation.svg → type-relation.svg} +0 -0
- /package/src/icons/svg/{type/rich-text.svg → type-rich-text.svg} +0 -0
- /package/src/icons/svg/{type/single-select.svg → type-single-select.svg} +0 -0
- /package/src/icons/svg/{type/text.svg → type-text.svg} +0 -0
- /package/src/icons/svg/{richeditor/history/undo.svg → undo.svg} +0 -0
- /package/src/icons/svg/{units/avatar.svg → units-avatar.svg} +0 -0
- /package/src/icons/svg/{units/collection.svg → units-collection.svg} +0 -0
- /package/src/icons/svg/{units/counter.svg → units-counter.svg} +0 -0
- /package/src/icons/svg/{units/date.svg → units-date.svg} +0 -0
- /package/src/icons/svg/{units/field-icon-button.svg → units-field-icon-button.svg} +0 -0
- /package/src/icons/svg/{units/field.svg → units-field.svg} +0 -0
- /package/src/icons/svg/{units/input.svg → units-input.svg} +0 -0
- /package/src/icons/svg/{field-unit.svg → units-normal.svg} +0 -0
- /package/src/icons/svg/{units/progress-bar.svg → units-progress-bar.svg} +0 -0
- /package/src/icons/svg/{units/rich-text.svg → units-rich-text.svg} +0 -0
- /package/src/icons/svg/{units/snippet.svg → units-snippet.svg} +0 -0
- /package/src/icons/svg/{unlock-outline.svg → unlock.svg} +0 -0
- /package/src/icons/svg/{clear-value.svg → value-clear.svg} +0 -0
- /package/src/icons/svg/{extension/workflow.svg → workflow.svg} +0 -0
|
@@ -4,51 +4,20 @@ import type {FC} from "react";
|
|
|
4
4
|
import {useEffect, useRef} from "react";
|
|
5
5
|
|
|
6
6
|
import {abbreviateName} from "./abbreviate-name";
|
|
7
|
-
import {
|
|
7
|
+
import {cyrb53, getAvatarColors, getAvatarNeutralColors} from "./avatar-colors";
|
|
8
|
+
import {opacity, textClasses} from "./design-system";
|
|
8
9
|
import {useFeatures} from "./features";
|
|
9
|
-
import
|
|
10
|
+
import LockFilled from "./icons/react/lock-filled";
|
|
10
11
|
import {useTheme} from "./theme-provider";
|
|
11
12
|
|
|
12
|
-
const cyrb53 = (str: string, seed = 0) => {
|
|
13
|
-
let h1 = 0xdeadbeef ^ seed;
|
|
14
|
-
let h2 = 0x41c6ce57 ^ seed;
|
|
15
|
-
for (let i = 0, ch; i < str.length; i++) {
|
|
16
|
-
ch = str.charCodeAt(i);
|
|
17
|
-
h1 = Math.imul(h1 ^ ch, 2654435761);
|
|
18
|
-
h2 = Math.imul(h2 ^ ch, 1597334677);
|
|
19
|
-
}
|
|
20
|
-
h1 = Math.imul(h1 ^ (h1 >>> 16), 2246822507);
|
|
21
|
-
h1 ^= Math.imul(h2 ^ (h2 >>> 13), 3266489909);
|
|
22
|
-
h2 = Math.imul(h2 ^ (h2 >>> 16), 2246822507);
|
|
23
|
-
h2 ^= Math.imul(h1 ^ (h1 >>> 13), 3266489909);
|
|
24
|
-
return 4294967296 * (2097151 & h2) + (h1 >>> 0);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
// [fg, bg]
|
|
28
|
-
const colors = [
|
|
29
|
-
["#8B0000", "linear-gradient(180deg, #FEC8CD 0%, #FD9EA6 100%)"],
|
|
30
|
-
["#922D00", "linear-gradient(180deg, #FFDBC3 0%, #FFBF94 100%)"],
|
|
31
|
-
["#6D4702", "linear-gradient(180deg, #FFEEB8 0%, #FFE180 100%)"],
|
|
32
|
-
["#195C08", "linear-gradient(180deg, #BDF2BD 0%, #89E789 100%)"],
|
|
33
|
-
["#025849", "linear-gradient(180deg, #BFF3E9 0%, #7FE8D4 100%)"],
|
|
34
|
-
["#003A99", "linear-gradient(180deg, #B8DDFF 0%, #A0D0FF 100%)"],
|
|
35
|
-
["#3B158C", "linear-gradient(180deg, #D9CBFF 0%, #CCB9FF 100%)"],
|
|
36
|
-
["#8A1245", "linear-gradient(180deg, #FFD1E5 0%, #FFAED0 100%)"],
|
|
37
|
-
];
|
|
38
|
-
|
|
39
13
|
const mouths = [
|
|
40
14
|
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 16" fill="none"><path d="M28.4821 4C30.78 4 32.7026 5.86498 31.7509 7.87572C30.9368 9.59547 29.584 11.1761 27.7682 12.4853C24.6471 14.7357 20.4139 16 16 16C11.5861 16 7.3529 14.7357 4.23177 12.4853C2.41601 11.1761 1.06315 9.59547 0.249133 7.87572C-0.702621 5.86498 1.22002 4 3.51791 4L28.4821 4Z" fill="currentColor"/></svg>`,
|
|
41
15
|
`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="16" viewBox="0 0 32 16" fill="none"><ellipse cx="16" cy="10" rx="8" ry="6" fill="currentColor"/></svg>`,
|
|
42
16
|
`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="16" viewBox="0 0 32 16" fill="none"><g clip-path="url(#clip0_31_1134)"><path d="M4.23177 12.4853C2.41601 11.1761 1.06315 9.59547 0.249133 7.87572C-0.702621 5.86498 1.22002 4 3.51791 4L7 4C7.55229 4 8 4.44772 8 5V13.0522C8 13.7579 7.28869 14.2398 6.6548 13.9296C5.79179 13.5074 4.97984 13.0247 4.23177 12.4853Z" fill="currentColor"/><path d="M31.7509 7.87572C30.9369 9.59547 29.584 11.1761 27.7682 12.4853C27.0202 13.0247 26.2082 13.5074 25.3452 13.9296C24.7113 14.2398 24 13.7579 24 13.0522L24 5C24 4.44772 24.4477 4 25 4L28.4821 4C30.78 4 32.7026 5.86498 31.7509 7.87572Z" fill="currentColor"/><path d="M16 16C14.564 16 13.1472 15.8662 11.7816 15.6082C11.3227 15.5215 11 15.1143 11 14.6473V5C11 4.44772 11.4477 4 12 4L20 4C20.5523 4 21 4.44772 21 5V14.6473C21 15.1143 20.6773 15.5215 20.2184 15.6082C18.8528 15.8662 17.436 16 16 16Z" fill="currentColor"/></g><defs><clipPath id="clip0_31_1134"><rect width="32" height="16" fill="white"/></clipPath></defs></svg>`,
|
|
43
17
|
];
|
|
44
18
|
|
|
45
|
-
export const getColors = memoize((v: string) => {
|
|
46
|
-
const idx = Math.floor((cyrb53(v) / Math.pow(2, 53)) * colors.length);
|
|
47
|
-
return colors[idx];
|
|
48
|
-
});
|
|
49
|
-
|
|
50
19
|
const getMouth = memoize((v: string) => {
|
|
51
|
-
const salted = v + "::mouth";
|
|
20
|
+
const salted = v + "::mouth";
|
|
52
21
|
const idx = Math.floor((cyrb53(salted) / Math.pow(2, 53)) * mouths.length);
|
|
53
22
|
return mouths[idx];
|
|
54
23
|
});
|
|
@@ -59,7 +28,6 @@ interface FibermojiPlaceholderProps {
|
|
|
59
28
|
title?: string;
|
|
60
29
|
radius?: number;
|
|
61
30
|
hasAccess?: boolean;
|
|
62
|
-
backgroundColor?: string;
|
|
63
31
|
}
|
|
64
32
|
|
|
65
33
|
export const FibermojiPlaceholder: FC<FibermojiPlaceholderProps> = ({
|
|
@@ -71,26 +39,25 @@ export const FibermojiPlaceholder: FC<FibermojiPlaceholderProps> = ({
|
|
|
71
39
|
}) => {
|
|
72
40
|
const eyes = useRef<HTMLDivElement>(null);
|
|
73
41
|
const theme = useTheme();
|
|
74
|
-
const
|
|
75
|
-
const [rawFg, rawBg] = getColors(seed);
|
|
76
|
-
const fg = dn(rawFg);
|
|
77
|
-
const bg = rawBg.replace(/#[0-9A-Fa-f]{6}/g, (hex) => dn(hex));
|
|
42
|
+
const {fg, bg} = hasAccess ? getAvatarColors(seed, theme) : getAvatarNeutralColors(theme);
|
|
78
43
|
const mouth = getMouth(seed);
|
|
79
44
|
const letters = abbreviateName(title).split("");
|
|
80
45
|
|
|
81
46
|
const features = useFeatures<{enableAnimatedAvatarPlaceholders: boolean}>();
|
|
82
47
|
|
|
83
48
|
useEffect(() => {
|
|
49
|
+
if (!features.enableAnimatedAvatarPlaceholders) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (window.matchMedia(`(prefers-reduced-motion: reduce)`).matches) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
|
|
84
56
|
const listener = (event: MouseEvent) => {
|
|
85
57
|
if (!eyes.current) {
|
|
86
58
|
return;
|
|
87
59
|
}
|
|
88
60
|
|
|
89
|
-
const reduceMotion = window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;
|
|
90
|
-
if (reduceMotion || !features.enableAnimatedAvatarPlaceholders) {
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
61
|
const rect = eyes.current.getBoundingClientRect();
|
|
95
62
|
const ourX = rect.left + rect.width / 2;
|
|
96
63
|
const ourY = rect.top + rect.height / 2;
|
|
@@ -130,10 +97,10 @@ export const FibermojiPlaceholder: FC<FibermojiPlaceholderProps> = ({
|
|
|
130
97
|
position: absolute;
|
|
131
98
|
line-height: 0;
|
|
132
99
|
inset: 0;
|
|
133
|
-
opacity:
|
|
100
|
+
opacity: ${opacity.opacity60};
|
|
134
101
|
`}
|
|
135
102
|
>
|
|
136
|
-
<
|
|
103
|
+
<LockFilled iconSize={Math.round(size * 0.6)} containerSize={size} color={null} />
|
|
137
104
|
</div>
|
|
138
105
|
</div>
|
|
139
106
|
);
|
|
@@ -158,16 +125,16 @@ export const FibermojiPlaceholder: FC<FibermojiPlaceholderProps> = ({
|
|
|
158
125
|
textClasses.regular,
|
|
159
126
|
css`
|
|
160
127
|
text-transform: uppercase;
|
|
161
|
-
font-weight:
|
|
128
|
+
font-weight: 400;
|
|
162
129
|
display: flex;
|
|
163
130
|
align-items: center;
|
|
164
131
|
justify-content: center;
|
|
165
132
|
`
|
|
166
133
|
)}
|
|
167
134
|
style={{
|
|
168
|
-
gap: size * 0.
|
|
169
|
-
lineHeight: `${size * 0.9}px`,
|
|
170
|
-
fontSize: size * 0.5,
|
|
135
|
+
gap: Math.round(size * 0.08),
|
|
136
|
+
lineHeight: `${Math.round(size * 0.9)}px`,
|
|
137
|
+
fontSize: Math.round(size * 0.5),
|
|
171
138
|
color: fg,
|
|
172
139
|
}}
|
|
173
140
|
>
|
|
@@ -179,7 +146,7 @@ export const FibermojiPlaceholder: FC<FibermojiPlaceholderProps> = ({
|
|
|
179
146
|
className={css`
|
|
180
147
|
position: absolute;
|
|
181
148
|
line-height: 0;
|
|
182
|
-
opacity:
|
|
149
|
+
opacity: ${opacity.opacity45};
|
|
183
150
|
& > svg {
|
|
184
151
|
display: block;
|
|
185
152
|
width: 100%;
|
|
@@ -187,10 +154,10 @@ export const FibermojiPlaceholder: FC<FibermojiPlaceholderProps> = ({
|
|
|
187
154
|
}
|
|
188
155
|
`}
|
|
189
156
|
style={{
|
|
190
|
-
width: size * 0.4,
|
|
191
|
-
height: size * 0.2,
|
|
192
|
-
left: size * 0.3,
|
|
193
|
-
bottom: size * 0.1,
|
|
157
|
+
width: Math.round(size * 0.4),
|
|
158
|
+
height: Math.round(size * 0.2),
|
|
159
|
+
left: Math.round(size * 0.3),
|
|
160
|
+
bottom: Math.round(size * 0.1),
|
|
194
161
|
}}
|
|
195
162
|
dangerouslySetInnerHTML={{__html: mouth}}
|
|
196
163
|
/>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import {themeVars} from "./design-system";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The current Fibery brand logo: full-color cube + wordmark. Unlike {@link FullFiberyLogo} (a flat,
|
|
5
|
+
* single-color mark), this matches the modern brand lockup used in shared/embedded surfaces such as
|
|
6
|
+
* the form footer. The cube keeps its brand colors; the wordmark adapts to the theme text color.
|
|
7
|
+
*/
|
|
8
|
+
export function FiberyBrandLogo({
|
|
9
|
+
height = 24,
|
|
10
|
+
wordmarkColor = themeVars.textColor,
|
|
11
|
+
}: {
|
|
12
|
+
height?: number;
|
|
13
|
+
wordmarkColor?: string;
|
|
14
|
+
}) {
|
|
15
|
+
return (
|
|
16
|
+
<svg height={height} viewBox="0 0 86 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
17
|
+
<g clipPath="url(#fibery-brand-logo-cube)">
|
|
18
|
+
<path
|
|
19
|
+
d="M13.5444 18.5842L14.5347 22.9114C14.9544 22.4694 15.2624 21.9191 15.4043 21.2936L15.7786 19.6577L13.5414 18.5842H13.5444Z"
|
|
20
|
+
fill="black"
|
|
21
|
+
/>
|
|
22
|
+
<path
|
|
23
|
+
d="M18.819 6.41424L19.1934 4.78136C19.3353 4.15588 19.299 3.52738 19.1149 2.95001L16.3203 6.41725H18.819V6.41424Z"
|
|
24
|
+
fill="#2C4B52"
|
|
25
|
+
/>
|
|
26
|
+
<path
|
|
27
|
+
d="M4.8851 2.94397C4.70093 3.51833 4.66168 4.14382 4.80358 4.7663L5.18099 6.4112H7.66662L4.8851 2.94397Z"
|
|
28
|
+
fill="#010101"
|
|
29
|
+
/>
|
|
30
|
+
<path
|
|
31
|
+
d="M13.5444 18.5841L11.9955 17.8414L10.4466 18.5841L8.20935 19.6577L8.58374 21.2936C8.72564 21.9191 9.03662 22.4694 9.4563 22.9114C10.0994 23.588 11.0052 24.003 11.9955 24.003C12.9828 24.003 13.8916 23.588 14.5347 22.9114L13.5444 18.5841Z"
|
|
32
|
+
fill="#2B4A51"
|
|
33
|
+
/>
|
|
34
|
+
<path
|
|
35
|
+
d="M18.2634 14.8372L22.276 16.7618C22.1914 16.1604 21.9499 15.577 21.5483 15.0748L20.4976 13.7637L18.2604 14.8372H18.2634Z"
|
|
36
|
+
fill="#2C4B52"
|
|
37
|
+
/>
|
|
38
|
+
<path
|
|
39
|
+
d="M11.9985 3.14248L10.9478 1.82836C10.5462 1.32918 10.0299 0.965314 9.45929 0.7488C8.58371 0.415007 7.58736 0.436057 6.69668 0.863071C5.806 1.29009 5.16894 2.05691 4.88513 2.94401L7.66284 6.41125H9.38079L12.0015 3.14248H11.9985Z"
|
|
40
|
+
fill="#2C4B52"
|
|
41
|
+
/>
|
|
42
|
+
<path
|
|
43
|
+
d="M5.04214 11.8301L0.585938 11.8125C0.924093 12.3177 1.40093 12.7563 1.98063 13.036L3.49629 13.7637L5.04516 11.8331L5.04214 11.8301Z"
|
|
44
|
+
fill="#2F6E7D"
|
|
45
|
+
/>
|
|
46
|
+
<path
|
|
47
|
+
d="M22.2791 16.7618L18.2665 14.8372L11.9985 17.8414L15.7817 19.6577L17.3003 20.3854C17.88 20.6651 18.505 20.7673 19.1119 20.7162C20.0448 20.638 20.9355 20.1899 21.5514 19.4201C22.1674 18.6503 22.4089 17.685 22.2791 16.7618Z"
|
|
48
|
+
fill="#2F6E7D"
|
|
49
|
+
/>
|
|
50
|
+
<path
|
|
51
|
+
d="M20.5038 6.41425H18.819H16.3178L11.9985 11.8301L22.2791 6.9014C21.7537 6.59167 21.1469 6.41425 20.5007 6.41425H20.5038Z"
|
|
52
|
+
fill="#3F8998"
|
|
53
|
+
/>
|
|
54
|
+
<path
|
|
55
|
+
d="M5.18101 6.41125H3.49929C2.85619 6.41125 2.2463 6.58868 1.72397 6.8954C0.91783 7.37053 0.310962 8.1584 0.0905564 9.11768C-0.129849 10.077 0.0754602 11.0513 0.594771 11.8271H5.04514L9.3838 6.41125H5.18403H5.18101Z"
|
|
56
|
+
fill="#3F8998"
|
|
57
|
+
/>
|
|
58
|
+
<path
|
|
59
|
+
d="M23.9124 9.12364C23.692 8.16437 23.0851 7.37349 22.279 6.90137L11.9984 11.8301L4.88208 20.7132C5.48895 20.7643 6.11393 20.662 6.69363 20.3824L20.5007 13.7607L22.0193 13.0329C22.599 12.7563 23.07 12.3323 23.4082 11.8271C23.9275 11.0512 24.1298 10.0799 23.9124 9.12064V9.12364Z"
|
|
60
|
+
fill="#309FB6"
|
|
61
|
+
/>
|
|
62
|
+
<path
|
|
63
|
+
d="M17.3003 0.866065C16.4096 0.43905 15.4133 0.421007 14.5377 0.751793C13.967 0.968307 13.4508 1.33217 13.0492 1.83136L11.9985 3.14247L2.44257 15.0748C2.04101 15.577 1.80249 16.1604 1.71493 16.7618C1.58511 17.685 1.82363 18.6503 2.43955 19.4201C3.05548 20.19 3.94616 20.638 4.87911 20.7162L19.1118 2.94701C18.828 2.05689 18.191 1.29308 17.2973 0.866065H17.3003Z"
|
|
64
|
+
fill="#27AFCA"
|
|
65
|
+
/>
|
|
66
|
+
</g>
|
|
67
|
+
<g fill={wordmarkColor}>
|
|
68
|
+
<path d="M76.4915 22.15V20.008H77.0855C78.3275 20.008 78.5615 19.936 78.8495 19.198L78.9395 18.946L75.3215 9.31598H78.5795L80.4155 15.382L82.2695 9.31598H85.4555L81.6575 19C80.6855 21.466 79.9655 22.15 77.4455 22.15H76.4915Z" />
|
|
69
|
+
<path d="M68.9304 19V9.31602H71.7924V11.152C72.2424 10.018 73.0524 9.29802 74.4384 9.24402C74.5824 9.24402 74.7444 9.24402 74.8884 9.26202V12.16C74.5644 12.124 74.3484 12.106 74.0784 12.106C72.6564 12.106 71.9004 12.628 71.9004 14.14V19H68.9304Z" />
|
|
70
|
+
<path d="M62.2537 11.296C61.3537 11.296 60.3457 11.692 60.0397 13.114H64.3057C64.2157 11.962 63.4777 11.296 62.2537 11.296ZM64.4677 15.958H67.2037C66.3397 18.244 64.3237 19.234 62.3797 19.234C59.2297 19.234 57.0697 17.308 57.0697 14.104C57.0697 11.008 59.4277 9.02802 62.2537 9.02802C65.3137 9.02802 67.2577 11.26 67.2577 14.464C67.2577 14.572 67.2577 14.698 67.2397 14.914H60.0217C60.2737 16.408 61.2457 16.93 62.2897 16.93C63.4057 16.93 64.1257 16.534 64.4677 15.958Z" />
|
|
71
|
+
<path d="M45.7097 19V5.95001H48.6797V10.63C49.3097 9.56801 50.5877 9.10001 51.6497 9.10001C54.1337 9.10001 55.9157 10.99 55.9157 14.158C55.9157 17.326 54.1337 19.234 51.6497 19.234C50.5877 19.234 49.3097 18.766 48.6797 17.704V19H45.7097ZM50.6777 16.93C51.8657 16.93 52.8377 15.958 52.8377 14.158C52.8377 12.358 51.8657 11.404 50.6777 11.404C49.5077 11.404 48.5357 12.16 48.5357 14.158C48.5357 16.156 49.5077 16.93 50.6777 16.93Z" />
|
|
72
|
+
<path d="M40.5066 19V9.31601H43.4766V19H40.5066ZM40.5066 8.32601V5.95001H43.4766V8.32601H40.5066Z" />
|
|
73
|
+
<path d="M29.26 19V5.95001H38.872V8.66801H32.338V10.936H38.476V13.654H32.338V19H29.26Z" />
|
|
74
|
+
</g>
|
|
75
|
+
<defs>
|
|
76
|
+
<clipPath id="fibery-brand-logo-cube">
|
|
77
|
+
<rect width="24" height="24" fill="white" />
|
|
78
|
+
</clipPath>
|
|
79
|
+
</defs>
|
|
80
|
+
</svg>
|
|
81
|
+
);
|
|
82
|
+
}
|
package/src/field-container.tsx
CHANGED
|
@@ -18,7 +18,7 @@ const labelStyle = css`
|
|
|
18
18
|
`;
|
|
19
19
|
|
|
20
20
|
type Props = {
|
|
21
|
-
label?: string;
|
|
21
|
+
label?: string | JSX.Element;
|
|
22
22
|
collapsible?: boolean;
|
|
23
23
|
collapsed?: boolean;
|
|
24
24
|
collapsedDefault?: boolean;
|
|
@@ -84,7 +84,7 @@ const fullscreenWithOptionsButton = css`
|
|
|
84
84
|
|
|
85
85
|
export const FieldFullscreenSupportContainer: FC<
|
|
86
86
|
PropsWithChildren<{
|
|
87
|
-
label?: string;
|
|
87
|
+
label?: string | JSX.Element;
|
|
88
88
|
description?: ReactNode;
|
|
89
89
|
withOptions?: boolean;
|
|
90
90
|
disabled?: boolean;
|
package/src/field-type-icon.tsx
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import AppIcon from "./icons/react/app";
|
|
2
|
-
import
|
|
2
|
+
import Avatar from "./icons/react/avatar";
|
|
3
|
+
import Comments from "./icons/react/comments";
|
|
4
|
+
import DatabaseOutline from "./icons/react/database-outline";
|
|
3
5
|
import Delete from "./icons/react/delete";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import ExtensionWorkflow from "./icons/react/extension-workflow";
|
|
6
|
+
import Files from "./icons/react/files";
|
|
7
|
+
import Link from "./icons/react/link";
|
|
8
|
+
import People from "./icons/react/people";
|
|
9
|
+
import PeopleRole from "./icons/react/people-role";
|
|
10
|
+
import References from "./icons/react/references";
|
|
10
11
|
import TypeButton from "./icons/react/type-button";
|
|
11
12
|
import TypeCheckbox from "./icons/react/type-checkbox";
|
|
12
13
|
import TypeDate from "./icons/react/type-date";
|
|
@@ -24,14 +25,13 @@ import TypeRelation from "./icons/react/type-relation";
|
|
|
24
25
|
import TypeRichText from "./icons/react/type-rich-text";
|
|
25
26
|
import TypeSingleSelect from "./icons/react/type-single-select";
|
|
26
27
|
import TypeText from "./icons/react/type-text";
|
|
27
|
-
import TypeUrl from "./icons/react/type-url";
|
|
28
|
-
import UserRole from "./icons/react/user-role";
|
|
29
28
|
import ViewCanvas from "./icons/react/view-canvas";
|
|
30
29
|
import ViewDocument from "./icons/react/view-document";
|
|
30
|
+
import Workflow from "./icons/react/workflow";
|
|
31
31
|
import type {IconBaseProps} from "./icons/types";
|
|
32
32
|
|
|
33
33
|
const iconNameToComponent: Record<string, React.FC<IconBaseProps>> = {
|
|
34
|
-
":icon/type/database":
|
|
34
|
+
":icon/type/database": DatabaseOutline,
|
|
35
35
|
":icon/type/text": TypeText,
|
|
36
36
|
":icon/type/button": TypeButton,
|
|
37
37
|
":icon/type/rich-text": TypeRichText,
|
|
@@ -40,7 +40,7 @@ const iconNameToComponent: Record<string, React.FC<IconBaseProps>> = {
|
|
|
40
40
|
":icon/type/multi-select": TypeMultiSelect,
|
|
41
41
|
":icon/type/date": TypeDate,
|
|
42
42
|
":icon/type/checkbox": TypeCheckbox,
|
|
43
|
-
":icon/type/url":
|
|
43
|
+
":icon/type/url": Link,
|
|
44
44
|
":icon/type/email": TypeEmail,
|
|
45
45
|
":icon/type/phone": TypePhone,
|
|
46
46
|
":icon/type/emoji": TypeEmoji,
|
|
@@ -48,19 +48,19 @@ const iconNameToComponent: Record<string, React.FC<IconBaseProps>> = {
|
|
|
48
48
|
":icon/type/relation": TypeRelation,
|
|
49
49
|
":icon/type/lookup": TypeLookup,
|
|
50
50
|
":icon/type/formula": TypeFormula,
|
|
51
|
-
":icon/extension/references":
|
|
52
|
-
":icon/extension/assignments":
|
|
53
|
-
":icon/extension/avatar":
|
|
51
|
+
":icon/extension/references": References,
|
|
52
|
+
":icon/extension/assignments": People,
|
|
53
|
+
":icon/extension/avatar": Avatar,
|
|
54
54
|
":icon/extension/icon": TypeEmoji,
|
|
55
|
-
":icon/extension/comments":
|
|
55
|
+
":icon/extension/comments": Comments,
|
|
56
56
|
":icon/view-document": ViewDocument,
|
|
57
|
-
":icon/extension/files":
|
|
57
|
+
":icon/extension/files": Files,
|
|
58
58
|
":icon/view-canvas": ViewCanvas,
|
|
59
|
-
":icon/extension/workflow":
|
|
59
|
+
":icon/extension/workflow": Workflow,
|
|
60
60
|
":icon/type/money": TypeMoney,
|
|
61
61
|
":icon/type/percent": TypePercent,
|
|
62
62
|
":icon/type/deleted-field": Delete,
|
|
63
|
-
":icon/type/user-role":
|
|
63
|
+
":icon/type/user-role": PeopleRole,
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
function getFieldIconComponent(iconName?: string) {
|
|
@@ -5,11 +5,13 @@ import {copyUrlToClipboard} from "../copy-to-clipboard";
|
|
|
5
5
|
import Delete from "../icons/react/delete";
|
|
6
6
|
import FileDownload from "../icons/react/file-download";
|
|
7
7
|
import Link from "../icons/react/link";
|
|
8
|
+
import RicheditorOpenLink from "../icons/react/open-link";
|
|
8
9
|
import Pencil from "../icons/react/pencil";
|
|
9
|
-
import
|
|
10
|
+
import Share from "../icons/react/share";
|
|
10
11
|
import {useToast} from "../toast/toast-provider";
|
|
11
12
|
import {isPhoneApp} from "../use-is-phone";
|
|
12
13
|
import {addQueryParam} from "./add-query-param";
|
|
14
|
+
import {canShareFile, shareFile} from "./share-file";
|
|
13
15
|
import type {UploadFileWithContent} from "./types";
|
|
14
16
|
|
|
15
17
|
export function FileMenuItems({
|
|
@@ -26,6 +28,7 @@ export function FileMenuItems({
|
|
|
26
28
|
disabled?: boolean;
|
|
27
29
|
}): ReactNode {
|
|
28
30
|
const toast = useToast();
|
|
31
|
+
const sharingEnabled = isPhoneApp() && canShareFile();
|
|
29
32
|
|
|
30
33
|
return (
|
|
31
34
|
<>
|
|
@@ -39,19 +42,34 @@ export function FileMenuItems({
|
|
|
39
42
|
>
|
|
40
43
|
Copy file URL
|
|
41
44
|
</ActionsMenuItem>
|
|
42
|
-
|
|
43
|
-
<ActionsMenuItem
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
{sharingEnabled ? (
|
|
46
|
+
<ActionsMenuItem
|
|
47
|
+
Icon={Share}
|
|
48
|
+
onSelect={() => {
|
|
49
|
+
shareFile(file.url, file.name, {toast}).catch((error) =>
|
|
50
|
+
toast.error({title: "Unable to share file", subTitle: error.message})
|
|
51
|
+
);
|
|
52
|
+
}}
|
|
53
|
+
>
|
|
54
|
+
Share
|
|
50
55
|
</ActionsMenuItem>
|
|
51
56
|
) : (
|
|
52
|
-
|
|
53
|
-
<
|
|
54
|
-
|
|
57
|
+
<>
|
|
58
|
+
<a href={file.url} target="_blank" rel="noopener noreferrer">
|
|
59
|
+
<ActionsMenuItem Icon={RicheditorOpenLink}>
|
|
60
|
+
{isPhoneApp() ? "Open in browser" : "Open in new tab"}
|
|
61
|
+
</ActionsMenuItem>
|
|
62
|
+
</a>
|
|
63
|
+
{isPhoneApp() ? (
|
|
64
|
+
<ActionsMenuItem Icon={FileDownload} onSelect={onDownloadClick}>
|
|
65
|
+
Download
|
|
66
|
+
</ActionsMenuItem>
|
|
67
|
+
) : (
|
|
68
|
+
<a download={file.name} href={addQueryParam(file.url, "attachment", "true")}>
|
|
69
|
+
<ActionsMenuItem Icon={FileDownload}>Download</ActionsMenuItem>
|
|
70
|
+
</a>
|
|
71
|
+
)}
|
|
72
|
+
</>
|
|
55
73
|
)}
|
|
56
74
|
{onRenameClick && file.status === "done" ? (
|
|
57
75
|
<>
|
|
@@ -1,30 +1,71 @@
|
|
|
1
|
+
import {useCallback} from "react";
|
|
2
|
+
|
|
1
3
|
import {ActionsMenuItem, ActionsMenuSeparator, AsyncActionsMenuItem} from "../actions-menu";
|
|
4
|
+
import {downloadFile} from "../download-file";
|
|
5
|
+
import {asError} from "../errors";
|
|
2
6
|
import Delete from "../icons/react/delete";
|
|
3
7
|
import FileDownload from "../icons/react/file-download";
|
|
4
|
-
import RicheditorOpenLink from "../icons/react/
|
|
8
|
+
import RicheditorOpenLink from "../icons/react/open-link";
|
|
9
|
+
import Share from "../icons/react/share";
|
|
10
|
+
import {useToast} from "../toast/toast-provider";
|
|
5
11
|
import {isPhoneApp} from "../use-is-phone";
|
|
6
12
|
import {addQueryParam} from "./add-query-param";
|
|
13
|
+
import {canShareFile, shareFile} from "./share-file";
|
|
7
14
|
|
|
8
15
|
export function FilePreviewActions({
|
|
9
16
|
url,
|
|
10
17
|
name,
|
|
11
|
-
onDownloadClick,
|
|
12
18
|
onDeleteClick,
|
|
13
19
|
}: {
|
|
14
20
|
url: string;
|
|
15
21
|
name: string;
|
|
16
|
-
onDownloadClick?: () => void;
|
|
17
22
|
onDeleteClick?: () => void | Promise<void>;
|
|
18
23
|
}) {
|
|
24
|
+
const toast = useToast();
|
|
25
|
+
const onDownloadClick = useCallback(
|
|
26
|
+
(e: Event) => {
|
|
27
|
+
e?.preventDefault();
|
|
28
|
+
e?.stopPropagation();
|
|
29
|
+
|
|
30
|
+
downloadFile(addQueryParam(url, "attachment", "true"), name).catch((error) => {
|
|
31
|
+
toast.error({title: "Unable to download file", subTitle: asError(error).message});
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
[url, name, toast]
|
|
35
|
+
);
|
|
36
|
+
|
|
19
37
|
if (isPhoneApp()) {
|
|
20
38
|
return (
|
|
21
39
|
<>
|
|
22
|
-
|
|
23
|
-
<ActionsMenuItem
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
40
|
+
{canShareFile() ? (
|
|
41
|
+
<ActionsMenuItem
|
|
42
|
+
Icon={Share}
|
|
43
|
+
onSelect={() => {
|
|
44
|
+
shareFile(url, name, {toast}).catch((error) =>
|
|
45
|
+
toast.error({title: "Unable to share file", subTitle: asError(error).message})
|
|
46
|
+
);
|
|
47
|
+
}}
|
|
48
|
+
>
|
|
49
|
+
Share
|
|
50
|
+
</ActionsMenuItem>
|
|
51
|
+
) : (
|
|
52
|
+
<>
|
|
53
|
+
<a href={url} target="_blank" rel="noopener noreferrer">
|
|
54
|
+
<ActionsMenuItem Icon={RicheditorOpenLink}>Open in browser</ActionsMenuItem>
|
|
55
|
+
</a>
|
|
56
|
+
<ActionsMenuItem Icon={FileDownload} onSelect={onDownloadClick}>
|
|
57
|
+
Download
|
|
58
|
+
</ActionsMenuItem>
|
|
59
|
+
</>
|
|
60
|
+
)}
|
|
61
|
+
{onDeleteClick ? (
|
|
62
|
+
<>
|
|
63
|
+
<ActionsMenuSeparator />
|
|
64
|
+
<AsyncActionsMenuItem Icon={Delete} onSelect={onDeleteClick} dangerous>
|
|
65
|
+
Delete
|
|
66
|
+
</AsyncActionsMenuItem>
|
|
67
|
+
</>
|
|
68
|
+
) : null}
|
|
28
69
|
</>
|
|
29
70
|
);
|
|
30
71
|
}
|
|
@@ -34,9 +75,9 @@ export function FilePreviewActions({
|
|
|
34
75
|
<a href={url} target="_blank" rel="noopener noreferrer">
|
|
35
76
|
<ActionsMenuItem Icon={RicheditorOpenLink}>Open in new tab</ActionsMenuItem>
|
|
36
77
|
</a>
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
</
|
|
78
|
+
<ActionsMenuItem Icon={FileDownload} onSelect={onDownloadClick}>
|
|
79
|
+
Download
|
|
80
|
+
</ActionsMenuItem>
|
|
40
81
|
{onDeleteClick ? (
|
|
41
82
|
<>
|
|
42
83
|
<ActionsMenuSeparator />
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type {ToastQueue} from "../toast/toast-queue";
|
|
2
|
+
|
|
3
|
+
const blobToDataUrl = (blob: Blob) =>
|
|
4
|
+
new Promise<string>((resolve, reject) => {
|
|
5
|
+
const reader = new FileReader();
|
|
6
|
+
reader.readAsDataURL(blob);
|
|
7
|
+
reader.onloadend = () => resolve(reader.result as string);
|
|
8
|
+
reader.onerror = () => reject(new Error("Error reading file"));
|
|
9
|
+
reader.onabort = () => reject(new Error("Aborted"));
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export const canShareFile = (): boolean =>
|
|
13
|
+
Boolean(
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
15
|
+
// @ts-ignore - injected by consumer app
|
|
16
|
+
window.__FIBERY_MOBILE_APP_API?.shareFile
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export const shareFile = async (
|
|
20
|
+
url: string,
|
|
21
|
+
fileName?: string,
|
|
22
|
+
opts?: {toast?: ToastQueue; loadingTitle?: string}
|
|
23
|
+
): Promise<void> => {
|
|
24
|
+
let toastId: string | undefined;
|
|
25
|
+
const toastTimeoutId = opts?.toast
|
|
26
|
+
? setTimeout(() => {
|
|
27
|
+
toastId = opts.toast?.loading({title: opts.loadingTitle ?? "Preparing file…"});
|
|
28
|
+
}, 300)
|
|
29
|
+
: undefined;
|
|
30
|
+
const hideLoadingToast = () => {
|
|
31
|
+
clearTimeout(toastTimeoutId);
|
|
32
|
+
if (toastId) {
|
|
33
|
+
opts?.toast?.close(toastId);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
try {
|
|
38
|
+
const absoluteUrl = url.startsWith("/") ? `${window.origin}${url}` : url;
|
|
39
|
+
const response = await fetch(absoluteUrl);
|
|
40
|
+
if (!response.ok) {
|
|
41
|
+
throw new Error(`Failed to fetch file (${response.status})`);
|
|
42
|
+
}
|
|
43
|
+
const dataUrl = await blobToDataUrl(await response.blob());
|
|
44
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
45
|
+
// @ts-ignore - injected by consumer app
|
|
46
|
+
const sharePromise: Promise<void> = window.__FIBERY_MOBILE_APP_API.shareFile(dataUrl, fileName);
|
|
47
|
+
hideLoadingToast();
|
|
48
|
+
await sharePromise;
|
|
49
|
+
} catch (error) {
|
|
50
|
+
hideLoadingToast();
|
|
51
|
+
throw error;
|
|
52
|
+
}
|
|
53
|
+
};
|
package/src/file-item.tsx
CHANGED
|
@@ -308,6 +308,8 @@ function FileActionsMenu({
|
|
|
308
308
|
return (
|
|
309
309
|
<ActionsMenu
|
|
310
310
|
onOpenChange={setIsActionsOpened}
|
|
311
|
+
supportsMobile
|
|
312
|
+
mobileTitle={data.name}
|
|
311
313
|
trigger={
|
|
312
314
|
<ActionsButtonCompact
|
|
313
315
|
className={css`
|
|
@@ -317,15 +319,13 @@ function FileActionsMenu({
|
|
|
317
319
|
/>
|
|
318
320
|
}
|
|
319
321
|
>
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
/>
|
|
328
|
-
}
|
|
322
|
+
<FileMenuItems
|
|
323
|
+
file={data}
|
|
324
|
+
disabled={disabled}
|
|
325
|
+
onDownloadClick={onDownloadClick}
|
|
326
|
+
onRemoveClick={onRemoveClick}
|
|
327
|
+
onRenameClick={onRenameClick}
|
|
328
|
+
/>
|
|
329
329
|
</ActionsMenu>
|
|
330
330
|
);
|
|
331
331
|
}
|
|
@@ -7,17 +7,17 @@ moment.locale("en-for-comments", {
|
|
|
7
7
|
future: "in %s",
|
|
8
8
|
past: "%s ago",
|
|
9
9
|
s: "seconds",
|
|
10
|
-
ss: "%
|
|
10
|
+
ss: "%s seconds",
|
|
11
11
|
m: "a minute",
|
|
12
12
|
mm: "%d min",
|
|
13
13
|
h: "an hour",
|
|
14
|
-
hh: "%
|
|
14
|
+
hh: "%d hours",
|
|
15
15
|
d: "a day",
|
|
16
|
-
dd: "%
|
|
16
|
+
dd: "%d days",
|
|
17
17
|
M: "a month",
|
|
18
|
-
MM: "%
|
|
18
|
+
MM: "%d months",
|
|
19
19
|
y: "a year",
|
|
20
|
-
yy: "%
|
|
20
|
+
yy: "%d years",
|
|
21
21
|
},
|
|
22
22
|
});
|
|
23
23
|
// so revert back to the original one
|
|
@@ -31,3 +31,8 @@ export function formatDateFromNow(date?: string, options: {format?: string} = {}
|
|
|
31
31
|
relative: momentDate.fromNow(),
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
+
export function formatDate(date?: string, format?: string) {
|
|
35
|
+
const momentDate = moment(date);
|
|
36
|
+
momentDate.locale("en-for-comments");
|
|
37
|
+
return momentDate.format(format ?? "MMMM Do YYYY, h:mm:ss a");
|
|
38
|
+
}
|