@fibery/ui-kit 4.2.0 → 5.0.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 +25 -0
- package/package.json +10 -12
- 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/indicator.tsx +87 -0
- 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 +72 -24
- 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/notification-dot.tsx +0 -23
- /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
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {avatarColorChoices} from "../palettes/testkit";
|
|
2
|
+
import {locateThemeBundle} from "../theme-styles";
|
|
3
|
+
|
|
4
|
+
const theme = locateThemeBundle(false).themes[1];
|
|
5
|
+
|
|
6
|
+
describe("avatarPlaceholder.bg", () => {
|
|
7
|
+
test("snapshot", () => {
|
|
8
|
+
expect(avatarColorChoices((c) => theme.fns.avatarPlaceholder.bg(c))).toMatchInlineSnapshot(`
|
|
9
|
+
{
|
|
10
|
+
"neutral aka Swatch.Grey (no-access)": "#54687A | hsl( 208 18% 40%) | oklch(0.51 0.04 246 )",
|
|
11
|
+
"swatches[ 3] aka Swatch.Red ": "#B92E28 | hsl( 2 64% 44%) | oklch(0.52 0.18 28 )",
|
|
12
|
+
"swatches[ 4] aka Swatch.Magenta ": "#B92753 | hsl( 342 65% 44%) | oklch(0.52 0.18 9 )",
|
|
13
|
+
"swatches[ 5] aka Swatch.Purple ": "#9542A4 | hsl( 291 43% 45%) | oklch(0.53 0.17 321 )",
|
|
14
|
+
"swatches[ 6] aka Swatch.Violet ": "#7054B3 | hsl( 258 38% 52%) | oklch(0.52 0.15 294 )",
|
|
15
|
+
"swatches[ 7] aka Swatch.BlueDark ": "#4C61AE | hsl( 227 39% 49%) | oklch(0.51 0.12 270 )",
|
|
16
|
+
"swatches[ 8] aka Swatch.Blue ": "#2561C5 | hsl( 218 68% 46%) | oklch(0.51 0.17 260 )",
|
|
17
|
+
"swatches[ 9] aka Swatch.BlueSky ": "#006B9D | hsl( 199 100% 31%) | oklch(0.5 0.11 239 )",
|
|
18
|
+
"swatches[10] aka Swatch.Turquoise ": "#006F7D | hsl( 187 100% 25%) | oklch(0.5 0.09 210 )",
|
|
19
|
+
"swatches[11] aka Swatch.GreenDark ": "#127167 | hsl( 174 73% 26%) | oklch(0.5 0.08 184 )",
|
|
20
|
+
"swatches[12] aka Swatch.Green ": "#2A732F | hsl( 124 46% 31%) | oklch(0.49 0.13 145 )",
|
|
21
|
+
"swatches[13] aka Swatch.GreenLight": "#4A7015 | hsl( 85 68% 26%) | oklch(0.5 0.12 130 )",
|
|
22
|
+
"swatches[14] aka Swatch.Yellow ": "#915800 | hsl( 36 100% 28%) | oklch(0.51 0.11 67 )",
|
|
23
|
+
"swatches[15] aka Swatch.Orange ": "#B43609 | hsl( 16 90% 37%) | oklch(0.52 0.17 37 )",
|
|
24
|
+
"swatches[16] aka Swatch.Brown ": "#9C4F39 | hsl( 13 46% 42%) | oklch(0.52 0.11 37 )",
|
|
25
|
+
}
|
|
26
|
+
`);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
describe("avatarPlaceholder.fg", () => {
|
|
31
|
+
test("snapshot", () => {
|
|
32
|
+
expect(avatarColorChoices((c) => theme.fns.avatarPlaceholder.fg(c))).toMatchInlineSnapshot(`
|
|
33
|
+
{
|
|
34
|
+
"neutral aka Swatch.Grey (no-access)": "#C4E1FA | hsl( 208 84% 87%) | oklch(0.9 0.05 244 )",
|
|
35
|
+
"swatches[ 3] aka Swatch.Red ": "#FFD3CD | hsl( 7 100% 90%) | oklch(0.9 0.05 27 )",
|
|
36
|
+
"swatches[ 4] aka Swatch.Magenta ": "#FFD2D8 | hsl( 352 100% 91%) | oklch(0.9 0.05 9 )",
|
|
37
|
+
"swatches[ 5] aka Swatch.Purple ": "#F8D0FF | hsl( 291 100% 91%) | oklch(0.91 0.08 321 )",
|
|
38
|
+
"swatches[ 6] aka Swatch.Violet ": "#E0D8FF | hsl( 252 100% 92%) | oklch(0.9 0.05 295 )",
|
|
39
|
+
"swatches[ 7] aka Swatch.BlueDark ": "#D1DCFF | hsl( 226 100% 91%) | oklch(0.9 0.05 272 )",
|
|
40
|
+
"swatches[ 8] aka Swatch.Blue ": "#CBDFFF | hsl( 217 100% 90%) | oklch(0.9 0.05 260 )",
|
|
41
|
+
"swatches[ 9] aka Swatch.BlueSky ": "#BAE2FF | hsl( 205 100% 86%) | oklch(0.89 0.06 240 )",
|
|
42
|
+
"swatches[10] aka Swatch.Turquoise ": "#7BEDFF | hsl( 188 100% 74%) | oklch(0.89 0.11 209 )",
|
|
43
|
+
"swatches[11] aka Swatch.GreenDark ": "#82F0DF | hsl( 171 79% 73%) | oklch(0.88 0.1 183 )",
|
|
44
|
+
"swatches[12] aka Swatch.Green ": "#92F394 | hsl( 121 80% 76%) | oklch(0.88 0.16 145 )",
|
|
45
|
+
"swatches[13] aka Swatch.GreenLight": "#B6ED7B | hsl( 89 76% 71%) | oklch(0.88 0.16 130 )",
|
|
46
|
+
"swatches[14] aka Swatch.Yellow ": "#FFD6AB | hsl( 31 100% 84%) | oklch(0.9 0.07 68 )",
|
|
47
|
+
"swatches[15] aka Swatch.Orange ": "#FFD3C7 | hsl( 13 100% 89%) | oklch(0.9 0.05 36 )",
|
|
48
|
+
"swatches[16] aka Swatch.Brown ": "#FFD3C6 | hsl( 14 100% 89%) | oklch(0.9 0.05 37 )",
|
|
49
|
+
}
|
|
50
|
+
`);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {avatarColorChoices} from "../palettes/testkit";
|
|
2
|
+
import {locateThemeBundle} from "../theme-styles";
|
|
3
|
+
|
|
4
|
+
const theme = locateThemeBundle(true).themes[1];
|
|
5
|
+
|
|
6
|
+
describe("avatarPlaceholder.bg", () => {
|
|
7
|
+
test("snapshot", () => {
|
|
8
|
+
expect(avatarColorChoices((c) => theme.fns.avatarPlaceholder.bg(c))).toMatchInlineSnapshot(`
|
|
9
|
+
{
|
|
10
|
+
"neutral aka Swatch.Grey (no-access)": "#596878 | hsl( 211 15% 41%) | oklch(0.51 0.03 250 )",
|
|
11
|
+
"swatches[ 3] aka Swatch.Red ": "#AB413A | hsl( 4 49% 45%) | oklch(0.52 0.14 27 )",
|
|
12
|
+
"swatches[ 4] aka Swatch.Magenta ": "#A9405F | hsl( 342 45% 46%) | oklch(0.52 0.14 5 )",
|
|
13
|
+
"swatches[ 5] aka Swatch.Purple ": "#8D4C98 | hsl( 291 33% 45%) | oklch(0.52 0.13 322 )",
|
|
14
|
+
"swatches[ 6] aka Swatch.Violet ": "#7057A7 | hsl( 259 31% 50%) | oklch(0.52 0.12 296 )",
|
|
15
|
+
"swatches[ 7] aka Swatch.BlueDark ": "#4F61A9 | hsl( 228 36% 49%) | oklch(0.51 0.12 271 )",
|
|
16
|
+
"swatches[ 8] aka Swatch.Blue ": "#3C64AE | hsl( 219 49% 46%) | oklch(0.51 0.13 262 )",
|
|
17
|
+
"swatches[ 9] aka Swatch.BlueSky ": "#2D6A98 | hsl( 206 54% 39%) | oklch(0.51 0.1 244 )",
|
|
18
|
+
"swatches[10] aka Swatch.Turquoise ": "#206F75 | hsl( 184 57% 29%) | oklch(0.5 0.07 202 )",
|
|
19
|
+
"swatches[11] aka Swatch.GreenDark ": "#2A7063 | hsl( 169 45% 30%) | oklch(0.5 0.07 179 )",
|
|
20
|
+
"swatches[12] aka Swatch.Green ": "#3B7237 | hsl( 116 35% 33%) | oklch(0.5 0.11 142 )",
|
|
21
|
+
"swatches[13] aka Swatch.GreenLight": "#506F27 | hsl( 86 48% 29%) | oklch(0.5 0.11 129 )",
|
|
22
|
+
"swatches[14] aka Swatch.Yellow ": "#895C16 | hsl( 37 72% 31%) | oklch(0.51 0.1 73 )",
|
|
23
|
+
"swatches[15] aka Swatch.Orange ": "#A64929 | hsl( 15 60% 41%) | oklch(0.52 0.13 39 )",
|
|
24
|
+
"swatches[16] aka Swatch.Brown ": "#935542 | hsl( 14 38% 42%) | oklch(0.52 0.09 38 )",
|
|
25
|
+
}
|
|
26
|
+
`);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
describe("avatarPlaceholder.fg", () => {
|
|
31
|
+
test("snapshot", () => {
|
|
32
|
+
expect(avatarColorChoices((c) => theme.fns.avatarPlaceholder.fg(c))).toMatchInlineSnapshot(`
|
|
33
|
+
{
|
|
34
|
+
"neutral aka Swatch.Grey (no-access)": "#C8E0F9 | hsl( 211 80% 88%) | oklch(0.9 0.04 249 )",
|
|
35
|
+
"swatches[ 3] aka Swatch.Red ": "#FBD5CF | hsl( 8 85% 90%) | oklch(0.9 0.04 29 )",
|
|
36
|
+
"swatches[ 4] aka Swatch.Magenta ": "#FCD4D9 | hsl( 353 87% 91%) | oklch(0.91 0.05 10 )",
|
|
37
|
+
"swatches[ 5] aka Swatch.Purple ": "#F8D0FF | hsl( 291 100% 91%) | oklch(0.91 0.08 321 )",
|
|
38
|
+
"swatches[ 6] aka Swatch.Violet ": "#E0D8FC | hsl( 253 86% 92%) | oklch(0.9 0.05 296 )",
|
|
39
|
+
"swatches[ 7] aka Swatch.BlueDark ": "#D1DCFF | hsl( 226 100% 91%) | oklch(0.9 0.05 272 )",
|
|
40
|
+
"swatches[ 8] aka Swatch.Blue ": "#C9DCFD | hsl( 218 93% 89%) | oklch(0.89 0.05 262 )",
|
|
41
|
+
"swatches[ 9] aka Swatch.BlueSky ": "#BDE3FF | hsl( 205 100% 87%) | oklch(0.9 0.06 240 )",
|
|
42
|
+
"swatches[10] aka Swatch.Turquoise ": "#85EDF7 | hsl( 185 88% 75%) | oklch(0.89 0.1 204 )",
|
|
43
|
+
"swatches[11] aka Swatch.GreenDark ": "#8CEFDC | hsl( 168 76% 74%) | oklch(0.89 0.1 180 )",
|
|
44
|
+
"swatches[12] aka Swatch.Green ": "#9FF09A | hsl( 117 74% 77%) | oklch(0.88 0.14 143 )",
|
|
45
|
+
"swatches[13] aka Swatch.GreenLight": "#BBEB84 | hsl( 88 72% 72%) | oklch(0.88 0.14 129 )",
|
|
46
|
+
"swatches[14] aka Swatch.Yellow ": "#FCD7AD | hsl( 32 93% 83%) | oklch(0.9 0.07 70 )",
|
|
47
|
+
"swatches[15] aka Swatch.Orange ": "#FBD5CB | hsl( 13 86% 89%) | oklch(0.9 0.04 35 )",
|
|
48
|
+
"swatches[16] aka Swatch.Brown ": "#FBD5CA | hsl( 13 86% 89%) | oklch(0.9 0.05 37 )",
|
|
49
|
+
}
|
|
50
|
+
`);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {avatarColorChoices} from "../palettes/testkit";
|
|
2
|
+
import {locateThemeBundle} from "../theme-styles";
|
|
3
|
+
|
|
4
|
+
const theme = locateThemeBundle(false).themes[0];
|
|
5
|
+
|
|
6
|
+
describe("avatarPlaceholder.bg", () => {
|
|
7
|
+
test("snapshot", () => {
|
|
8
|
+
expect(avatarColorChoices((c) => theme.fns.avatarPlaceholder.bg(c))).toMatchInlineSnapshot(`
|
|
9
|
+
{
|
|
10
|
+
"neutral aka Swatch.Grey (no-access)": "#B7D4ED | hsl( 208 60% 82%) | oklch(0.86 0.05 244 )",
|
|
11
|
+
"swatches[ 3] aka Swatch.Red ": "#FFC1B9 | hsl( 7 100% 86%) | oklch(0.86 0.07 27 )",
|
|
12
|
+
"swatches[ 4] aka Swatch.Magenta ": "#FFC0C9 | hsl( 351 100% 88%) | oklch(0.87 0.07 9 )",
|
|
13
|
+
"swatches[ 5] aka Swatch.Purple ": "#F5BDFF | hsl( 291 100% 87%) | oklch(0.87 0.11 321 )",
|
|
14
|
+
"swatches[ 6] aka Swatch.Violet ": "#D5C9FF | hsl( 253 100% 89%) | oklch(0.86 0.08 295 )",
|
|
15
|
+
"swatches[ 7] aka Swatch.BlueDark ": "#BFCFFF | hsl( 225 100% 87%) | oklch(0.86 0.07 270 )",
|
|
16
|
+
"swatches[ 8] aka Swatch.Blue ": "#B6D1FF | hsl( 218 100% 86%) | oklch(0.86 0.07 261 )",
|
|
17
|
+
"swatches[ 9] aka Swatch.BlueSky ": "#9DD7FF | hsl( 204 100% 81%) | oklch(0.85 0.08 239 )",
|
|
18
|
+
"swatches[10] aka Swatch.Turquoise ": "#55E2F7 | hsl( 188 91% 65%) | oklch(0.85 0.12 209 )",
|
|
19
|
+
"swatches[11] aka Swatch.GreenDark ": "#74E2D2 | hsl( 171 65% 67%) | oklch(0.84 0.1 183 )",
|
|
20
|
+
"swatches[12] aka Swatch.Green ": "#85E587 | hsl( 121 65% 71%) | oklch(0.84 0.16 144 )",
|
|
21
|
+
"swatches[13] aka Swatch.GreenLight": "#AAE06E | hsl( 88 65% 65%) | oklch(0.84 0.16 130 )",
|
|
22
|
+
"swatches[14] aka Swatch.Yellow ": "#FFC587 | hsl( 31 100% 76%) | oklch(0.86 0.1 68 )",
|
|
23
|
+
"swatches[15] aka Swatch.Orange ": "#FFC2B1 | hsl( 13 100% 85%) | oklch(0.86 0.07 36 )",
|
|
24
|
+
"swatches[16] aka Swatch.Brown ": "#FFC2B0 | hsl( 14 100% 85%) | oklch(0.86 0.07 37 )",
|
|
25
|
+
}
|
|
26
|
+
`);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
describe("avatarPlaceholder.fg", () => {
|
|
31
|
+
test("snapshot", () => {
|
|
32
|
+
expect(avatarColorChoices((c) => theme.fns.avatarPlaceholder.fg(c))).toMatchInlineSnapshot(`
|
|
33
|
+
{
|
|
34
|
+
"neutral aka Swatch.Grey (no-access)": "#4D667C | hsl( 208 23% 39%) | oklch(0.5 0.05 245 )",
|
|
35
|
+
"swatches[ 3] aka Swatch.Red ": "#BD000E | hsl( 356 100% 37%) | oklch(0.5 0.2 28 )",
|
|
36
|
+
"swatches[ 4] aka Swatch.Magenta ": "#BA004C | hsl( 335 100% 36%) | oklch(0.5 0.2 9 )",
|
|
37
|
+
"swatches[ 5] aka Swatch.Purple ": "#9B2AAE | hsl( 291 61% 42%) | oklch(0.52 0.21 321 )",
|
|
38
|
+
"swatches[ 6] aka Swatch.Violet ": "#7149C3 | hsl( 260 50% 53%) | oklch(0.52 0.18 294 )",
|
|
39
|
+
"swatches[ 7] aka Swatch.BlueDark ": "#445ABC | hsl( 229 47% 50%) | oklch(0.5 0.16 270 )",
|
|
40
|
+
"swatches[ 8] aka Swatch.Blue ": "#0058D7 | hsl( 215 100% 42%) | oklch(0.5 0.21 260 )",
|
|
41
|
+
"swatches[ 9] aka Swatch.BlueSky ": "#006798 | hsl( 199 100% 30%) | oklch(0.49 0.11 239 )",
|
|
42
|
+
"swatches[10] aka Swatch.Turquoise ": "#006D7A | hsl( 186 100% 24%) | oklch(0.49 0.08 209 )",
|
|
43
|
+
"swatches[11] aka Swatch.GreenDark ": "#006E64 | hsl( 175 100% 22%) | oklch(0.48 0.09 184 )",
|
|
44
|
+
"swatches[12] aka Swatch.Green ": "#007218 | hsl( 133 100% 22%) | oklch(0.48 0.15 145 )",
|
|
45
|
+
"swatches[13] aka Swatch.GreenLight": "#456E00 | hsl( 82 100% 22%) | oklch(0.49 0.13 131 )",
|
|
46
|
+
"swatches[14] aka Swatch.Yellow ": "#8D5600 | hsl( 37 100% 28%) | oklch(0.5 0.11 68 )",
|
|
47
|
+
"swatches[15] aka Swatch.Orange ": "#B13200 | hsl( 17 100% 35%) | oklch(0.51 0.17 37 )",
|
|
48
|
+
"swatches[16] aka Swatch.Brown ": "#A44326 | hsl( 14 62% 40%) | oklch(0.51 0.14 37 )",
|
|
49
|
+
}
|
|
50
|
+
`);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {avatarColorChoices} from "../palettes/testkit";
|
|
2
|
+
import {locateThemeBundle} from "../theme-styles";
|
|
3
|
+
|
|
4
|
+
const theme = locateThemeBundle(true).themes[0];
|
|
5
|
+
|
|
6
|
+
describe("avatarPlaceholder.bg", () => {
|
|
7
|
+
test("snapshot", () => {
|
|
8
|
+
expect(avatarColorChoices((c) => theme.fns.avatarPlaceholder.bg(c))).toMatchInlineSnapshot(`
|
|
9
|
+
{
|
|
10
|
+
"neutral aka Swatch.Grey (no-access)": "#BAD1E7 | hsl( 209 48% 82%) | oklch(0.85 0.04 247 )",
|
|
11
|
+
"swatches[ 3] aka Swatch.Red ": "#F7C2BA | hsl( 8 79% 85%) | oklch(0.86 0.06 28 )",
|
|
12
|
+
"swatches[ 4] aka Swatch.Magenta ": "#F7C0CA | hsl( 349 77% 86%) | oklch(0.86 0.06 6 )",
|
|
13
|
+
"swatches[ 5] aka Swatch.Purple ": "#F5BAFE | hsl( 292 97% 86%) | oklch(0.86 0.11 322 )",
|
|
14
|
+
"swatches[ 6] aka Swatch.Violet ": "#D2C8F9 | hsl( 252 80% 88%) | oklch(0.86 0.07 294 )",
|
|
15
|
+
"swatches[ 7] aka Swatch.BlueDark ": "#BCCDFF | hsl( 225 100% 87%) | oklch(0.85 0.07 270 )",
|
|
16
|
+
"swatches[ 8] aka Swatch.Blue ": "#B7CFFA | hsl( 219 87% 85%) | oklch(0.85 0.07 262 )",
|
|
17
|
+
"swatches[ 9] aka Swatch.BlueSky ": "#9FD4FF | hsl( 207 100% 81%) | oklch(0.85 0.08 243 )",
|
|
18
|
+
"swatches[10] aka Swatch.Turquoise ": "#6ADFE6 | hsl( 183 71% 66%) | oklch(0.84 0.11 201 )",
|
|
19
|
+
"swatches[11] aka Swatch.GreenDark ": "#82DFCB | hsl( 167 59% 69%) | oklch(0.84 0.09 178 )",
|
|
20
|
+
"swatches[12] aka Swatch.Green ": "#96E08F | hsl( 115 57% 72%) | oklch(0.84 0.13 142 )",
|
|
21
|
+
"swatches[13] aka Swatch.GreenLight": "#B0DC7B | hsl( 87 58% 67%) | oklch(0.84 0.13 129 )",
|
|
22
|
+
"swatches[14] aka Swatch.Yellow ": "#F7C689 | hsl( 33 87% 75%) | oklch(0.86 0.1 72 )",
|
|
23
|
+
"swatches[15] aka Swatch.Orange ": "#F6C2B2 | hsl( 14 79% 83%) | oklch(0.86 0.06 38 )",
|
|
24
|
+
"swatches[16] aka Swatch.Brown ": "#F6C2B2 | hsl( 14 79% 83%) | oklch(0.86 0.06 38 )",
|
|
25
|
+
}
|
|
26
|
+
`);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
describe("avatarPlaceholder.fg", () => {
|
|
31
|
+
test("snapshot", () => {
|
|
32
|
+
expect(avatarColorChoices((c) => theme.fns.avatarPlaceholder.fg(c))).toMatchInlineSnapshot(`
|
|
33
|
+
{
|
|
34
|
+
"neutral aka Swatch.Grey (no-access)": "#506376 | hsl( 210 19% 39%) | oklch(0.49 0.04 249 )",
|
|
35
|
+
"swatches[ 3] aka Swatch.Red ": "#AE2D2A | hsl( 1 61% 42%) | oklch(0.5 0.17 27 )",
|
|
36
|
+
"swatches[ 4] aka Swatch.Magenta ": "#A83159 | hsl( 340 55% 43%) | oklch(0.5 0.16 4 )",
|
|
37
|
+
"swatches[ 5] aka Swatch.Purple ": "#8F3C9C | hsl( 292 44% 42%) | oklch(0.51 0.17 322 )",
|
|
38
|
+
"swatches[ 6] aka Swatch.Violet ": "#6F4CB0 | hsl( 261 40% 49%) | oklch(0.5 0.15 297 )",
|
|
39
|
+
"swatches[ 7] aka Swatch.BlueDark ": "#4659B3 | hsl( 230 44% 49%) | oklch(0.5 0.14 271 )",
|
|
40
|
+
"swatches[ 8] aka Swatch.Blue ": "#2F5CB5 | hsl( 220 59% 45%) | oklch(0.49 0.15 262 )",
|
|
41
|
+
"swatches[ 9] aka Swatch.BlueSky ": "#2A6591 | hsl( 206 55% 37%) | oklch(0.49 0.09 244 )",
|
|
42
|
+
"swatches[10] aka Swatch.Turquoise ": "#1E6A6F | hsl( 184 57% 28%) | oklch(0.48 0.07 201 )",
|
|
43
|
+
"swatches[11] aka Swatch.GreenDark ": "#1F6B5D | hsl( 169 55% 27%) | oklch(0.48 0.08 178 )",
|
|
44
|
+
"swatches[12] aka Swatch.Green ": "#2A6D25 | hsl( 116 49% 29%) | oklch(0.48 0.13 142 )",
|
|
45
|
+
"swatches[13] aka Swatch.GreenLight": "#4B6A1B | hsl( 84 59% 26%) | oklch(0.48 0.11 129 )",
|
|
46
|
+
"swatches[14] aka Swatch.Yellow ": "#825815 | hsl( 37 72% 30%) | oklch(0.49 0.1 74 )",
|
|
47
|
+
"swatches[15] aka Swatch.Orange ": "#A04221 | hsl( 16 66% 38%) | oklch(0.5 0.13 39 )",
|
|
48
|
+
"swatches[16] aka Swatch.Brown ": "#954B32 | hsl( 15 50% 39%) | oklch(0.5 0.11 39 )",
|
|
49
|
+
}
|
|
50
|
+
`);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
@@ -63,6 +63,8 @@ export function makeEnumFn(
|
|
|
63
63
|
// and only lift its L if Lc against the painted card surface (box.tsx
|
|
64
64
|
// renders `color-mix(card, surface 90%)`) falls below `colorCodingLc`.
|
|
65
65
|
// Hue + chroma stay from bgFromNeutral.
|
|
66
|
+
// DESIGN TODO: enum badges on color-coded Boxes may sit on default/hover/focus surfaces.
|
|
67
|
+
// Decide whether these should preserve old subtlety or guarantee a small APCA separation.
|
|
66
68
|
const bgFromBlend = memoizeColor(
|
|
67
69
|
(neutralColor: string, cardColorCoding: string) => {
|
|
68
70
|
const bare = bgFromNeutral(neutralColor);
|
|
@@ -87,7 +87,7 @@ export function makeIconSide(
|
|
|
87
87
|
c = Math.min(boosted, saturationCap);
|
|
88
88
|
hOut = h;
|
|
89
89
|
}
|
|
90
|
-
const wantedL = lightnessFromLc(surface, targetLc, c, hOut);
|
|
90
|
+
const wantedL = lightnessFromLc(surface, surfaceIsLight ? targetLc : -targetLc, c, hOut);
|
|
91
91
|
const clampToward = (kind === "bg") === surfaceIsLight ? Math.max(inputL, wantedL) : Math.min(inputL, wantedL);
|
|
92
92
|
return {mode: "oklch", l: clampToward, c, h: hOut};
|
|
93
93
|
});
|
package/src/design-system/fns.ts
CHANGED
|
@@ -2,7 +2,8 @@ import {a11yColor} from "../a11y-color";
|
|
|
2
2
|
import {colorFromLcCompensated, lightnessFromLc} from "../apca";
|
|
3
3
|
import {colorFromUnsafe, oklchFrom, produceColor} from "../color-utils";
|
|
4
4
|
import {memoizeColor} from "../memoize";
|
|
5
|
-
import {alpha, type
|
|
5
|
+
import {alpha, type AlphaCoefficient} from "./alpha";
|
|
6
|
+
import {alphaCoefficients as A} from "./alpha-coefficients";
|
|
6
7
|
import {getDarkenColor} from "./colors-js";
|
|
7
8
|
import {mapDef} from "./def";
|
|
8
9
|
import {makeEnumFn} from "./fns.enum";
|
|
@@ -13,7 +14,7 @@ function makeAdaptiveSide(
|
|
|
13
14
|
surface: string,
|
|
14
15
|
bgContrast = 1,
|
|
15
16
|
fgContrast = 3,
|
|
16
|
-
[bg, focus, hover, fg]: [bg:
|
|
17
|
+
[bg, focus, hover, fg]: [bg: AlphaCoefficient, focus: AlphaCoefficient, hover: AlphaCoefficient, fg: AlphaCoefficient]
|
|
17
18
|
) {
|
|
18
19
|
return {
|
|
19
20
|
bg: (color: string) => a11yColor(alpha(color, bg), surface, bgContrast),
|
|
@@ -24,14 +25,33 @@ function makeAdaptiveSide(
|
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
export const makeAdapt = (surface: Def, fgContrasts: [light: number, dark: number] = [3, 5]) => {
|
|
27
|
-
const
|
|
28
|
-
const
|
|
28
|
+
const {bg, focus, hover, fg} = A.adaptiveUserColor;
|
|
29
|
+
const light = makeAdaptiveSide(surface[0], 1, fgContrasts[0], [bg[0], focus[0], hover[0], fg[0]]);
|
|
30
|
+
const dark = makeAdaptiveSide(surface[1], 1.3, fgContrasts[1], [bg[1], focus[1], hover[1], fg[1]]);
|
|
29
31
|
return [light, dark] satisfies ModeDef<ReturnType<typeof makeAdaptiveSide>>;
|
|
30
32
|
};
|
|
31
33
|
|
|
34
|
+
export const makeAvatarPlaceholder = (
|
|
35
|
+
deneutralizeFilterDef: ModeDef<(color: string) => string>,
|
|
36
|
+
surface: Def,
|
|
37
|
+
bgLcs: [light: number, dark: number] = [25, -22],
|
|
38
|
+
fgLcs: [light: number, dark: number] = [80, -85],
|
|
39
|
+
bgChromaScales: [light: number, dark: number] = [1.0, 0.8]
|
|
40
|
+
) =>
|
|
41
|
+
mapDef(deneutralizeFilterDef, (deneutralize, side) => {
|
|
42
|
+
const solve = (color: string, lc: number, chromaScale: number) => {
|
|
43
|
+
const o = oklchFrom(colorFromUnsafe(color));
|
|
44
|
+
return colorFromLcCompensated(surface[side], lc, (o?.c ?? 0) * chromaScale, o?.h ?? 0, deneutralize);
|
|
45
|
+
};
|
|
46
|
+
return {
|
|
47
|
+
bg: memoizeColor((color: string) => solve(color, bgLcs[side], bgChromaScales[side])),
|
|
48
|
+
fg: memoizeColor((color: string) => solve(color, fgLcs[side], 1)),
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
|
|
32
52
|
export function createColorFns(
|
|
33
53
|
deneutralizeFilterDef: ModeDef<(color: string) => string>,
|
|
34
|
-
defs: {icon: Def; adapt: Def; callout: Def; highlight: Def; enum: EnumDefs}
|
|
54
|
+
defs: {icon: Def; adapt: Def; avatarPlaceholder: Def; callout: Def; highlight: Def; enum: EnumDefs}
|
|
35
55
|
) {
|
|
36
56
|
const adapt = makeAdapt(defs.adapt);
|
|
37
57
|
|
|
@@ -55,6 +75,8 @@ export function createColorFns(
|
|
|
55
75
|
|
|
56
76
|
adapt,
|
|
57
77
|
|
|
78
|
+
avatarPlaceholder: makeAvatarPlaceholder(deneutralizeFilterDef, defs.avatarPlaceholder),
|
|
79
|
+
|
|
58
80
|
typeLabelFg: mapDef(deneutralizeFilterDef, (deneutralize, side) =>
|
|
59
81
|
memoizeColor((neutralColor: string) => typeLabelFgAdapt[side].fg(deneutralize(neutralColor)))
|
|
60
82
|
),
|
|
@@ -66,7 +88,8 @@ export function createColorFns(
|
|
|
66
88
|
const deneutralized = neutralColor ? deneutralize(neutralColor) : defs.icon[side];
|
|
67
89
|
const darken = getDarkenColor(deneutralized);
|
|
68
90
|
const bg = icon[side](neutralColor ?? defs.icon[side]).fg;
|
|
69
|
-
const
|
|
91
|
+
const bgL = oklchFrom(colorFromUnsafe(bg))?.l ?? 0;
|
|
92
|
+
const fg = colorFromLcCompensated(bg, bgL > 0.8 ? 90 : -90, oklch.c, oklch.h ?? 0, deneutralize);
|
|
70
93
|
|
|
71
94
|
return {
|
|
72
95
|
fg,
|
|
@@ -94,11 +117,15 @@ export function createColorFns(
|
|
|
94
117
|
const surface = defs.callout[side];
|
|
95
118
|
return memoizeColor((neutralColor: string) => {
|
|
96
119
|
const deneutralized = deneutralize(neutralColor);
|
|
97
|
-
const blended = a11yColor(
|
|
120
|
+
const blended = a11yColor(
|
|
121
|
+
alpha(deneutralized, A.adaptiveUserColor.calloutBg[side]),
|
|
122
|
+
surface,
|
|
123
|
+
side === 0 ? 1 : 1.3
|
|
124
|
+
);
|
|
98
125
|
return {
|
|
99
126
|
bg: produceColor(blended, ({l, c, h}) => {
|
|
100
|
-
const lFloor = lightnessFromLc(surface, 2, c, h);
|
|
101
|
-
const lCap = lightnessFromLc(surface, 20, c, h);
|
|
127
|
+
const lFloor = lightnessFromLc(surface, side === 0 ? 2 : -2, c, h);
|
|
128
|
+
const lCap = lightnessFromLc(surface, side === 0 ? 20 : -20, c, h);
|
|
102
129
|
const [lo, hi] = side === 0 ? [lCap, lFloor] : [lFloor, lCap];
|
|
103
130
|
return {mode: "oklch", l: Math.max(lo, Math.min(hi, l)), c, h};
|
|
104
131
|
}),
|
|
@@ -114,13 +141,16 @@ export function createColorFns(
|
|
|
114
141
|
return {
|
|
115
142
|
bg: produceColor(adjusted, (oklch) => ({
|
|
116
143
|
...oklch,
|
|
117
|
-
l: lightnessFromLc(surface, side === 0 ? 28 : 65, oklch.c, oklch.h),
|
|
118
|
-
alpha:
|
|
144
|
+
l: lightnessFromLc(surface, side === 0 ? 28 : -65, oklch.c, oklch.h),
|
|
145
|
+
alpha: A.adaptiveUserColor.highlightBg[side],
|
|
119
146
|
})),
|
|
120
147
|
bgDecor: produceColor(adjusted, (oklch) => ({
|
|
121
148
|
...oklch,
|
|
122
|
-
l: Math.max(
|
|
123
|
-
|
|
149
|
+
l: Math.max(
|
|
150
|
+
0,
|
|
151
|
+
lightnessFromLc(surface, side === 0 ? 35 : -65, oklch.c, oklch.h) - (side === 1 ? 0.036 : 0)
|
|
152
|
+
),
|
|
153
|
+
alpha: A.adaptiveUserColor.highlightDecor[side],
|
|
124
154
|
})),
|
|
125
155
|
};
|
|
126
156
|
});
|
|
@@ -22,18 +22,16 @@ test("makeTheme memoization", () => {
|
|
|
22
22
|
expect(new Set(themes.map((theme) => getKeys(theme.colors).join(",")))).toMatchObject({size: 1});
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
describe("
|
|
25
|
+
describe("stylesFromTheme", () => {
|
|
26
26
|
it("maps provided theme to css props", () => {
|
|
27
27
|
const colors = {
|
|
28
|
-
mode: "light",
|
|
29
28
|
transparent: "rgba(255, 255, 255, 0)",
|
|
30
29
|
colorAI: "rgb(157, 99, 212)",
|
|
31
30
|
} satisfies Partial<Theme["colors"]> as Theme["colors"];
|
|
32
|
-
expect(stylesFromTheme({
|
|
31
|
+
expect(stylesFromTheme({colors, varname: (x) => `test(${x})`})).toMatchInlineSnapshot(`
|
|
33
32
|
{
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"--fibery-color-transparent": "rgba(255, 255, 255, 0)",
|
|
33
|
+
"test(colorAI)": "rgb(157, 99, 212)",
|
|
34
|
+
"test(transparent)": "rgba(255, 255, 255, 0)",
|
|
37
35
|
}
|
|
38
36
|
`);
|
|
39
37
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {memoize} from "@fibery/helpers/src/_";
|
|
1
|
+
import {memoize, memoizeWeak} from "@fibery/helpers/src/_";
|
|
2
2
|
import {typedObjectEntries} from "@fibery/helpers/utils/object";
|
|
3
3
|
import {LRUCache} from "lru-cache";
|
|
4
4
|
|
|
@@ -8,8 +8,16 @@ import {defsFromPalette, sideFromDefs} from "./colors";
|
|
|
8
8
|
import {makeSelect} from "./colors-js";
|
|
9
9
|
import type {ThemePalette} from "./types";
|
|
10
10
|
|
|
11
|
+
function makeVarnameFn(ns?: string): (key: keyof ThemeDefs["colors"]) => string {
|
|
12
|
+
if (ns === undefined) {
|
|
13
|
+
return (key) => `--${key}`;
|
|
14
|
+
} else {
|
|
15
|
+
return (key) => `--${ns}-${key}`;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
11
19
|
// intentionally non-memoized implementation detail for theme-styles use-case
|
|
12
|
-
export function themeFromDefs(defs: ThemeDefs, mode: ThemeMode) {
|
|
20
|
+
export function themeFromDefs(defs: ThemeDefs, mode: ThemeMode, ns?: string) {
|
|
13
21
|
const {colors, fns} = sideFromDefs(defs, mode);
|
|
14
22
|
return {
|
|
15
23
|
key: `${defs.key}-${mode}`,
|
|
@@ -17,30 +25,31 @@ export function themeFromDefs(defs: ThemeDefs, mode: ThemeMode) {
|
|
|
17
25
|
select: makeSelect(mode),
|
|
18
26
|
colors,
|
|
19
27
|
fns,
|
|
28
|
+
/** @deprecated consider extracting token, internal use only */
|
|
29
|
+
varname: makeVarnameFn(ns),
|
|
20
30
|
};
|
|
21
31
|
}
|
|
22
32
|
|
|
23
33
|
export type Theme = ReturnType<typeof themeFromDefs>;
|
|
24
34
|
|
|
25
|
-
function themeFromPaletteImpl(palette: ThemePalette, mode: ThemeMode) {
|
|
35
|
+
function themeFromPaletteImpl(palette: ThemePalette, mode: ThemeMode, ns?: string) {
|
|
26
36
|
const defs = defsFromPalette(palette);
|
|
27
|
-
return themeFromDefs(defs, mode);
|
|
37
|
+
return themeFromDefs(defs, mode, ns);
|
|
28
38
|
}
|
|
29
39
|
|
|
30
|
-
export const themeFromPalette = memoize(
|
|
40
|
+
export const themeFromPalette = memoize(
|
|
41
|
+
themeFromPaletteImpl,
|
|
42
|
+
(palette, mode, ns?: string) => `${palette.key}-${mode}-${ns}`
|
|
43
|
+
);
|
|
31
44
|
themeFromPalette.cache = new LRUCache({max: 4});
|
|
32
45
|
|
|
33
46
|
export type Styles = Record<string, string>;
|
|
34
47
|
|
|
35
|
-
function stylesFromThemeImpl(
|
|
36
|
-
return typedObjectEntries(
|
|
37
|
-
inlineTheme[
|
|
48
|
+
function stylesFromThemeImpl(theme: Pick<Theme, "colors" | "varname">): Styles {
|
|
49
|
+
return typedObjectEntries(theme.colors).reduce<Styles>((inlineTheme, [key, value]) => {
|
|
50
|
+
inlineTheme[theme.varname(key)] = value;
|
|
38
51
|
return inlineTheme;
|
|
39
52
|
}, {});
|
|
40
53
|
}
|
|
41
54
|
|
|
42
|
-
export const stylesFromTheme =
|
|
43
|
-
(theme: Pick<Theme, "key" | "colors">, prefix: string) => stylesFromThemeImpl(theme, prefix),
|
|
44
|
-
(theme, prefix) => `${theme.key}#${prefix}`
|
|
45
|
-
);
|
|
46
|
-
stylesFromTheme.cache = new LRUCache({max: 8});
|
|
55
|
+
export const stylesFromTheme = memoizeWeak(stylesFromThemeImpl);
|
|
@@ -5,8 +5,8 @@ import {resolveColorArg, varsFromTheme} from "./vars";
|
|
|
5
5
|
|
|
6
6
|
test("varsFromTheme", () => {
|
|
7
7
|
const palette = selectPalette();
|
|
8
|
-
const theme = themeFromPalette(palette, "light");
|
|
9
|
-
const themeVars = varsFromTheme(theme
|
|
8
|
+
const theme = themeFromPalette(palette, "light", "fibery-color");
|
|
9
|
+
const themeVars = varsFromTheme(theme);
|
|
10
10
|
|
|
11
11
|
expect(themeVars.mainBg).toEqual("var(--fibery-color-mainBg)"); // var(--fibery-bg-main)
|
|
12
12
|
expect(themeVars.shadow100).toEqual("var(--fibery-color-shadow100)"); // var(--fibery-shadow(-?)100)
|
|
@@ -5,11 +5,11 @@ import type {Theme} from "./theme";
|
|
|
5
5
|
|
|
6
6
|
export type ThemeVars = Theme["colors"];
|
|
7
7
|
|
|
8
|
-
export function varsFromTheme(
|
|
8
|
+
export function varsFromTheme(theme: Theme) {
|
|
9
9
|
const vars = {} as Record<string, string>;
|
|
10
|
-
for (const [key, value] of typedObjectEntries(
|
|
10
|
+
for (const [key, value] of typedObjectEntries(theme.colors)) {
|
|
11
11
|
type _ = Assert<Equals<typeof value, string>>;
|
|
12
|
-
vars[key] = `var(
|
|
12
|
+
vars[key] = `var(${theme.varname(key)})`;
|
|
13
13
|
}
|
|
14
14
|
return vars as ThemeVars;
|
|
15
15
|
}
|
package/src/design-system.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export type * from "./design-system/types";
|
|
2
|
-
export {opacity, alpha} from "./design-system/alpha";
|
|
2
|
+
export {opacity, alpha, defineAlphaCoefficient} from "./design-system/alpha";
|
|
3
|
+
export {Swatch} from "./design-system/colors-swatches";
|
|
4
|
+
export {alphaCoefficients} from "./design-system/alpha-coefficients";
|
|
3
5
|
export {transition, durations, tooltipDelay, transitionDuration, transitions} from "./design-system/animation";
|
|
4
6
|
export {cardTypeColors, type ThemeDefs} from "./design-system/colors";
|
|
5
7
|
export {swatches} from "./design-system/colors-swatches";
|
package/src/dot.tsx
CHANGED
package/src/double-apply.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const makeDoubleApplyDetector = () => {
|
|
2
2
|
const __outputs = process.env.NODE_ENV !== "production" ? new Set<string>() : undefined;
|
|
3
3
|
const __reported = process.env.NODE_ENV !== "production" ? new Set<string>() : undefined;
|
|
4
|
-
return function check(input: string, output: string) {
|
|
4
|
+
return function check(input: string, output: string, recordOutput = true) {
|
|
5
5
|
if (__outputs?.has(input)) {
|
|
6
6
|
if (!__reported?.has(input)) {
|
|
7
7
|
__reported?.add(input);
|
|
@@ -12,7 +12,7 @@ export const makeDoubleApplyDetector = () => {
|
|
|
12
12
|
);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
if (__outputs && output !== input) {
|
|
15
|
+
if (__outputs && recordOutput && output !== input) {
|
|
16
16
|
__outputs.add(output);
|
|
17
17
|
}
|
|
18
18
|
};
|
|
@@ -5,7 +5,7 @@ import {mobileRootSelector} from "../../mobile-styles";
|
|
|
5
5
|
|
|
6
6
|
const footerCss = css`
|
|
7
7
|
position: relative;
|
|
8
|
-
border-top: 1px solid var(--
|
|
8
|
+
border-top: 1px solid var(--separatorColor);
|
|
9
9
|
padding: ${space.s6}px ${space.s12}px;
|
|
10
10
|
height: 40px;
|
|
11
11
|
|
package/src/favorites-icon.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import type {ButtonSize} from "./button/base-button";
|
|
|
7
7
|
import {IconButton} from "./button/icon-button";
|
|
8
8
|
import {makeButtonColors} from "./button/make-button-colors";
|
|
9
9
|
import Favorites from "./icons/react/favorites";
|
|
10
|
-
import
|
|
10
|
+
import FavoritesFilledIcon from "./icons/react/favorites-filled";
|
|
11
11
|
import {useTheme} from "./theme-provider";
|
|
12
12
|
|
|
13
13
|
const checkedStyle = css``;
|
|
@@ -81,7 +81,7 @@ export const FavoritesIcon = ({
|
|
|
81
81
|
color="neutral"
|
|
82
82
|
variant="ghost"
|
|
83
83
|
>
|
|
84
|
-
{checked ? <
|
|
84
|
+
{checked ? <FavoritesFilledIcon /> : <Favorites />}
|
|
85
85
|
</IconButton>
|
|
86
86
|
</div>
|
|
87
87
|
);
|