@fibery/ui-kit 4.2.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 +14 -0
- package/package.json +9 -11
- package/src/antd/input-number.tsx +4 -4
- package/src/antd/input.tsx +1 -1
- 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 +26 -3
- package/src/color-utils.ts +9 -2
- package/src/command-menu/nested-command-menu.tsx +2 -2
- 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 +231 -154
- 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/dot.tsx +1 -0
- package/src/double-apply.ts +2 -2
- 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 +1 -1
- package/src/file-item/file-preview-actions.tsx +1 -1
- 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/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 -217
- 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-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 -217
- 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-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/{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/slide-buttons.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 +134 -0
- 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 +196 -64
- package/src/palettes/inspect.defs.colors.neutral-user.test.ts +196 -64
- package/src/palettes/inspect.defs.colors.warm-arch.test.ts +196 -64
- package/src/palettes/inspect.defs.colors.warm-user.test.ts +196 -64
- package/src/palettes/show-colors.test.ts +3 -3
- package/src/palettes/testkit.test.ts +6 -0
- package/src/palettes/testkit.ts +78 -22
- package/src/phone.ts +27 -0
- 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/select-in-popover.tsx +41 -25
- package/src/select/util.ts +1 -1
- package/src/thematic.tsx +10 -9
- package/src/theme-provider.test.tsx +18 -18
- 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 -2034
- package/src/theming.generated.ts +2701 -2549
- 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/gauge.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/gauge.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/gauge.svg +0 -5
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @fibery/ui-kit
|
|
2
2
|
|
|
3
|
+
## 4.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d7293fd: updated banner component styles and colors.ts
|
|
8
|
+
- 8b11936: updated green dot indicator in ui-kit
|
|
9
|
+
- d08e68d: new token for required asterisk in colors.ts
|
|
10
|
+
- e35e5ec: icons refactoring, renaming, deduping
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- f49a044: icons refactoring, renaming and deduplication
|
|
15
|
+
- 4ac3476: final updates to icons refactoring
|
|
16
|
+
|
|
3
17
|
## 4.2.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/ui-kit",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@linaria/core": "
|
|
8
|
-
"@linaria/react": "
|
|
7
|
+
"@linaria/core": "8.0.0",
|
|
8
|
+
"@linaria/react": "8.0.0",
|
|
9
9
|
"@popperjs/core": "2.11.6",
|
|
10
10
|
"@radix-ui/react-collapsible": "1.1.0",
|
|
11
11
|
"@radix-ui/react-context-menu": "2.2.1",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"@types/react-select-country-list": "2.2.3",
|
|
25
25
|
"@types/setimmediate": "1.0.4",
|
|
26
26
|
"apca-w3": "0.1.9",
|
|
27
|
-
"apcach": "github:antiflasher/apcach#54077b3",
|
|
28
27
|
"chrono-node": "2.9.0",
|
|
29
28
|
"classnames": "2.3.1",
|
|
30
29
|
"cmdk": "1.0.0",
|
|
@@ -43,7 +42,7 @@
|
|
|
43
42
|
"rc-input": "0.1.4",
|
|
44
43
|
"rc-input-number": "8.5.0",
|
|
45
44
|
"rc-input-number-v7": "npm:rc-input-number@7.3.11",
|
|
46
|
-
"rc-progress": "
|
|
45
|
+
"rc-progress": "4.0.0",
|
|
47
46
|
"rc-select": "14.1.18",
|
|
48
47
|
"rc-tabs": "12.5.10",
|
|
49
48
|
"rc-textarea": "0.4.7",
|
|
@@ -57,6 +56,7 @@
|
|
|
57
56
|
"react-virtuoso": "4.18.1",
|
|
58
57
|
"screenfull": "6.0.2",
|
|
59
58
|
"tabbable": "5.2.1",
|
|
59
|
+
"vaul": "1.1.2",
|
|
60
60
|
"virtua": "0.48.8",
|
|
61
61
|
"@fibery/emoji-data": "2.7.3",
|
|
62
62
|
"@fibery/helpers": "3.1.0",
|
|
@@ -76,15 +76,13 @@
|
|
|
76
76
|
"@types/react": "18.3.12",
|
|
77
77
|
"@types/react-color": "2.13.5",
|
|
78
78
|
"@types/react-dom": "18.3.1",
|
|
79
|
-
"@typescript/native-preview": "7.0.0-dev.20260604.1",
|
|
80
|
-
"csstype": "3.0.8",
|
|
81
79
|
"fs-extra": "10.0.0",
|
|
82
80
|
"glob": "13.0.6",
|
|
83
81
|
"react": "18.3.1",
|
|
84
82
|
"react-dom": "18.3.1",
|
|
85
83
|
"svg-parser": "2.0.4",
|
|
86
84
|
"svgo": "2.8.0",
|
|
87
|
-
"typescript": "
|
|
85
|
+
"typescript": "rc",
|
|
88
86
|
"unist-util-reduce": "0.2.2",
|
|
89
87
|
"@fibery/babel-preset": "7.4.2"
|
|
90
88
|
},
|
|
@@ -96,10 +94,10 @@
|
|
|
96
94
|
"test": "../../scripts/test.sh",
|
|
97
95
|
"test:ci": "../../scripts/test.sh --ci",
|
|
98
96
|
"test:coverage": "../../scripts/test.sh --ci --coverage",
|
|
99
|
-
"check": "../../scripts/check.sh",
|
|
100
|
-
"lint": "pnpm -w lint .",
|
|
101
97
|
"generate-icons": "node scripts/generate-icons.mjs",
|
|
102
98
|
"show-colors": "cd ../.. && SHOW_COLORS=1 ./node_modules/.bin/vitest run --project ui-kit --disable-console-intercept -t 'show all current colors'",
|
|
103
|
-
"
|
|
99
|
+
"lint": "pnpm -w lint .",
|
|
100
|
+
"typecheck": "../../scripts/typecheck.sh",
|
|
101
|
+
"check": "../../scripts/check.sh"
|
|
104
102
|
}
|
|
105
103
|
}
|
|
@@ -4,8 +4,8 @@ import type {ComponentProps} from "react";
|
|
|
4
4
|
import {forwardRef} from "react";
|
|
5
5
|
|
|
6
6
|
import {textStyles, themeVars, transitionDuration} from "../design-system";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import ArrowDownIcon from "../icons/react/arrow-down";
|
|
8
|
+
import ArrowUpIcon from "../icons/react/arrow-up";
|
|
9
9
|
import {getWrapper} from "./get-wrapper";
|
|
10
10
|
import {inputOverrides} from "./styles";
|
|
11
11
|
import {wrapWith} from "./utils";
|
|
@@ -14,8 +14,8 @@ type InputNumberPropsAny = ComponentProps<typeof InputNumber>;
|
|
|
14
14
|
|
|
15
15
|
// rc-input-number renders empty .ant-input-number-handler-up/-down-inner spans unless
|
|
16
16
|
// upNode/downNode are passed. antd's wrapper supplied chevron icons; we do the same.
|
|
17
|
-
const upNode = <
|
|
18
|
-
const downNode = <
|
|
17
|
+
const upNode = <ArrowUpIcon className="ant-input-number-handler-up-inner" iconSize={12} />;
|
|
18
|
+
const downNode = <ArrowDownIcon className="ant-input-number-handler-down-inner" iconSize={12} />;
|
|
19
19
|
|
|
20
20
|
const PrefixedInputNumber = forwardRef<HTMLInputElement, InputNumberPropsAny>(function PrefixedInputNumber(props, ref) {
|
|
21
21
|
return <InputNumber prefixCls="ant-input-number" upHandler={upNode} downHandler={downNode} {...props} ref={ref} />;
|
package/src/antd/input.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import type {ResizableTextAreaRef} from "rc-textarea/lib/ResizableTextArea";
|
|
|
7
7
|
import {forwardRef, useImperativeHandle, useMemo, useRef} from "react";
|
|
8
8
|
|
|
9
9
|
import {space, tabularNumsOff, textStyles, themeVars} from "../design-system";
|
|
10
|
-
import CloseCircleFilledIcon from "../icons/react/cross
|
|
10
|
+
import CloseCircleFilledIcon from "../icons/react/circle-cross";
|
|
11
11
|
import {mobileRootSelector} from "../mobile-styles";
|
|
12
12
|
import {getWrapper} from "./get-wrapper";
|
|
13
13
|
import {inputStyles} from "./styles";
|
package/src/apca.lc-low.test.ts
CHANGED
|
@@ -5,9 +5,7 @@ import {userColorChoices} from "./palettes/testkit";
|
|
|
5
5
|
const SURFACE = "#FFFFFF";
|
|
6
6
|
const TARGETS = [0, 1, 2, 3, 4, 5, 6, 7, 8] as const;
|
|
7
7
|
// Tolerance bound for the round-trip (target Lc → setter → calcLc) in the
|
|
8
|
-
// formerly-bridged Lc range, against pure white.
|
|
9
|
-
// quantization inside apcach's solver — will tighten when storage moves
|
|
10
|
-
// to OKLCH/P3.
|
|
8
|
+
// formerly-bridged Lc range, against pure white. TODO Tighten when storage moves to OKLCH/P3 from hex 0..255
|
|
11
9
|
const MAX_LC_ROUNDTRIP_ERR = 1;
|
|
12
10
|
|
|
13
11
|
const fmtRow = (errors: number[]) => errors.map((e) => (e >= 0 ? "+" : "") + e.toFixed(1)).join(" ");
|
package/src/apca.test.ts
CHANGED
|
@@ -1,29 +1,6 @@
|
|
|
1
|
-
import {calcContrast} from "apcach";
|
|
2
|
-
|
|
3
1
|
import {calcLc, colorFromLc, solveNearIdentity} from "./apca";
|
|
4
2
|
|
|
5
3
|
describe("calcLc", () => {
|
|
6
|
-
// With the apca-w3 patch, calcLc is continuous from 0 across the full range
|
|
7
|
-
// and matches stock APCA wherever stock returns non-zero.
|
|
8
|
-
describe("matches stock apcach.calcContrast on high-contrast pairs", () => {
|
|
9
|
-
const pairs: [fg: string, bg: string][] = [
|
|
10
|
-
["#000000", "#ffffff"],
|
|
11
|
-
["#ffffff", "#000000"],
|
|
12
|
-
["#222222", "#ffffff"],
|
|
13
|
-
["#ff0000", "#ffffff"],
|
|
14
|
-
["#0000ff", "#ffffff"],
|
|
15
|
-
["#0080ff", "#ffffff"],
|
|
16
|
-
["#ffffff", "#1d1d1d"],
|
|
17
|
-
["#888888", "#ffffff"],
|
|
18
|
-
["#444444", "#ffffff"],
|
|
19
|
-
];
|
|
20
|
-
it.each(pairs)("Lc(%s, %s)", (fg, bg) => {
|
|
21
|
-
const ours = calcLc(fg, bg);
|
|
22
|
-
const stock = Math.abs(Number(calcContrast(fg, bg, "apca", "srgb")));
|
|
23
|
-
expect(Math.abs(ours - stock)).toBeLessThan(0.01);
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
|
|
27
4
|
describe("near-zero contrast (former dead zone)", () => {
|
|
28
5
|
it("returns exactly 0 when fg === bg", () => {
|
|
29
6
|
expect(calcLc("#888888", "#888888")).toBe(0);
|
|
@@ -31,21 +8,21 @@ describe("calcLc", () => {
|
|
|
31
8
|
expect(calcLc("#ffffff", "#ffffff")).toBe(0);
|
|
32
9
|
});
|
|
33
10
|
|
|
34
|
-
it("monotonically increases as fg diverges from bg", () => {
|
|
11
|
+
it("monotonically increases as fg diverges from bg (dark to light)", () => {
|
|
35
12
|
// Use a wider sweep — adjacent 8-bit greys may both fall below the
|
|
36
13
|
// loOffset noise floor and tie at 0.
|
|
37
14
|
const bg = "#888888";
|
|
38
15
|
const lcs = ["#888888", "#aaaaaa", "#cccccc", "#eeeeee", "#ffffff"].map((fg) => calcLc(fg, bg));
|
|
39
16
|
for (let i = 1; i < lcs.length; i++) {
|
|
40
|
-
expect(lcs[i]).
|
|
17
|
+
expect(lcs[i]).toBeLessThan(lcs[i - 1]);
|
|
41
18
|
}
|
|
42
19
|
expect(lcs).toMatchInlineSnapshot(`
|
|
43
20
|
[
|
|
44
21
|
0,
|
|
45
|
-
16.897864551748565,
|
|
46
|
-
36.33194143878067,
|
|
47
|
-
57.418767755407885,
|
|
48
|
-
68.54146436644962,
|
|
22
|
+
-16.897864551748565,
|
|
23
|
+
-36.33194143878067,
|
|
24
|
+
-57.418767755407885,
|
|
25
|
+
-68.54146436644962,
|
|
49
26
|
]
|
|
50
27
|
`);
|
|
51
28
|
});
|
|
@@ -57,27 +34,26 @@ describe("calcLc", () => {
|
|
|
57
34
|
});
|
|
58
35
|
});
|
|
59
36
|
|
|
60
|
-
it("polarity: dark-on-light
|
|
37
|
+
it("polarity: dark-on-light", () => {
|
|
61
38
|
expect(calcLc("#000000", "#ffffff")).toBeGreaterThan(0);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it("polarity: light-on-dark", () => {
|
|
42
|
+
expect(calcLc("#ffffff", "#000000")).toBeLessThan(0);
|
|
65
43
|
});
|
|
66
44
|
|
|
67
45
|
// Mirror property: colorFromLc is the right-inverse of calcLc. Pick a target
|
|
68
46
|
// Lc against a surface, generate a color at that Lc, then re-measure — the
|
|
69
47
|
// result must match the input within hex-output quantization.
|
|
70
48
|
describe("colorFromLc ↔ calcLc round-trip", () => {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const cases = surfaces.flatMap((surface) => targets.map((target) => ({surface, target})));
|
|
80
|
-
it.each(cases)("$surface @ Lc=$target round-trips within ±1", ({surface, target}) => {
|
|
49
|
+
const TOLERANCE = 0.4;
|
|
50
|
+
it.each([5, 8, 10, 20, 30, 45, 60, 75, 90])("Lc=%o round-trips within ±1 dark-on-light", (target) => {
|
|
51
|
+
const surface = "#ffffff";
|
|
52
|
+
const out = colorFromLc(surface, target, 0, 0);
|
|
53
|
+
expect(Math.abs(calcLc(out, surface) - target)).toBeLessThan(TOLERANCE);
|
|
54
|
+
});
|
|
55
|
+
it.each([-5, -8, -10, -20, -30, -45, -60, -75, -90])("Lc=%o round-trips within ±1 light-on-dark", (target) => {
|
|
56
|
+
const surface = "#000000";
|
|
81
57
|
const out = colorFromLc(surface, target, 0, 0);
|
|
82
58
|
expect(Math.abs(calcLc(out, surface) - target)).toBeLessThan(TOLERANCE);
|
|
83
59
|
});
|
|
@@ -97,6 +73,29 @@ describe("calcLc", () => {
|
|
|
97
73
|
}
|
|
98
74
|
});
|
|
99
75
|
});
|
|
76
|
+
|
|
77
|
+
describe("colorFromSignedLc ↔ calcLc round-trip", () => {
|
|
78
|
+
const TOLERANCE = 1;
|
|
79
|
+
const cases = [
|
|
80
|
+
{surface: "#ffffff", target: 30},
|
|
81
|
+
{surface: "#ffffff", target: 75},
|
|
82
|
+
{surface: "#000000", target: -30},
|
|
83
|
+
{surface: "#000000", target: -75},
|
|
84
|
+
{surface: "#7f7f7f", target: 20},
|
|
85
|
+
{surface: "#7f7f7f", target: -20},
|
|
86
|
+
];
|
|
87
|
+
|
|
88
|
+
it.each(cases)("$surface @ signed Lc=$target round-trips within ±1", ({surface, target}) => {
|
|
89
|
+
const out = colorFromLc(surface, target, 0, 0);
|
|
90
|
+
expect(Math.abs(calcLc(out, surface) - target)).toBeLessThan(TOLERANCE);
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
it("preserves target sign instead of deriving polarity from surface mode", () => {
|
|
94
|
+
const surface = "#7f7f7f";
|
|
95
|
+
expect(calcLc(colorFromLc(surface, 20, 0, 0), surface)).toBeGreaterThan(0);
|
|
96
|
+
expect(calcLc(colorFromLc(surface, -20, 0, 0), surface)).toBeLessThan(0);
|
|
97
|
+
});
|
|
98
|
+
});
|
|
100
99
|
});
|
|
101
100
|
|
|
102
101
|
describe("solveNearIdentity", () => {
|
package/src/apca.ts
CHANGED
|
@@ -9,64 +9,59 @@
|
|
|
9
9
|
* to `loBoWoffset`, eliminating the [0, ~7.3) Lc dead zone in stock APCA.
|
|
10
10
|
* Setter and measurer are now mutual inverses across the full Lc range — no
|
|
11
11
|
* separate bridge logic needed.
|
|
12
|
-
*
|
|
13
|
-
* The setter (`lightnessFromLc`) hand-rolls a bisection rather than delegating
|
|
14
|
-
* to `apcach` because apcach's solver caps at 20 iterations and returns the
|
|
15
|
-
* surface lightness when the target seems unreachable, silently failing on
|
|
16
|
-
* Lc < ~8 even when the target is achievable in sRGB hex.
|
|
17
|
-
*
|
|
18
|
-
* eslint pins `apca-w3` imports to this file via `no-restricted-imports`.
|
|
19
12
|
*/
|
|
20
13
|
|
|
21
14
|
import {APCAcontrast, sRGBtoY} from "apca-w3";
|
|
22
|
-
import {clampChroma, formatRgb} from "culori";
|
|
15
|
+
import {clampChroma, formatRgb, type Rgb} from "culori";
|
|
23
16
|
|
|
24
17
|
import {colorFromUnsafe, oklchFrom, rgbFrom} from "./color-utils";
|
|
25
18
|
|
|
26
19
|
const CLAMP_GAMUT = "rgb"; // TODO p3 when oklch-defs
|
|
20
|
+
const format = formatRgb;
|
|
21
|
+
function clampedOklch(l: number, c: number, h: number) {
|
|
22
|
+
return clampChroma({mode: "oklch", l, c, h}, "oklch", CLAMP_GAMUT);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function yFromRgb(rgb: Rgb) {
|
|
26
|
+
if (process.env.NODE_ENV !== "production") {
|
|
27
|
+
if (rgb.alpha !== undefined && rgb.alpha !== 1) {
|
|
28
|
+
// oxlint-disable-next-line no-console
|
|
29
|
+
console.warn("color %o alpha must be flattened on surface\ne.g. via alphaBlend from apca-w3 or color-mix", rgb);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return sRGBtoY([rgb.r * 255, rgb.g * 255, rgb.b * 255]);
|
|
33
|
+
}
|
|
34
|
+
|
|
27
35
|
// 10 bisection halvings give L precision ~10⁻³ — below the 1/256 step that
|
|
28
36
|
// any 8-bit RGB channel can resolve, so the hex output is already saturated.
|
|
29
37
|
// Doubling iterations doubles cost without changing the rendered color.
|
|
30
38
|
const BISECT_ITERATIONS = 10;
|
|
31
39
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/** Y of OKLCH(L, c, h) clamping chroma into sRGB at this L (matching what the renderer will produce). */
|
|
38
|
-
function yFromOklch(L: number, c: number, hue: number): number {
|
|
39
|
-
const oklch =
|
|
40
|
-
c === 0
|
|
41
|
-
? {mode: "oklch" as const, l: L, c: 0, h: hue}
|
|
42
|
-
: clampChroma({mode: "oklch", l: L, c, h: hue}, "oklch", CLAMP_GAMUT);
|
|
43
|
-
const {r = 0, g = 0, b = 0} = rgbFrom(oklch);
|
|
44
|
-
return sRGBtoY([r * 255, g * 255, b * 255]);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function strictOklch(L: number, c: number, hue: number) {
|
|
48
|
-
return formatRgb(clampChroma({mode: "oklch", l: L, c, h: hue}, "oklch", CLAMP_GAMUT));
|
|
40
|
+
/** APCA Lc with polarity. Use for target recipes and diagnostics. */
|
|
41
|
+
export function calcLc(fg: string, bg: string): number {
|
|
42
|
+
const fgColor = colorFromUnsafe(fg);
|
|
43
|
+
const bgColor = colorFromUnsafe(bg);
|
|
44
|
+
return APCAcontrast(yFromRgb(rgbFrom(fgColor)), yFromRgb(rgbFrom(bgColor))) as number;
|
|
49
45
|
}
|
|
50
46
|
|
|
51
|
-
/**
|
|
52
|
-
export function
|
|
53
|
-
return Math.abs(
|
|
47
|
+
/** Pick black or white — whichever has the higher APCA (Lc) contrast against `bg`. */
|
|
48
|
+
export function blackOrWhiteFor(bg: string): "#000" | "#FFF" {
|
|
49
|
+
return Math.abs(calcLc("#000", bg)) >= Math.abs(calcLc("#FFF", bg)) ? "#000" : "#FFF";
|
|
54
50
|
}
|
|
55
51
|
|
|
56
|
-
/** OKLCH lightness that achieves target APCA Lc contrast against a surface. */
|
|
57
52
|
export function lightnessFromLc(surface: string, Lc: number, c: number, hue: number = 0) {
|
|
58
53
|
const surfaceL = oklchFrom(surface)?.l ?? 0;
|
|
59
|
-
if (Lc
|
|
54
|
+
if (Lc === 0) {
|
|
60
55
|
return surfaceL;
|
|
61
56
|
}
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
let lo =
|
|
65
|
-
let hi =
|
|
57
|
+
|
|
58
|
+
const surfaceY = yFromRgb(rgbFrom(colorFromUnsafe(surface)));
|
|
59
|
+
let lo = Lc > 0 ? 0 : surfaceL;
|
|
60
|
+
let hi = Lc > 0 ? surfaceL : 1;
|
|
66
61
|
for (let i = 0; i < BISECT_ITERATIONS; i++) {
|
|
67
62
|
const mid = (lo + hi) / 2;
|
|
68
|
-
const measured =
|
|
69
|
-
if (measured > Lc
|
|
63
|
+
const measured = APCAcontrast(yFromRgb(rgbFrom(clampedOklch(mid, c, hue))), surfaceY) as number;
|
|
64
|
+
if (measured > Lc) {
|
|
70
65
|
lo = mid;
|
|
71
66
|
} else {
|
|
72
67
|
hi = mid;
|
|
@@ -96,7 +91,7 @@ export function solveNearIdentity(
|
|
|
96
91
|
|
|
97
92
|
export function colorFromLc(surfaceColor: string, Lc: number, c: number, hue: number, referenceC?: number) {
|
|
98
93
|
const lcChroma = referenceC !== undefined && c < referenceC ? referenceC : c;
|
|
99
|
-
return
|
|
94
|
+
return format(clampedOklch(lightnessFromLc(surfaceColor, Lc, lcChroma, hue), c, hue));
|
|
100
95
|
}
|
|
101
96
|
|
|
102
97
|
/**
|
|
@@ -121,10 +116,14 @@ export function colorFromLcCompensated(
|
|
|
121
116
|
/** Adjust only OKLCH lightness so `color` reaches `targetLc` against `surface`, preserving its chroma + hue. */
|
|
122
117
|
export function liftLightnessToLc(color: string, surface: string, targetLc: number): string {
|
|
123
118
|
const {c = 0, h = 0} = oklchFrom(colorFromUnsafe(color));
|
|
124
|
-
return
|
|
119
|
+
return colorFromLc(surface, targetLc, c, h);
|
|
125
120
|
}
|
|
126
121
|
|
|
127
122
|
/** Pass-through when `color` already clears `targetLc` against `surface`; otherwise {@link liftLightnessToLc}. */
|
|
128
123
|
export function ensureLcFloor(color: string, surface: string, targetLc: number): string {
|
|
129
|
-
|
|
124
|
+
const lc = calcLc(color, surface);
|
|
125
|
+
if (targetLc === 0 || (targetLc > 0 ? lc >= targetLc : lc <= targetLc)) {
|
|
126
|
+
return color;
|
|
127
|
+
}
|
|
128
|
+
return liftLightnessToLc(color, surface, targetLc);
|
|
130
129
|
}
|
|
@@ -3,7 +3,7 @@ import type {FC} from "react";
|
|
|
3
3
|
import {lazy, Suspense} from "react";
|
|
4
4
|
|
|
5
5
|
import {AppIconWrapper} from "./app-icon-wrapper";
|
|
6
|
-
import {alpha, iconSize, layout} from "./design-system";
|
|
6
|
+
import {alpha, alphaCoefficients as A, iconSize, layout} from "./design-system";
|
|
7
7
|
import {Icon} from "./icons/icon";
|
|
8
8
|
import {useTheme} from "./theme-provider";
|
|
9
9
|
import {useIsPhone} from "./use-is-phone";
|
|
@@ -147,7 +147,11 @@ export const AppIcon: FC<AppIconProps> = ({icon, color: neutralColor, isSelected
|
|
|
147
147
|
const {fg} = theme.fns.icon(neutralColor);
|
|
148
148
|
|
|
149
149
|
return (
|
|
150
|
-
<AppIconWrapper
|
|
150
|
+
<AppIconWrapper
|
|
151
|
+
color={alpha(fg, A.utility.appIconWrapper[0])}
|
|
152
|
+
borderless={isSelected}
|
|
153
|
+
containerSize={containerSize}
|
|
154
|
+
>
|
|
151
155
|
<AppIconWithFallback name={icon} color={fg} colorProcessed containerSize={containerSize} iconSize={iconSize} />
|
|
152
156
|
</AppIconWrapper>
|
|
153
157
|
);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {produceColor} from "./color-utils";
|
|
2
|
+
import type {Theme} from "./design-system";
|
|
3
|
+
import {Swatch} from "./design-system";
|
|
4
|
+
import {memoizeColor} from "./memoize";
|
|
5
|
+
|
|
6
|
+
export const cyrb53 = (str: string, seed = 0) => {
|
|
7
|
+
let h1 = 0xdeadbeef ^ seed;
|
|
8
|
+
let h2 = 0x41c6ce57 ^ seed;
|
|
9
|
+
for (let i = 0, ch; i < str.length; i++) {
|
|
10
|
+
ch = str.charCodeAt(i);
|
|
11
|
+
h1 = Math.imul(h1 ^ ch, 2654435761);
|
|
12
|
+
h2 = Math.imul(h2 ^ ch, 1597334677);
|
|
13
|
+
}
|
|
14
|
+
h1 = Math.imul(h1 ^ (h1 >>> 16), 2246822507);
|
|
15
|
+
h1 ^= Math.imul(h2 ^ (h2 >>> 13), 3266489909);
|
|
16
|
+
h2 = Math.imul(h2 ^ (h2 >>> 16), 2246822507);
|
|
17
|
+
h2 ^= Math.imul(h1 ^ (h1 >>> 13), 3266489909);
|
|
18
|
+
return 4294967296 * (2097151 & h2) + (h1 >>> 0);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const avatarSwatches = [
|
|
22
|
+
Swatch.Red,
|
|
23
|
+
Swatch.Magenta,
|
|
24
|
+
Swatch.Purple,
|
|
25
|
+
Swatch.Violet,
|
|
26
|
+
Swatch.BlueDark,
|
|
27
|
+
Swatch.Blue,
|
|
28
|
+
Swatch.BlueSky,
|
|
29
|
+
Swatch.Turquoise,
|
|
30
|
+
Swatch.GreenDark,
|
|
31
|
+
Swatch.Green,
|
|
32
|
+
Swatch.GreenLight,
|
|
33
|
+
Swatch.Yellow,
|
|
34
|
+
Swatch.Orange,
|
|
35
|
+
Swatch.Brown,
|
|
36
|
+
] as const;
|
|
37
|
+
|
|
38
|
+
export type AvatarColors = {
|
|
39
|
+
fg: string;
|
|
40
|
+
bg: string;
|
|
41
|
+
bgStart: string;
|
|
42
|
+
bgEnd: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const GRADIENT_SPREAD = 0.05;
|
|
46
|
+
|
|
47
|
+
const clamp01 = (n: number) => Math.max(0, Math.min(1, n));
|
|
48
|
+
|
|
49
|
+
const fromBase = (base: string, fg: string): AvatarColors => {
|
|
50
|
+
const bgStart = produceColor(base, (o) => ({...o, l: clamp01((o.l ?? 0) + GRADIENT_SPREAD)}));
|
|
51
|
+
const bgEnd = produceColor(base, (o) => ({...o, l: clamp01((o.l ?? 0) - GRADIENT_SPREAD)}));
|
|
52
|
+
return {fg, bg: `linear-gradient(180deg, ${bgStart} 0%, ${bgEnd} 100%)`, bgStart, bgEnd};
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export const getAvatarColors = memoizeColor(
|
|
56
|
+
(seed: string, theme: Theme): AvatarColors => {
|
|
57
|
+
const idx = Math.min(avatarSwatches.length - 1, Math.floor((cyrb53(seed) / 2 ** 53) * avatarSwatches.length));
|
|
58
|
+
const swatch = avatarSwatches[idx];
|
|
59
|
+
const {avatarPlaceholder} = theme.fns;
|
|
60
|
+
return fromBase(avatarPlaceholder.bg(swatch), avatarPlaceholder.fg(swatch));
|
|
61
|
+
},
|
|
62
|
+
(seed, theme) => `${theme.key}::${seed}`
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
export const getAvatarNeutralColors = memoizeColor(
|
|
66
|
+
(theme: Theme): AvatarColors => {
|
|
67
|
+
const {avatarPlaceholder} = theme.fns;
|
|
68
|
+
return fromBase(avatarPlaceholder.bg(Swatch.Grey), avatarPlaceholder.fg(Swatch.Grey));
|
|
69
|
+
},
|
|
70
|
+
(theme) => theme.key
|
|
71
|
+
);
|
package/src/avatar.tsx
CHANGED
|
@@ -85,6 +85,7 @@ type AvatarImageProps = {
|
|
|
85
85
|
avatarUrl?: string | null;
|
|
86
86
|
radius?: number;
|
|
87
87
|
hasAccess?: boolean;
|
|
88
|
+
/** @deprecated no longer applied — the placeholder derives its color from the seed/theme. */
|
|
88
89
|
backgroundColor?: string;
|
|
89
90
|
disableNativeTitle?: boolean;
|
|
90
91
|
placeholder?: React.ReactNode;
|
|
@@ -98,7 +99,6 @@ const AvatarImage: FC<AvatarImageProps> = memo(function AvatarImage({
|
|
|
98
99
|
avatarUrl,
|
|
99
100
|
radius,
|
|
100
101
|
hasAccess = true,
|
|
101
|
-
backgroundColor,
|
|
102
102
|
disableNativeTitle = false,
|
|
103
103
|
placeholder,
|
|
104
104
|
}) {
|
|
@@ -142,15 +142,7 @@ const AvatarImage: FC<AvatarImageProps> = memo(function AvatarImage({
|
|
|
142
142
|
/>
|
|
143
143
|
)}
|
|
144
144
|
{(!avatarUrl || fetchState !== ":fetch-state/success") &&
|
|
145
|
-
(placeholder ||
|
|
146
|
-
<AvatarPlaceholder
|
|
147
|
-
size={size}
|
|
148
|
-
title={title}
|
|
149
|
-
radius={radius}
|
|
150
|
-
hasAccess={hasAccess}
|
|
151
|
-
backgroundColor={backgroundColor}
|
|
152
|
-
/>
|
|
153
|
-
))}
|
|
145
|
+
(placeholder || <AvatarPlaceholder size={size} title={title} radius={radius} hasAccess={hasAccess} />)}
|
|
154
146
|
{badges &&
|
|
155
147
|
badges.map((badge, index) => {
|
|
156
148
|
return (
|
package/src/banner/banner.tsx
CHANGED
|
@@ -26,7 +26,7 @@ const bannerVariants: Record<BannerVariant, LinariaClassName> = {
|
|
|
26
26
|
color: ${themeVars.colorTextBannerNeutral};
|
|
27
27
|
`,
|
|
28
28
|
primary: css`
|
|
29
|
-
background-color: ${themeVars.
|
|
29
|
+
background-color: ${themeVars.colorBgBannerAccent};
|
|
30
30
|
${iconColorVar}: ${themeVars.colorIconBannerAccent};
|
|
31
31
|
color: ${themeVars.colorTextBannerAccent};
|
|
32
32
|
`,
|
|
@@ -79,7 +79,6 @@ const bannerDescription = css`
|
|
|
79
79
|
font-weight: ${fontWeight.regular};
|
|
80
80
|
line-height: ${lineHeight.heading};
|
|
81
81
|
color: inherit;
|
|
82
|
-
opacity: 0.8;
|
|
83
82
|
}
|
|
84
83
|
`;
|
|
85
84
|
|
package/src/box.tsx
CHANGED
|
@@ -4,7 +4,16 @@ import cx from "classnames";
|
|
|
4
4
|
import type {CSSProperties, HTMLProps, ReactNode, Ref} from "react";
|
|
5
5
|
import {createContext, forwardRef, useCallback, useContext, useMemo, useState} from "react";
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
alpha,
|
|
9
|
+
alphaCoefficients as A,
|
|
10
|
+
border,
|
|
11
|
+
getLinearGradient,
|
|
12
|
+
space,
|
|
13
|
+
textClasses,
|
|
14
|
+
themeVars,
|
|
15
|
+
transition,
|
|
16
|
+
} from "./design-system";
|
|
8
17
|
import {CARD_COLOR_CODING_SURFACE_PERCENT} from "./design-system/fns.enum";
|
|
9
18
|
import {useClickOutside} from "./popover/use-click-outside";
|
|
10
19
|
|
|
@@ -263,6 +272,8 @@ const CardBgColorContext = createContext<string | null>(null);
|
|
|
263
272
|
export const CardBgColorProvider = CardBgColorContext.Provider;
|
|
264
273
|
export const useCardBgColor = () => useContext(CardBgColorContext);
|
|
265
274
|
|
|
275
|
+
type EntityBoxColorCodingAlpha = (typeof A.entityBoxColorCoding)[keyof typeof A.entityBoxColorCoding];
|
|
276
|
+
|
|
266
277
|
export function getBoxColorCoding({backgroundColors}: {backgroundColors: string[] | null | undefined}) {
|
|
267
278
|
if (!backgroundColors || !backgroundColors.length) {
|
|
268
279
|
return {
|
|
@@ -270,21 +281,20 @@ export function getBoxColorCoding({backgroundColors}: {backgroundColors: string[
|
|
|
270
281
|
colorCodingStyle: emptyColorCodingStyle,
|
|
271
282
|
};
|
|
272
283
|
}
|
|
273
|
-
const colorCodingColor = backgroundColors
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
: {};
|
|
284
|
+
const colorCodingColor = backgroundColors[0];
|
|
285
|
+
const boxAlpha = A.entityBoxColorCoding;
|
|
286
|
+
const alphaColor = (alphaValue: EntityBoxColorCodingAlpha) => alpha(colorCodingColor, alphaValue[0]);
|
|
287
|
+
const stroke = (width: number, alphaValue: EntityBoxColorCodingAlpha) => `0 0 0 ${width}px ${alphaColor(alphaValue)}`;
|
|
288
|
+
const elevation = (y: number, blur: number) => `0px ${y}px ${blur}px 0px ${alphaColor(boxAlpha.elevation)}`;
|
|
289
|
+
const colorCodingStyle = {
|
|
290
|
+
[colorCodingBackgroundCustomProperty]: colorCodingColor,
|
|
291
|
+
[colorCodingShadowEntityBoxDefaultCustomProperty]: elevation(2, 4),
|
|
292
|
+
[colorCodingShadowStrokeEntityBoxDefaultCustomProperty]: stroke(1, boxAlpha.stroke),
|
|
293
|
+
[colorCodingBackgroundHoverShadowCustomProperty]: elevation(4, 8),
|
|
294
|
+
[colorCodingFocusShadowStrokeEntityBoxDefaultCustomProperty]: stroke(2, boxAlpha.focusStroke),
|
|
295
|
+
[colorCodingHoverFocusShadowStrokeEntityBoxDefaultCustomProperty]: stroke(2, boxAlpha.focusHoverStroke),
|
|
296
|
+
[colorCodingShadowStrokeEntityBoxSelectedCustomProperty]: `${stroke(1, boxAlpha.focusHoverStroke)}, ${stroke(3, boxAlpha.focusStroke)}`,
|
|
297
|
+
} as CSSProperties;
|
|
288
298
|
return {
|
|
289
299
|
colorCodingClassName,
|
|
290
300
|
colorCodingStyle,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {forwardRef} from "react";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import ArrowBackIcon from "../icons/react/arrow-back";
|
|
4
4
|
import type {ButtonProps} from "./button";
|
|
5
5
|
import {Button} from "./button";
|
|
6
6
|
|
|
7
7
|
type Props = ButtonProps;
|
|
8
8
|
|
|
9
9
|
export const BackButton = forwardRef<HTMLButtonElement, Props>(
|
|
10
|
-
({iconStart = <
|
|
10
|
+
({iconStart = <ArrowBackIcon />, className, ...rest}, forwardedRef) => {
|
|
11
11
|
return (
|
|
12
12
|
<Button ref={forwardedRef} iconStart={iconStart} variant="ghost" color="neutral" className={className} {...rest}>
|
|
13
13
|
Back
|