@fibery/ui-kit 6.0.0 → 7.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 +23 -0
- package/package.json +26 -17
- package/scripts/generate-icons.ts +210 -0
- package/src/antd/input-number.tsx +1 -1
- package/src/design-system/colors.ts +6 -0
- package/src/icons/ast/abort.ts +27 -2
- package/src/icons/ast/access-template.ts +29 -2
- package/src/icons/ast/activity-filled.ts +27 -2
- package/src/icons/ast/activity-log.ts +29 -2
- package/src/icons/ast/activity.ts +29 -2
- package/src/icons/ast/add-after.ts +37 -2
- package/src/icons/ast/add-before.ts +37 -2
- package/src/icons/ast/add-compact.ts +27 -2
- package/src/icons/ast/add.ts +27 -2
- package/src/icons/ast/ai-assistant-filled.ts +29 -2
- package/src/icons/ast/ai-assistant.ts +29 -2
- package/src/icons/ast/ai-fibery-build.ts +28 -2
- package/src/icons/ast/alert-triangle.ts +29 -2
- package/src/icons/ast/app.ts +27 -2
- package/src/icons/ast/appearance-auto.ts +27 -2
- package/src/icons/ast/appearance-dark.ts +29 -2
- package/src/icons/ast/appearance-light.ts +29 -2
- package/src/icons/ast/architect.ts +29 -2
- package/src/icons/ast/arrow-back.ts +27 -2
- package/src/icons/ast/arrow-bar-down.ts +27 -2
- package/src/icons/ast/arrow-bar-left.ts +27 -2
- package/src/icons/ast/arrow-bar-right.ts +27 -2
- package/src/icons/ast/arrow-bar-up.ts +27 -2
- package/src/icons/ast/arrow-collapse-vertical.ts +29 -2
- package/src/icons/ast/arrow-collapse.ts +29 -2
- package/src/icons/ast/arrow-down.ts +29 -2
- package/src/icons/ast/arrow-forward.ts +27 -2
- package/src/icons/ast/arrow-left.ts +29 -2
- package/src/icons/ast/arrow-right.ts +29 -2
- package/src/icons/ast/arrow-send.ts +27 -2
- package/src/icons/ast/arrow-up-circle.ts +35 -2
- package/src/icons/ast/arrow-up.ts +29 -2
- package/src/icons/ast/arrows-right-left.ts +29 -2
- package/src/icons/ast/ask-for-input.ts +35 -2
- package/src/icons/ast/asterisk.ts +31 -2
- package/src/icons/ast/atom.ts +39 -2
- package/src/icons/ast/avatar.ts +45 -2
- package/src/icons/ast/backlog.ts +29 -2
- package/src/icons/ast/bell-circle.ts +37 -2
- package/src/icons/ast/bell-off.ts +37 -2
- package/src/icons/ast/bell-ringing.ts +37 -2
- package/src/icons/ast/bell-x.ts +37 -2
- package/src/icons/ast/bring-forward.ts +27 -2
- package/src/icons/ast/bring-to-front.ts +29 -2
- package/src/icons/ast/cards.ts +29 -2
- package/src/icons/ast/chat-bubble.ts +37 -2
- package/src/icons/ast/chat-float.ts +37 -2
- package/src/icons/ast/chat-sidebar.ts +37 -2
- package/src/icons/ast/checked.ts +27 -2
- package/src/icons/ast/circle-check-filled.ts +29 -2
- package/src/icons/ast/circle-check.ts +39 -2
- package/src/icons/ast/circle-cross-filled.ts +29 -2
- package/src/icons/ast/circle-cross.ts +30 -2
- package/src/icons/ast/circle-info-filled.ts +29 -2
- package/src/icons/ast/circle-info.ts +35 -2
- package/src/icons/ast/circle-pause.ts +30 -2
- package/src/icons/ast/circle-play.ts +30 -2
- package/src/icons/ast/clear-input-filled.ts +29 -2
- package/src/icons/ast/clear.ts +37 -2
- package/src/icons/ast/clock-alarm.ts +37 -2
- package/src/icons/ast/clock-forward.ts +29 -2
- package/src/icons/ast/clock.ts +37 -2
- package/src/icons/ast/close.ts +27 -2
- package/src/icons/ast/collapse-all-horizontal.ts +31 -2
- package/src/icons/ast/collapse-all.ts +31 -2
- package/src/icons/ast/color-coding.ts +29 -2
- package/src/icons/ast/columns-2.ts +29 -2
- package/src/icons/ast/columns-4.ts +29 -2
- package/src/icons/ast/columns.ts +29 -2
- package/src/icons/ast/comment-bubble.ts +29 -2
- package/src/icons/ast/comments.ts +37 -2
- package/src/icons/ast/copy.ts +37 -2
- package/src/icons/ast/credits-filled.ts +30 -2
- package/src/icons/ast/crosshair.ts +29 -2
- package/src/icons/ast/database-add.ts +29 -2
- package/src/icons/ast/database-outline.ts +31 -2
- package/src/icons/ast/database.ts +29 -2
- package/src/icons/ast/date-range.ts +37 -2
- package/src/icons/ast/delete.ts +37 -2
- package/src/icons/ast/drag-block-handle.ts +29 -2
- package/src/icons/ast/drag-handle.ts +27 -2
- package/src/icons/ast/duplicate.ts +45 -2
- package/src/icons/ast/dynamic-filter-value.ts +29 -2
- package/src/icons/ast/email.ts +29 -2
- package/src/icons/ast/emoji-delete.ts +47 -2
- package/src/icons/ast/entity-create-filled.ts +35 -2
- package/src/icons/ast/entity-create.ts +29 -2
- package/src/icons/ast/entity-merge.ts +33 -2
- package/src/icons/ast/equation.ts +35 -2
- package/src/icons/ast/expand-all-horizontal.ts +31 -2
- package/src/icons/ast/expand-all.ts +29 -2
- package/src/icons/ast/export.ts +35 -2
- package/src/icons/ast/eye-off.ts +27 -2
- package/src/icons/ast/eye.ts +29 -2
- package/src/icons/ast/favorites-filled.ts +29 -2
- package/src/icons/ast/favorites-off.ts +37 -2
- package/src/icons/ast/favorites.ts +29 -2
- package/src/icons/ast/fibery-mono.ts +27 -2
- package/src/icons/ast/field-units-large.ts +29 -2
- package/src/icons/ast/fields.ts +39 -2
- package/src/icons/ast/file-archive.ts +27 -2
- package/src/icons/ast/file-counter.ts +27 -2
- package/src/icons/ast/file-document.ts +27 -2
- package/src/icons/ast/file-download.ts +39 -2
- package/src/icons/ast/file-image.ts +27 -2
- package/src/icons/ast/file-multiple.ts +27 -2
- package/src/icons/ast/file-other.ts +27 -2
- package/src/icons/ast/file-presentation.ts +27 -2
- package/src/icons/ast/file-table.ts +27 -2
- package/src/icons/ast/file-upload.ts +37 -2
- package/src/icons/ast/file-video.ts +27 -2
- package/src/icons/ast/files.ts +27 -2
- package/src/icons/ast/filter.ts +29 -2
- package/src/icons/ast/fit-to-screen.ts +27 -2
- package/src/icons/ast/focus-mode-off.ts +27 -2
- package/src/icons/ast/focus-mode.ts +27 -2
- package/src/icons/ast/folder-favorite.ts +27 -2
- package/src/icons/ast/folder-smart.ts +37 -2
- package/src/icons/ast/folder.ts +29 -2
- package/src/icons/ast/form-with-cover.ts +88 -2
- package/src/icons/ast/form-without-cover.ts +75 -2
- package/src/icons/ast/fullscreen-mode-off.ts +29 -2
- package/src/icons/ast/fullscreen-mode-on.ts +29 -2
- package/src/icons/ast/gift.ts +29 -2
- package/src/icons/ast/globe-simple.ts +29 -2
- package/src/icons/ast/globe-unpublish.ts +27 -2
- package/src/icons/ast/go-to.ts +29 -2
- package/src/icons/ast/graduation-cap-filled.ts +37 -2
- package/src/icons/ast/group-add.ts +39 -2
- package/src/icons/ast/headphones-ai.ts +37 -2
- package/src/icons/ast/headphones.ts +29 -2
- package/src/icons/ast/highlights.ts +29 -2
- package/src/icons/ast/hint.ts +37 -2
- package/src/icons/ast/home-filled.ts +29 -2
- package/src/icons/ast/home.ts +35 -2
- package/src/icons/ast/image-error.ts +39 -2
- package/src/icons/ast/import-filled.ts +37 -2
- package/src/icons/ast/import.ts +35 -2
- package/src/icons/ast/index.tsx +1 -1
- package/src/icons/ast/integration-add.ts +29 -2
- package/src/icons/ast/integration-discourse.ts +76 -2
- package/src/icons/ast/integration-fibery.ts +802 -2
- package/src/icons/ast/integration-figma.ts +67 -2
- package/src/icons/ast/integration-github.ts +29 -2
- package/src/icons/ast/integration-gitlab.ts +27 -2
- package/src/icons/ast/integration-google-drive.ts +76 -2
- package/src/icons/ast/integration-google-map.ts +67 -2
- package/src/icons/ast/integration-intercom.ts +31 -2
- package/src/icons/ast/integration-jira.ts +29 -2
- package/src/icons/ast/integration-loom.ts +31 -2
- package/src/icons/ast/integration-miro.ts +42 -2
- package/src/icons/ast/integration-mixpanel.ts +31 -2
- package/src/icons/ast/integration-slack.ts +56 -2
- package/src/icons/ast/integration-suggest.ts +29 -2
- package/src/icons/ast/integration-twitter.ts +44 -2
- package/src/icons/ast/integration-unsplash.ts +27 -2
- package/src/icons/ast/integration-youtube.ts +40 -2
- package/src/icons/ast/integration-zendesk.ts +33 -2
- package/src/icons/ast/integration.ts +37 -2
- package/src/icons/ast/integrations-filled.ts +37 -2
- package/src/icons/ast/items-timeline.ts +29 -2
- package/src/icons/ast/items.ts +29 -2
- package/src/icons/ast/key.ts +29 -2
- package/src/icons/ast/keyboard-hide-down.ts +37 -2
- package/src/icons/ast/lab.ts +37 -2
- package/src/icons/ast/layout-double.ts +29 -2
- package/src/icons/ast/layout-multiple.ts +27 -2
- package/src/icons/ast/layout-single.ts +29 -2
- package/src/icons/ast/levels.ts +29 -2
- package/src/icons/ast/limits.ts +30 -2
- package/src/icons/ast/line-divider.ts +29 -2
- package/src/icons/ast/line-jump.ts +35 -2
- package/src/icons/ast/link.ts +43 -2
- package/src/icons/ast/location-edit.ts +37 -2
- package/src/icons/ast/lock-filled.ts +29 -2
- package/src/icons/ast/lock.ts +33 -2
- package/src/icons/ast/logout.ts +35 -2
- package/src/icons/ast/loupe-zoom-in.ts +29 -2
- package/src/icons/ast/loupe-zoom-out.ts +37 -2
- package/src/icons/ast/map-mode.ts +29 -2
- package/src/icons/ast/markdown.ts +30 -2
- package/src/icons/ast/menu-collapser.ts +27 -2
- package/src/icons/ast/mermaid.ts +29 -2
- package/src/icons/ast/message-plus.ts +35 -2
- package/src/icons/ast/milestones.ts +29 -2
- package/src/icons/ast/minus.ts +29 -2
- package/src/icons/ast/mirror-off.ts +39 -2
- package/src/icons/ast/mirror-on.ts +29 -2
- package/src/icons/ast/monitor.ts +29 -2
- package/src/icons/ast/more-compact.ts +27 -2
- package/src/icons/ast/more.ts +27 -2
- package/src/icons/ast/move-down.ts +29 -2
- package/src/icons/ast/move-left.ts +29 -2
- package/src/icons/ast/move-right.ts +29 -2
- package/src/icons/ast/move-up.ts +29 -2
- package/src/icons/ast/no-border.ts +27 -2
- package/src/icons/ast/no-fill.ts +39 -2
- package/src/icons/ast/obj-child.ts +27 -2
- package/src/icons/ast/obj-m2m.ts +27 -2
- package/src/icons/ast/obj-o2o.ts +27 -2
- package/src/icons/ast/obj-parent.ts +27 -2
- package/src/icons/ast/obj-self.ts +27 -2
- package/src/icons/ast/on-schedule.ts +27 -2
- package/src/icons/ast/open-in-panel.ts +35 -2
- package/src/icons/ast/open-link.ts +35 -2
- package/src/icons/ast/page-regular-mode.ts +35 -2
- package/src/icons/ast/page-wide-mode.ts +35 -2
- package/src/icons/ast/panel-add.ts +29 -2
- package/src/icons/ast/pencil.ts +29 -2
- package/src/icons/ast/people-all.ts +29 -2
- package/src/icons/ast/people-check.ts +29 -2
- package/src/icons/ast/people-edit.ts +27 -2
- package/src/icons/ast/people-group-remove.ts +39 -2
- package/src/icons/ast/people-group.ts +29 -2
- package/src/icons/ast/people-invite.ts +37 -2
- package/src/icons/ast/people-remove.ts +37 -2
- package/src/icons/ast/people-role.ts +29 -2
- package/src/icons/ast/people-x.ts +39 -2
- package/src/icons/ast/people.ts +37 -2
- package/src/icons/ast/photo.ts +27 -2
- package/src/icons/ast/pin-filled.ts +33 -2
- package/src/icons/ast/pin.ts +29 -2
- package/src/icons/ast/plus.ts +29 -2
- package/src/icons/ast/preferences.ts +55 -2
- package/src/icons/ast/present-play.ts +39 -2
- package/src/icons/ast/present-stop.ts +27 -2
- package/src/icons/ast/print.ts +27 -2
- package/src/icons/ast/private-items.ts +33 -2
- package/src/icons/ast/propagate.ts +29 -2
- package/src/icons/ast/question.ts +29 -2
- package/src/icons/ast/reactions-add.ts +43 -2
- package/src/icons/ast/read-only.ts +29 -2
- package/src/icons/ast/redo.ts +27 -2
- package/src/icons/ast/references.ts +29 -2
- package/src/icons/ast/refresh.ts +27 -2
- package/src/icons/ast/remove.ts +27 -2
- package/src/icons/ast/reset-password.ts +37 -2
- package/src/icons/ast/richeditor-block-callout.ts +29 -2
- package/src/icons/ast/richeditor-block-code.ts +43 -2
- package/src/icons/ast/richeditor-block-embed.ts +29 -2
- package/src/icons/ast/richeditor-block-entity.ts +27 -2
- package/src/icons/ast/richeditor-block-file.ts +38 -2
- package/src/icons/ast/richeditor-block-h1.ts +29 -2
- package/src/icons/ast/richeditor-block-h2.ts +29 -2
- package/src/icons/ast/richeditor-block-h3.ts +29 -2
- package/src/icons/ast/richeditor-block-h4.ts +37 -2
- package/src/icons/ast/richeditor-block-mention.ts +27 -2
- package/src/icons/ast/richeditor-block-paragraph.ts +34 -2
- package/src/icons/ast/richeditor-block-quote.ts +34 -2
- package/src/icons/ast/richeditor-checklist-create.ts +44 -2
- package/src/icons/ast/richeditor-image-align-center.ts +37 -2
- package/src/icons/ast/richeditor-image-align-left.ts +37 -2
- package/src/icons/ast/richeditor-image-align-right.ts +37 -2
- package/src/icons/ast/richeditor-image.ts +29 -2
- package/src/icons/ast/richeditor-linkedhighlight-create.ts +34 -2
- package/src/icons/ast/richeditor-list-bullet.ts +29 -2
- package/src/icons/ast/richeditor-list-indent.ts +27 -2
- package/src/icons/ast/richeditor-list-ordered.ts +29 -2
- package/src/icons/ast/richeditor-list-unindent.ts +27 -2
- package/src/icons/ast/richeditor-mark-code.ts +27 -2
- package/src/icons/ast/richeditor-mark-em.ts +27 -2
- package/src/icons/ast/richeditor-mark-highlight.ts +27 -2
- package/src/icons/ast/richeditor-mark-strike.ts +27 -2
- package/src/icons/ast/richeditor-mark-strong.ts +27 -2
- package/src/icons/ast/richeditor-mark-text-background-color.ts +34 -2
- package/src/icons/ast/richeditor-mark-underline.ts +27 -2
- package/src/icons/ast/richeditor-table-create.ts +27 -2
- package/src/icons/ast/richeditor-video-upload.ts +36 -2
- package/src/icons/ast/rows.ts +29 -2
- package/src/icons/ast/rule.ts +29 -2
- package/src/icons/ast/search-add.ts +29 -2
- package/src/icons/ast/search-filled.ts +27 -2
- package/src/icons/ast/search-remove.ts +29 -2
- package/src/icons/ast/search.ts +29 -2
- package/src/icons/ast/self-reference-off.ts +27 -2
- package/src/icons/ast/self-reference-on.ts +27 -2
- package/src/icons/ast/send-backward.ts +27 -2
- package/src/icons/ast/send-to-back.ts +29 -2
- package/src/icons/ast/settings-filled.ts +29 -2
- package/src/icons/ast/settings.ts +29 -2
- package/src/icons/ast/share.ts +35 -2
- package/src/icons/ast/shield-keyhole.ts +39 -2
- package/src/icons/ast/show-author.ts +47 -2
- package/src/icons/ast/simple-compass.ts +28 -2
- package/src/icons/ast/slide-menu-filled.ts +29 -2
- package/src/icons/ast/slide-menu.ts +37 -2
- package/src/icons/ast/sort.ts +29 -2
- package/src/icons/ast/space-add.ts +47 -2
- package/src/icons/ast/space-app.ts +29 -2
- package/src/icons/ast/space-generate.ts +29 -2
- package/src/icons/ast/space-move.ts +29 -2
- package/src/icons/ast/space-scratch.ts +29 -2
- package/src/icons/ast/space-template.ts +29 -2
- package/src/icons/ast/spinner.ts +42 -2
- package/src/icons/ast/switch-to-text.ts +37 -2
- package/src/icons/ast/switch-to-widget.ts +35 -2
- package/src/icons/ast/table-layout.ts +31 -2
- package/src/icons/ast/templates-filled.ts +29 -2
- package/src/icons/ast/templates.ts +39 -2
- package/src/icons/ast/terminal.ts +37 -2
- package/src/icons/ast/text-no-wrap.ts +27 -2
- package/src/icons/ast/text-tool-align-bottom.ts +29 -2
- package/src/icons/ast/text-tool-align-middle.ts +29 -2
- package/src/icons/ast/text-tool-align-top.ts +29 -2
- package/src/icons/ast/text-wrap.ts +29 -2
- package/src/icons/ast/toc.ts +27 -2
- package/src/icons/ast/type-button.ts +29 -2
- package/src/icons/ast/type-checkbox.ts +44 -2
- package/src/icons/ast/type-date.ts +30 -2
- package/src/icons/ast/type-email.ts +27 -2
- package/src/icons/ast/type-emoji.ts +45 -2
- package/src/icons/ast/type-formula.ts +27 -2
- package/src/icons/ast/type-location.ts +29 -2
- package/src/icons/ast/type-lookup.ts +44 -2
- package/src/icons/ast/type-money.ts +27 -2
- package/src/icons/ast/type-multi-select.ts +27 -2
- package/src/icons/ast/type-number.ts +29 -2
- package/src/icons/ast/type-percent.ts +27 -2
- package/src/icons/ast/type-phone.ts +27 -2
- package/src/icons/ast/type-relation.ts +44 -2
- package/src/icons/ast/type-rich-text.ts +34 -2
- package/src/icons/ast/type-single-select.ts +27 -2
- package/src/icons/ast/type-text.ts +27 -2
- package/src/icons/ast/undo.ts +27 -2
- package/src/icons/ast/units-avatar.ts +33 -2
- package/src/icons/ast/units-collection.ts +33 -2
- package/src/icons/ast/units-counter.ts +33 -2
- package/src/icons/ast/units-date.ts +33 -2
- package/src/icons/ast/units-field-icon-button.ts +33 -2
- package/src/icons/ast/units-field.ts +31 -2
- package/src/icons/ast/units-input.ts +33 -2
- package/src/icons/ast/units-normal.ts +29 -2
- package/src/icons/ast/units-progress-bar.ts +33 -2
- package/src/icons/ast/units-rich-text.ts +31 -2
- package/src/icons/ast/units-snippet.ts +33 -2
- package/src/icons/ast/unlink.ts +43 -2
- package/src/icons/ast/unlock-filled.ts +33 -2
- package/src/icons/ast/unlock.ts +33 -2
- package/src/icons/ast/usb-flash-drive.ts +37 -2
- package/src/icons/ast/value-clear.ts +35 -2
- package/src/icons/ast/value-edit.ts +31 -2
- package/src/icons/ast/view-ai.ts +31 -2
- package/src/icons/ast/view-app.ts +27 -2
- package/src/icons/ast/view-board.ts +34 -2
- package/src/icons/ast/view-calendar.ts +34 -2
- package/src/icons/ast/view-canvas.ts +34 -2
- package/src/icons/ast/view-chart.ts +34 -2
- package/src/icons/ast/view-dashboard.ts +27 -2
- package/src/icons/ast/view-details.ts +34 -2
- package/src/icons/ast/view-document.ts +34 -2
- package/src/icons/ast/view-embed.ts +27 -2
- package/src/icons/ast/view-feed.ts +27 -2
- package/src/icons/ast/view-form.ts +27 -2
- package/src/icons/ast/view-gallery.ts +27 -2
- package/src/icons/ast/view-gantt.ts +27 -2
- package/src/icons/ast/view-list.ts +34 -2
- package/src/icons/ast/view-map.ts +29 -2
- package/src/icons/ast/view-page.ts +29 -2
- package/src/icons/ast/view-table.ts +34 -2
- package/src/icons/ast/view-timeline.ts +34 -2
- package/src/icons/ast/views.ts +27 -2
- package/src/icons/ast/warning-triangle-filled.ts +29 -2
- package/src/icons/ast/warning-triangle.ts +27 -2
- package/src/icons/ast/warning.ts +27 -2
- package/src/icons/ast/webhooks.ts +44 -2
- package/src/icons/ast/workflow.ts +27 -2
- package/src/icons/icons-integrity.test.ts +36 -4
- package/src/icons/react/abort.tsx +1 -1
- package/src/icons/react/access-template.tsx +1 -1
- package/src/icons/react/activity-filled.tsx +1 -1
- package/src/icons/react/activity-log.tsx +1 -1
- package/src/icons/react/activity.tsx +1 -1
- package/src/icons/react/add-after.tsx +1 -1
- package/src/icons/react/add-before.tsx +1 -1
- package/src/icons/react/add-compact.tsx +1 -1
- package/src/icons/react/add.tsx +1 -1
- package/src/icons/react/ai-assistant-filled.tsx +1 -1
- package/src/icons/react/ai-assistant.tsx +1 -1
- package/src/icons/react/ai-fibery-build.tsx +1 -1
- package/src/icons/react/alert-triangle.tsx +1 -1
- package/src/icons/react/app.tsx +1 -1
- package/src/icons/react/appearance-auto.tsx +1 -1
- package/src/icons/react/appearance-dark.tsx +1 -1
- package/src/icons/react/appearance-light.tsx +1 -1
- package/src/icons/react/architect.tsx +1 -1
- package/src/icons/react/arrow-back.tsx +1 -1
- package/src/icons/react/arrow-bar-down.tsx +1 -1
- package/src/icons/react/arrow-bar-left.tsx +1 -1
- package/src/icons/react/arrow-bar-right.tsx +1 -1
- package/src/icons/react/arrow-bar-up.tsx +1 -1
- package/src/icons/react/arrow-collapse-vertical.tsx +1 -1
- package/src/icons/react/arrow-collapse.tsx +1 -1
- package/src/icons/react/arrow-down.tsx +1 -1
- package/src/icons/react/arrow-forward.tsx +1 -1
- package/src/icons/react/arrow-left.tsx +1 -1
- package/src/icons/react/arrow-right.tsx +1 -1
- package/src/icons/react/arrow-send.tsx +1 -1
- package/src/icons/react/arrow-up-circle.tsx +1 -1
- package/src/icons/react/arrow-up.tsx +1 -1
- package/src/icons/react/arrows-right-left.tsx +1 -1
- package/src/icons/react/ask-for-input.tsx +1 -1
- package/src/icons/react/asterisk.tsx +1 -1
- package/src/icons/react/atom.tsx +1 -1
- package/src/icons/react/avatar.tsx +1 -1
- package/src/icons/react/backlog.tsx +1 -1
- package/src/icons/react/bell-circle.tsx +1 -1
- package/src/icons/react/bell-off.tsx +1 -1
- package/src/icons/react/bell-ringing.tsx +1 -1
- package/src/icons/react/bell-x.tsx +1 -1
- package/src/icons/react/bring-forward.tsx +1 -1
- package/src/icons/react/bring-to-front.tsx +1 -1
- package/src/icons/react/cards.tsx +1 -1
- package/src/icons/react/chat-bubble.tsx +1 -1
- package/src/icons/react/chat-float.tsx +1 -1
- package/src/icons/react/chat-sidebar.tsx +1 -1
- package/src/icons/react/checked.tsx +1 -1
- package/src/icons/react/circle-check-filled.tsx +1 -1
- package/src/icons/react/circle-check.tsx +1 -1
- package/src/icons/react/circle-cross-filled.tsx +1 -1
- package/src/icons/react/circle-cross.tsx +1 -1
- package/src/icons/react/circle-info-filled.tsx +1 -1
- package/src/icons/react/circle-info.tsx +1 -1
- package/src/icons/react/circle-pause.tsx +1 -1
- package/src/icons/react/circle-play.tsx +1 -1
- package/src/icons/react/clear-input-filled.tsx +1 -1
- package/src/icons/react/clear.tsx +1 -1
- package/src/icons/react/clock-alarm.tsx +1 -1
- package/src/icons/react/clock-forward.tsx +1 -1
- package/src/icons/react/clock.tsx +1 -1
- package/src/icons/react/close.tsx +1 -1
- package/src/icons/react/collapse-all-horizontal.tsx +1 -1
- package/src/icons/react/collapse-all.tsx +1 -1
- package/src/icons/react/color-coding.tsx +1 -1
- package/src/icons/react/columns-2.tsx +1 -1
- package/src/icons/react/columns-4.tsx +1 -1
- package/src/icons/react/columns.tsx +1 -1
- package/src/icons/react/comment-bubble.tsx +1 -1
- package/src/icons/react/comments.tsx +1 -1
- package/src/icons/react/copy.tsx +1 -1
- package/src/icons/react/credits-filled.tsx +1 -1
- package/src/icons/react/crosshair.tsx +1 -1
- package/src/icons/react/database-add.tsx +1 -1
- package/src/icons/react/database-outline.tsx +1 -1
- package/src/icons/react/database.tsx +1 -1
- package/src/icons/react/date-range.tsx +1 -1
- package/src/icons/react/delete.tsx +1 -1
- package/src/icons/react/drag-block-handle.tsx +1 -1
- package/src/icons/react/drag-handle.tsx +1 -1
- package/src/icons/react/duplicate.tsx +1 -1
- package/src/icons/react/dynamic-filter-value.tsx +1 -1
- package/src/icons/react/email.tsx +1 -1
- package/src/icons/react/emoji-delete.tsx +1 -1
- package/src/icons/react/entity-create-filled.tsx +1 -1
- package/src/icons/react/entity-create.tsx +1 -1
- package/src/icons/react/entity-merge.tsx +1 -1
- package/src/icons/react/equation.tsx +1 -1
- package/src/icons/react/expand-all-horizontal.tsx +1 -1
- package/src/icons/react/expand-all.tsx +1 -1
- package/src/icons/react/export.tsx +1 -1
- package/src/icons/react/eye-off.tsx +1 -1
- package/src/icons/react/eye.tsx +1 -1
- package/src/icons/react/favorites-filled.tsx +1 -1
- package/src/icons/react/favorites-off.tsx +1 -1
- package/src/icons/react/favorites.tsx +1 -1
- package/src/icons/react/fibery-mono.tsx +1 -1
- package/src/icons/react/field-units-large.tsx +1 -1
- package/src/icons/react/fields.tsx +1 -1
- package/src/icons/react/file-archive.tsx +1 -1
- package/src/icons/react/file-counter.tsx +1 -1
- package/src/icons/react/file-document.tsx +1 -1
- package/src/icons/react/file-download.tsx +1 -1
- package/src/icons/react/file-image.tsx +1 -1
- package/src/icons/react/file-multiple.tsx +1 -1
- package/src/icons/react/file-other.tsx +1 -1
- package/src/icons/react/file-presentation.tsx +1 -1
- package/src/icons/react/file-table.tsx +1 -1
- package/src/icons/react/file-upload.tsx +1 -1
- package/src/icons/react/file-video.tsx +1 -1
- package/src/icons/react/files.tsx +1 -1
- package/src/icons/react/filter.tsx +1 -1
- package/src/icons/react/fit-to-screen.tsx +1 -1
- package/src/icons/react/focus-mode-off.tsx +1 -1
- package/src/icons/react/focus-mode.tsx +1 -1
- package/src/icons/react/folder-favorite.tsx +1 -1
- package/src/icons/react/folder-smart.tsx +1 -1
- package/src/icons/react/folder.tsx +1 -1
- package/src/icons/react/form-with-cover.tsx +1 -1
- package/src/icons/react/form-without-cover.tsx +1 -1
- package/src/icons/react/fullscreen-mode-off.tsx +1 -1
- package/src/icons/react/fullscreen-mode-on.tsx +1 -1
- package/src/icons/react/gift.tsx +1 -1
- package/src/icons/react/globe-simple.tsx +1 -1
- package/src/icons/react/globe-unpublish.tsx +1 -1
- package/src/icons/react/go-to.tsx +1 -1
- package/src/icons/react/graduation-cap-filled.tsx +1 -1
- package/src/icons/react/group-add.tsx +1 -1
- package/src/icons/react/headphones-ai.tsx +1 -1
- package/src/icons/react/headphones.tsx +1 -1
- package/src/icons/react/highlights.tsx +1 -1
- package/src/icons/react/hint.tsx +1 -1
- package/src/icons/react/home-filled.tsx +1 -1
- package/src/icons/react/home.tsx +1 -1
- package/src/icons/react/image-error.tsx +1 -1
- package/src/icons/react/import-filled.tsx +1 -1
- package/src/icons/react/import.tsx +1 -1
- package/src/icons/react/index.tsx +1 -1
- package/src/icons/react/integration-add.tsx +1 -1
- package/src/icons/react/integration-discourse.tsx +1 -1
- package/src/icons/react/integration-fibery.tsx +1 -1
- package/src/icons/react/integration-figma.tsx +1 -1
- package/src/icons/react/integration-github.tsx +1 -1
- package/src/icons/react/integration-gitlab.tsx +1 -1
- package/src/icons/react/integration-google-drive.tsx +1 -1
- package/src/icons/react/integration-google-map.tsx +1 -1
- package/src/icons/react/integration-intercom.tsx +1 -1
- package/src/icons/react/integration-jira.tsx +1 -1
- package/src/icons/react/integration-loom.tsx +1 -1
- package/src/icons/react/integration-miro.tsx +1 -1
- package/src/icons/react/integration-mixpanel.tsx +1 -1
- package/src/icons/react/integration-slack.tsx +1 -1
- package/src/icons/react/integration-suggest.tsx +1 -1
- package/src/icons/react/integration-twitter.tsx +1 -1
- package/src/icons/react/integration-unsplash.tsx +1 -1
- package/src/icons/react/integration-youtube.tsx +1 -1
- package/src/icons/react/integration-zendesk.tsx +1 -1
- package/src/icons/react/integration.tsx +1 -1
- package/src/icons/react/integrations-filled.tsx +1 -1
- package/src/icons/react/items-timeline.tsx +1 -1
- package/src/icons/react/items.tsx +1 -1
- package/src/icons/react/key.tsx +1 -1
- package/src/icons/react/keyboard-hide-down.tsx +1 -1
- package/src/icons/react/lab.tsx +1 -1
- package/src/icons/react/layout-double.tsx +1 -1
- package/src/icons/react/layout-multiple.tsx +1 -1
- package/src/icons/react/layout-single.tsx +1 -1
- package/src/icons/react/levels.tsx +1 -1
- package/src/icons/react/limits.tsx +1 -1
- package/src/icons/react/line-divider.tsx +1 -1
- package/src/icons/react/line-jump.tsx +1 -1
- package/src/icons/react/link.tsx +1 -1
- package/src/icons/react/location-edit.tsx +1 -1
- package/src/icons/react/lock-filled.tsx +1 -1
- package/src/icons/react/lock.tsx +1 -1
- package/src/icons/react/logout.tsx +1 -1
- package/src/icons/react/loupe-zoom-in.tsx +1 -1
- package/src/icons/react/loupe-zoom-out.tsx +1 -1
- package/src/icons/react/map-mode.tsx +1 -1
- package/src/icons/react/markdown.tsx +1 -1
- package/src/icons/react/menu-collapser.tsx +1 -1
- package/src/icons/react/mermaid.tsx +1 -1
- package/src/icons/react/message-plus.tsx +1 -1
- package/src/icons/react/milestones.tsx +1 -1
- package/src/icons/react/minus.tsx +1 -1
- package/src/icons/react/mirror-off.tsx +1 -1
- package/src/icons/react/mirror-on.tsx +1 -1
- package/src/icons/react/monitor.tsx +1 -1
- package/src/icons/react/more-compact.tsx +1 -1
- package/src/icons/react/more.tsx +1 -1
- package/src/icons/react/move-down.tsx +1 -1
- package/src/icons/react/move-left.tsx +1 -1
- package/src/icons/react/move-right.tsx +1 -1
- package/src/icons/react/move-up.tsx +1 -1
- package/src/icons/react/no-border.tsx +1 -1
- package/src/icons/react/no-fill.tsx +1 -1
- package/src/icons/react/obj-child.tsx +1 -1
- package/src/icons/react/obj-m2m.tsx +1 -1
- package/src/icons/react/obj-o2o.tsx +1 -1
- package/src/icons/react/obj-parent.tsx +1 -1
- package/src/icons/react/obj-self.tsx +1 -1
- package/src/icons/react/on-schedule.tsx +1 -1
- package/src/icons/react/open-in-panel.tsx +1 -1
- package/src/icons/react/open-link.tsx +1 -1
- package/src/icons/react/page-regular-mode.tsx +1 -1
- package/src/icons/react/page-wide-mode.tsx +1 -1
- package/src/icons/react/panel-add.tsx +1 -1
- package/src/icons/react/pencil.tsx +1 -1
- package/src/icons/react/people-all.tsx +1 -1
- package/src/icons/react/people-check.tsx +1 -1
- package/src/icons/react/people-edit.tsx +1 -1
- package/src/icons/react/people-group-remove.tsx +1 -1
- package/src/icons/react/people-group.tsx +1 -1
- package/src/icons/react/people-invite.tsx +1 -1
- package/src/icons/react/people-remove.tsx +1 -1
- package/src/icons/react/people-role.tsx +1 -1
- package/src/icons/react/people-x.tsx +1 -1
- package/src/icons/react/people.tsx +1 -1
- package/src/icons/react/photo.tsx +1 -1
- package/src/icons/react/pin-filled.tsx +1 -1
- package/src/icons/react/pin.tsx +1 -1
- package/src/icons/react/plus.tsx +1 -1
- package/src/icons/react/preferences.tsx +1 -1
- package/src/icons/react/present-play.tsx +1 -1
- package/src/icons/react/present-stop.tsx +1 -1
- package/src/icons/react/print.tsx +1 -1
- package/src/icons/react/private-items.tsx +1 -1
- package/src/icons/react/propagate.tsx +1 -1
- package/src/icons/react/question.tsx +1 -1
- package/src/icons/react/reactions-add.tsx +1 -1
- package/src/icons/react/read-only.tsx +1 -1
- package/src/icons/react/redo.tsx +1 -1
- package/src/icons/react/references.tsx +1 -1
- package/src/icons/react/refresh.tsx +1 -1
- package/src/icons/react/remove.tsx +1 -1
- package/src/icons/react/reset-password.tsx +1 -1
- 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 +1 -1
- 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/rows.tsx +1 -1
- package/src/icons/react/rule.tsx +1 -1
- package/src/icons/react/search-add.tsx +1 -1
- package/src/icons/react/search-filled.tsx +1 -1
- package/src/icons/react/search-remove.tsx +1 -1
- package/src/icons/react/search.tsx +1 -1
- package/src/icons/react/self-reference-off.tsx +1 -1
- package/src/icons/react/self-reference-on.tsx +1 -1
- package/src/icons/react/send-backward.tsx +1 -1
- package/src/icons/react/send-to-back.tsx +1 -1
- package/src/icons/react/settings-filled.tsx +1 -1
- package/src/icons/react/settings.tsx +1 -1
- package/src/icons/react/share.tsx +1 -1
- package/src/icons/react/shield-keyhole.tsx +1 -1
- package/src/icons/react/show-author.tsx +1 -1
- package/src/icons/react/simple-compass.tsx +1 -1
- package/src/icons/react/slide-menu-filled.tsx +1 -1
- package/src/icons/react/slide-menu.tsx +1 -1
- package/src/icons/react/sort.tsx +1 -1
- package/src/icons/react/space-add.tsx +1 -1
- package/src/icons/react/space-app.tsx +1 -1
- package/src/icons/react/space-generate.tsx +1 -1
- package/src/icons/react/space-move.tsx +1 -1
- package/src/icons/react/space-scratch.tsx +1 -1
- package/src/icons/react/space-template.tsx +1 -1
- package/src/icons/react/spinner.tsx +1 -1
- package/src/icons/react/switch-to-text.tsx +1 -1
- package/src/icons/react/switch-to-widget.tsx +1 -1
- package/src/icons/react/table-layout.tsx +1 -1
- package/src/icons/react/templates-filled.tsx +1 -1
- package/src/icons/react/templates.tsx +1 -1
- package/src/icons/react/terminal.tsx +1 -1
- package/src/icons/react/text-no-wrap.tsx +1 -1
- package/src/icons/react/text-tool-align-bottom.tsx +1 -1
- package/src/icons/react/text-tool-align-middle.tsx +1 -1
- package/src/icons/react/text-tool-align-top.tsx +1 -1
- package/src/icons/react/text-wrap.tsx +1 -1
- package/src/icons/react/toc.tsx +1 -1
- 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/undo.tsx +1 -1
- 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 +1 -1
- 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/unlink.tsx +1 -1
- package/src/icons/react/unlock-filled.tsx +1 -1
- package/src/icons/react/unlock.tsx +1 -1
- package/src/icons/react/usb-flash-drive.tsx +1 -1
- package/src/icons/react/value-clear.tsx +1 -1
- package/src/icons/react/value-edit.tsx +1 -1
- package/src/icons/react/view-ai.tsx +1 -1
- package/src/icons/react/view-app.tsx +1 -1
- package/src/icons/react/view-board.tsx +1 -1
- package/src/icons/react/view-calendar.tsx +1 -1
- package/src/icons/react/view-canvas.tsx +1 -1
- package/src/icons/react/view-chart.tsx +1 -1
- package/src/icons/react/view-dashboard.tsx +1 -1
- package/src/icons/react/view-details.tsx +1 -1
- package/src/icons/react/view-document.tsx +1 -1
- package/src/icons/react/view-embed.tsx +1 -1
- package/src/icons/react/view-feed.tsx +1 -1
- package/src/icons/react/view-form.tsx +1 -1
- package/src/icons/react/view-gallery.tsx +1 -1
- package/src/icons/react/view-gantt.tsx +1 -1
- package/src/icons/react/view-list.tsx +1 -1
- package/src/icons/react/view-map.tsx +1 -1
- package/src/icons/react/view-page.tsx +1 -1
- package/src/icons/react/view-table.tsx +1 -1
- package/src/icons/react/view-timeline.tsx +1 -1
- package/src/icons/react/views.tsx +1 -1
- package/src/icons/react/warning-triangle-filled.tsx +1 -1
- package/src/icons/react/warning-triangle.tsx +1 -1
- package/src/icons/react/warning.tsx +1 -1
- package/src/icons/react/webhooks.tsx +1 -1
- package/src/icons/react/workflow.tsx +1 -1
- package/src/number-input/number-input-inline-with-autosize.tsx +10 -2
- package/src/number-input/styles.ts +13 -0
- package/src/number-input/text-area-auto-sized.tsx +4 -3
- package/src/number-input/text-input-auto-sized.tsx +4 -3
- package/src/palettes/inspect.defs.colors.neutral-arch.test.ts +12 -0
- package/src/palettes/inspect.defs.colors.neutral-user.test.ts +12 -0
- package/src/palettes/inspect.defs.colors.warm-arch.test.ts +12 -0
- package/src/palettes/inspect.defs.colors.warm-user.test.ts +12 -0
- package/src/theming.generated.css +12 -0
- package/src/theming.generated.ts +15 -0
- package/src/tooltip.tsx +4 -1
- package/src/unit/index.tsx +2 -63
- package/src/unit/labeled-unit.tsx +28 -0
- package/src/unit/primitive.tsx +14 -17
- package/src/unit/styles.ts +17 -29
- package/src/unit/types.ts +4 -2
- package/src/unit/unit-content.tsx +15 -10
- package/src/unit/unit.tsx +88 -0
- package/vite.config.ts +85 -0
- package/babel.config.js +0 -3
- package/scripts/generate-icons.mjs +0 -142
- package/src/__mocks__/style-mock.js +0 -1
- package/src/unit/unit-with-title.tsx +0 -13
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was automatically generated. Do not edit manually.
|
|
3
3
|
*
|
|
4
4
|
* @see import("../svg/warning-triangle-filled.svg")
|
|
5
|
-
* @see import("../../../scripts/generate-icons.
|
|
5
|
+
* @see import("../../../scripts/generate-icons.ts")
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import {forwardRef} from "react";
|
|
@@ -9,7 +9,7 @@ import {add, sub} from "./decimal";
|
|
|
9
9
|
import {invalidInputStyle} from "./edit-unit-styles";
|
|
10
10
|
import {Stack} from "./stack";
|
|
11
11
|
import {StepButton, ValueWithStepperWrapper} from "./step-button";
|
|
12
|
-
import {hiddenCss, inputStyle, textInlineStyle} from "./styles";
|
|
12
|
+
import {hiddenCss, inputStyle, pillInputStyle, textInlineStyle} from "./styles";
|
|
13
13
|
import type {NumberInputProps, Value} from "./types";
|
|
14
14
|
import {formatValue, getStep, parseValue} from "./utils";
|
|
15
15
|
|
|
@@ -38,9 +38,16 @@ const inputCss = css`
|
|
|
38
38
|
}
|
|
39
39
|
`;
|
|
40
40
|
|
|
41
|
+
const pillCss = css`
|
|
42
|
+
input {
|
|
43
|
+
${pillInputStyle}
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
|
|
41
47
|
type Props = NumberInputProps & {
|
|
42
48
|
width?: number;
|
|
43
49
|
invalid?: boolean;
|
|
50
|
+
pill?: boolean;
|
|
44
51
|
};
|
|
45
52
|
|
|
46
53
|
export const NumberInputInlineWithAutosize = ({
|
|
@@ -51,6 +58,7 @@ export const NumberInputInlineWithAutosize = ({
|
|
|
51
58
|
autoFocus,
|
|
52
59
|
placeholder,
|
|
53
60
|
invalid,
|
|
61
|
+
pill,
|
|
54
62
|
onFocus,
|
|
55
63
|
onBlur,
|
|
56
64
|
onChange = () => {},
|
|
@@ -128,7 +136,7 @@ export const NumberInputInlineWithAutosize = ({
|
|
|
128
136
|
onStep={handleStep}
|
|
129
137
|
onClick={stopPropagation}
|
|
130
138
|
{...rest}
|
|
131
|
-
className={cx(inputCss, invalid && invalidCss)}
|
|
139
|
+
className={cx(inputCss, pill && pillCss, invalid && invalidCss)}
|
|
132
140
|
/>
|
|
133
141
|
}
|
|
134
142
|
/>
|
|
@@ -32,6 +32,19 @@ export const inputCss = css`
|
|
|
32
32
|
${inputStyle}
|
|
33
33
|
`;
|
|
34
34
|
|
|
35
|
+
export const pillInputStyle = {
|
|
36
|
+
borderRadius: border.radius16,
|
|
37
|
+
boxShadow: "inset 0 0 0 0.5px rgb(0 0 0 / 4%)",
|
|
38
|
+
|
|
39
|
+
"&:focus": {
|
|
40
|
+
boxShadow: `${themeVars.inputBorderFocusColorThin} inset`,
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const pillInputCss = css`
|
|
45
|
+
${pillInputStyle}
|
|
46
|
+
`;
|
|
47
|
+
|
|
35
48
|
export const textInlineStyle = {
|
|
36
49
|
textWrap: "normal",
|
|
37
50
|
textOverflow: "ellipsis",
|
|
@@ -4,15 +4,16 @@ import {useEffect, useMemo, useRef} from "react";
|
|
|
4
4
|
|
|
5
5
|
import {invalidInputClass} from "./edit-unit-styles";
|
|
6
6
|
import {Stack} from "./stack";
|
|
7
|
-
import {hiddenCss, inputCss, textAreaCss} from "./styles";
|
|
7
|
+
import {hiddenCss, inputCss, pillInputCss, textAreaCss} from "./styles";
|
|
8
8
|
|
|
9
9
|
type Props = {
|
|
10
10
|
width?: number;
|
|
11
11
|
invalid?: boolean;
|
|
12
12
|
autoSelect?: boolean;
|
|
13
|
+
pill?: boolean;
|
|
13
14
|
} & React.ComponentProps<"textarea">;
|
|
14
15
|
|
|
15
|
-
export const TextAreaAutoSized = ({value, placeholder, invalid, autoSelect, ...rest}: Props) => {
|
|
16
|
+
export const TextAreaAutoSized = ({value, placeholder, invalid, autoSelect, pill, ...rest}: Props) => {
|
|
16
17
|
const ref = useRef<HTMLTextAreaElement>(null);
|
|
17
18
|
const initialValue = useRef(value);
|
|
18
19
|
|
|
@@ -40,7 +41,7 @@ export const TextAreaAutoSized = ({value, placeholder, invalid, autoSelect, ...r
|
|
|
40
41
|
placeholder={placeholder}
|
|
41
42
|
onClick={stopPropagation}
|
|
42
43
|
{...rest}
|
|
43
|
-
className={cx(inputCss, textAreaCss, invalid && invalidInputClass)}
|
|
44
|
+
className={cx(inputCss, textAreaCss, pill && pillInputCss, invalid && invalidInputClass)}
|
|
44
45
|
/>
|
|
45
46
|
}
|
|
46
47
|
/>
|
|
@@ -4,16 +4,17 @@ import {useEffect, useMemo, useRef} from "react";
|
|
|
4
4
|
|
|
5
5
|
import {invalidInputClass} from "./edit-unit-styles";
|
|
6
6
|
import {Stack} from "./stack";
|
|
7
|
-
import {hiddenCss, inputCss, textInlineCss} from "./styles";
|
|
7
|
+
import {hiddenCss, inputCss, pillInputCss, textInlineCss} from "./styles";
|
|
8
8
|
|
|
9
9
|
type Props = {
|
|
10
10
|
value?: string;
|
|
11
11
|
width?: number;
|
|
12
12
|
invalid?: boolean;
|
|
13
13
|
autoSelect?: boolean;
|
|
14
|
+
pill?: boolean;
|
|
14
15
|
} & Omit<React.ComponentProps<"input">, "value">;
|
|
15
16
|
|
|
16
|
-
export const TextInputAutoSized = ({value, placeholder, invalid, autoSelect, ...rest}: Props) => {
|
|
17
|
+
export const TextInputAutoSized = ({value, placeholder, invalid, autoSelect, pill, ...rest}: Props) => {
|
|
17
18
|
const ref = useRef<HTMLInputElement>(null);
|
|
18
19
|
|
|
19
20
|
const hiddenValue = useMemo(() => {
|
|
@@ -42,7 +43,7 @@ export const TextInputAutoSized = ({value, placeholder, invalid, autoSelect, ...
|
|
|
42
43
|
placeholder={placeholder}
|
|
43
44
|
onClick={stopPropagation}
|
|
44
45
|
{...rest}
|
|
45
|
-
className={cx(inputCss, invalid && invalidInputClass)}
|
|
46
|
+
className={cx(inputCss, pill && pillInputCss, invalid && invalidInputClass)}
|
|
46
47
|
/>
|
|
47
48
|
}
|
|
48
49
|
/>
|
|
@@ -1878,14 +1878,26 @@ test("snapshot", () => {
|
|
|
1878
1878
|
"0 0 0 1px #E3E3E3CC | hsl(none 0% 89% / 0.8 ) | oklch(0.92 0 none / 0.8 )",
|
|
1879
1879
|
"0 0 0 1px #52525266 | hsl(none 0% 32% / 0.4 ) | oklch(0.44 0 none / 0.4 )",
|
|
1880
1880
|
],
|
|
1881
|
+
"inputBorderColorThin": [
|
|
1882
|
+
"0 0 0 0.5px #E3E3E3CC | hsl(none 0% 89% / 0.8 ) | oklch(0.92 0 none / 0.8 )",
|
|
1883
|
+
"0 0 0 0.5px #52525266 | hsl(none 0% 32% / 0.4 ) | oklch(0.44 0 none / 0.4 )",
|
|
1884
|
+
],
|
|
1881
1885
|
"inputBorderFocusColor": [
|
|
1882
1886
|
"0 0 0 1px #C7C7C7 | hsl(none 0% 78%) | oklch(0.83 0 none)",
|
|
1883
1887
|
"0 0 0 1px #707070 | hsl(none 0% 44%) | oklch(0.55 0 none)",
|
|
1884
1888
|
],
|
|
1889
|
+
"inputBorderFocusColorThin": [
|
|
1890
|
+
"0 0 0 0.5px #C7C7C7 | hsl(none 0% 78%) | oklch(0.83 0 none)",
|
|
1891
|
+
"0 0 0 0.5px #707070 | hsl(none 0% 44%) | oklch(0.55 0 none)",
|
|
1892
|
+
],
|
|
1885
1893
|
"inputBorderHoverColor": [
|
|
1886
1894
|
"0 0 0 1px #DBDBDB | hsl(none 0% 86%) | oklch(0.89 0 none)",
|
|
1887
1895
|
"0 0 0 1px #3D3D3D | hsl(none 0% 24%) | oklch(0.36 0 none)",
|
|
1888
1896
|
],
|
|
1897
|
+
"inputBorderHoverColorThin": [
|
|
1898
|
+
"0 0 0 0.5px #DBDBDB | hsl(none 0% 86%) | oklch(0.89 0 none)",
|
|
1899
|
+
"0 0 0 0.5px #3D3D3D | hsl(none 0% 24%) | oklch(0.36 0 none)",
|
|
1900
|
+
],
|
|
1889
1901
|
"inputBorderWarningColor": [
|
|
1890
1902
|
"0 0 0 1px #F6D900 | hsl( 53 100% 48%) | oklch(0.88 0.18 99 )",
|
|
1891
1903
|
"0 0 0 1px #6D5F00 | hsl( 52 100% 21%) | oklch(0.48 0.1 99 )",
|
|
@@ -1878,14 +1878,26 @@ test("snapshot", () => {
|
|
|
1878
1878
|
"0 0 0 1px #E3E3E3CC | hsl(none 0% 89% / 0.8 ) | oklch(0.92 0 none / 0.8 )",
|
|
1879
1879
|
"0 0 0 1px #52525266 | hsl(none 0% 32% / 0.4 ) | oklch(0.44 0 none / 0.4 )",
|
|
1880
1880
|
],
|
|
1881
|
+
"inputBorderColorThin": [
|
|
1882
|
+
"0 0 0 0.5px #E3E3E3CC | hsl(none 0% 89% / 0.8 ) | oklch(0.92 0 none / 0.8 )",
|
|
1883
|
+
"0 0 0 0.5px #52525266 | hsl(none 0% 32% / 0.4 ) | oklch(0.44 0 none / 0.4 )",
|
|
1884
|
+
],
|
|
1881
1885
|
"inputBorderFocusColor": [
|
|
1882
1886
|
"0 0 0 1px #C7C7C7 | hsl(none 0% 78%) | oklch(0.83 0 none)",
|
|
1883
1887
|
"0 0 0 1px #707070 | hsl(none 0% 44%) | oklch(0.55 0 none)",
|
|
1884
1888
|
],
|
|
1889
|
+
"inputBorderFocusColorThin": [
|
|
1890
|
+
"0 0 0 0.5px #C7C7C7 | hsl(none 0% 78%) | oklch(0.83 0 none)",
|
|
1891
|
+
"0 0 0 0.5px #707070 | hsl(none 0% 44%) | oklch(0.55 0 none)",
|
|
1892
|
+
],
|
|
1885
1893
|
"inputBorderHoverColor": [
|
|
1886
1894
|
"0 0 0 1px #DBDBDB | hsl(none 0% 86%) | oklch(0.89 0 none)",
|
|
1887
1895
|
"0 0 0 1px #3D3D3D | hsl(none 0% 24%) | oklch(0.36 0 none)",
|
|
1888
1896
|
],
|
|
1897
|
+
"inputBorderHoverColorThin": [
|
|
1898
|
+
"0 0 0 0.5px #DBDBDB | hsl(none 0% 86%) | oklch(0.89 0 none)",
|
|
1899
|
+
"0 0 0 0.5px #3D3D3D | hsl(none 0% 24%) | oklch(0.36 0 none)",
|
|
1900
|
+
],
|
|
1889
1901
|
"inputBorderWarningColor": [
|
|
1890
1902
|
"0 0 0 1px #F6D900 | hsl( 53 100% 48%) | oklch(0.88 0.18 99 )",
|
|
1891
1903
|
"0 0 0 1px #6D5F00 | hsl( 52 100% 21%) | oklch(0.48 0.1 99 )",
|
|
@@ -1880,14 +1880,26 @@ test("snapshot", () => {
|
|
|
1880
1880
|
"0 0 0 1px #E8E2DBCC | hsl( 32 22% 88% / 0.8 ) | oklch(0.92 0.01 72 / 0.8 )",
|
|
1881
1881
|
"0 0 0 1px #56504E66 | hsl( 15 5% 32% / 0.4 ) | oklch(0.44 0.01 39 / 0.4 )",
|
|
1882
1882
|
],
|
|
1883
|
+
"inputBorderColorThin": [
|
|
1884
|
+
"0 0 0 0.5px #E8E2DBCC | hsl( 32 22% 88% / 0.8 ) | oklch(0.92 0.01 72 / 0.8 )",
|
|
1885
|
+
"0 0 0 0.5px #56504E66 | hsl( 15 5% 32% / 0.4 ) | oklch(0.44 0.01 39 / 0.4 )",
|
|
1886
|
+
],
|
|
1883
1887
|
"inputBorderFocusColor": [
|
|
1884
1888
|
"0 0 0 1px #CCC6BF | hsl( 32 11% 77%) | oklch(0.83 0.01 72 )",
|
|
1885
1889
|
"0 0 0 1px #756F6D | hsl( 15 4% 44%) | oklch(0.55 0.01 39 )",
|
|
1886
1890
|
],
|
|
1891
|
+
"inputBorderFocusColorThin": [
|
|
1892
|
+
"0 0 0 0.5px #CCC6BF | hsl( 32 11% 77%) | oklch(0.83 0.01 72 )",
|
|
1893
|
+
"0 0 0 0.5px #756F6D | hsl( 15 4% 44%) | oklch(0.55 0.01 39 )",
|
|
1894
|
+
],
|
|
1887
1895
|
"inputBorderHoverColor": [
|
|
1888
1896
|
"0 0 0 1px #E1DAD3 | hsl( 30 19% 85%) | oklch(0.89 0.01 68 )",
|
|
1889
1897
|
"0 0 0 1px #413C3A | hsl( 17 6% 24%) | oklch(0.36 0.01 43 )",
|
|
1890
1898
|
],
|
|
1899
|
+
"inputBorderHoverColorThin": [
|
|
1900
|
+
"0 0 0 0.5px #E1DAD3 | hsl( 30 19% 85%) | oklch(0.89 0.01 68 )",
|
|
1901
|
+
"0 0 0 0.5px #413C3A | hsl( 17 6% 24%) | oklch(0.36 0.01 43 )",
|
|
1902
|
+
],
|
|
1891
1903
|
"inputBorderWarningColor": [
|
|
1892
1904
|
"0 0 0 1px #F7D900 | hsl( 53 100% 48%) | oklch(0.88 0.18 99 )",
|
|
1893
1905
|
"0 0 0 1px #6E5F00 | hsl( 52 100% 22%) | oklch(0.49 0.1 98 )",
|
|
@@ -1880,14 +1880,26 @@ test("snapshot", () => {
|
|
|
1880
1880
|
"0 0 0 1px #E8E2DBCC | hsl( 32 22% 88% / 0.8 ) | oklch(0.92 0.01 72 / 0.8 )",
|
|
1881
1881
|
"0 0 0 1px #56504E66 | hsl( 15 5% 32% / 0.4 ) | oklch(0.44 0.01 39 / 0.4 )",
|
|
1882
1882
|
],
|
|
1883
|
+
"inputBorderColorThin": [
|
|
1884
|
+
"0 0 0 0.5px #E8E2DBCC | hsl( 32 22% 88% / 0.8 ) | oklch(0.92 0.01 72 / 0.8 )",
|
|
1885
|
+
"0 0 0 0.5px #56504E66 | hsl( 15 5% 32% / 0.4 ) | oklch(0.44 0.01 39 / 0.4 )",
|
|
1886
|
+
],
|
|
1883
1887
|
"inputBorderFocusColor": [
|
|
1884
1888
|
"0 0 0 1px #CCC6BF | hsl( 32 11% 77%) | oklch(0.83 0.01 72 )",
|
|
1885
1889
|
"0 0 0 1px #756F6D | hsl( 15 4% 44%) | oklch(0.55 0.01 39 )",
|
|
1886
1890
|
],
|
|
1891
|
+
"inputBorderFocusColorThin": [
|
|
1892
|
+
"0 0 0 0.5px #CCC6BF | hsl( 32 11% 77%) | oklch(0.83 0.01 72 )",
|
|
1893
|
+
"0 0 0 0.5px #756F6D | hsl( 15 4% 44%) | oklch(0.55 0.01 39 )",
|
|
1894
|
+
],
|
|
1887
1895
|
"inputBorderHoverColor": [
|
|
1888
1896
|
"0 0 0 1px #E1DAD3 | hsl( 30 19% 85%) | oklch(0.89 0.01 68 )",
|
|
1889
1897
|
"0 0 0 1px #413C3A | hsl( 17 6% 24%) | oklch(0.36 0.01 43 )",
|
|
1890
1898
|
],
|
|
1899
|
+
"inputBorderHoverColorThin": [
|
|
1900
|
+
"0 0 0 0.5px #E1DAD3 | hsl( 30 19% 85%) | oklch(0.89 0.01 68 )",
|
|
1901
|
+
"0 0 0 0.5px #413C3A | hsl( 17 6% 24%) | oklch(0.36 0.01 43 )",
|
|
1902
|
+
],
|
|
1891
1903
|
"inputBorderWarningColor": [
|
|
1892
1904
|
"0 0 0 1px #F7D900 | hsl( 53 100% 48%) | oklch(0.88 0.18 99 )",
|
|
1893
1905
|
"0 0 0 1px #6E5F00 | hsl( 52 100% 22%) | oklch(0.49 0.1 98 )",
|
|
@@ -113,6 +113,9 @@
|
|
|
113
113
|
--inputBorderColor: 0 0 0 1px rgba(227, 227, 227, 0.8);
|
|
114
114
|
--inputBorderHoverColor: 0 0 0 1px rgb(219, 219, 219);
|
|
115
115
|
--inputBorderFocusColor: 0 0 0 1px rgb(199, 199, 199);
|
|
116
|
+
--inputBorderColorThin: 0 0 0 0.5px rgba(227, 227, 227, 0.8);
|
|
117
|
+
--inputBorderHoverColorThin: 0 0 0 0.5px rgb(219, 219, 219);
|
|
118
|
+
--inputBorderFocusColorThin: 0 0 0 0.5px rgb(199, 199, 199);
|
|
116
119
|
--inputBorderBlendMode: multiply;
|
|
117
120
|
--inputPlaceholderTextColor: rgb(158, 158, 158);
|
|
118
121
|
--inputErrorBorderColor: 0 0 0 1px rgb(175, 36, 56);
|
|
@@ -659,6 +662,9 @@
|
|
|
659
662
|
--inputBorderColor: 0 0 0 1px rgba(82, 82, 82, 0.4);
|
|
660
663
|
--inputBorderHoverColor: 0 0 0 1px rgb(61, 61, 61);
|
|
661
664
|
--inputBorderFocusColor: 0 0 0 1px rgb(112, 112, 112);
|
|
665
|
+
--inputBorderColorThin: 0 0 0 0.5px rgba(82, 82, 82, 0.4);
|
|
666
|
+
--inputBorderHoverColorThin: 0 0 0 0.5px rgb(61, 61, 61);
|
|
667
|
+
--inputBorderFocusColorThin: 0 0 0 0.5px rgb(112, 112, 112);
|
|
662
668
|
--inputBorderBlendMode: lighten;
|
|
663
669
|
--inputPlaceholderTextColor: rgb(112, 112, 112);
|
|
664
670
|
--inputErrorBorderColor: 0 0 0 1px rgb(244, 179, 179);
|
|
@@ -1206,6 +1212,9 @@
|
|
|
1206
1212
|
--inputBorderColor: 0 0 0 1px rgba(232, 226, 219, 0.8);
|
|
1207
1213
|
--inputBorderHoverColor: 0 0 0 1px rgb(225, 218, 211);
|
|
1208
1214
|
--inputBorderFocusColor: 0 0 0 1px rgb(204, 198, 191);
|
|
1215
|
+
--inputBorderColorThin: 0 0 0 0.5px rgba(232, 226, 219, 0.8);
|
|
1216
|
+
--inputBorderHoverColorThin: 0 0 0 0.5px rgb(225, 218, 211);
|
|
1217
|
+
--inputBorderFocusColorThin: 0 0 0 0.5px rgb(204, 198, 191);
|
|
1209
1218
|
--inputBorderBlendMode: multiply;
|
|
1210
1219
|
--inputPlaceholderTextColor: rgb(163, 157, 150);
|
|
1211
1220
|
--inputErrorBorderColor: 0 0 0 1px rgb(175, 36, 54);
|
|
@@ -1752,6 +1761,9 @@
|
|
|
1752
1761
|
--inputBorderColor: 0 0 0 1px rgba(86, 80, 78, 0.4);
|
|
1753
1762
|
--inputBorderHoverColor: 0 0 0 1px rgb(65, 60, 58);
|
|
1754
1763
|
--inputBorderFocusColor: 0 0 0 1px rgb(117, 111, 109);
|
|
1764
|
+
--inputBorderColorThin: 0 0 0 0.5px rgba(86, 80, 78, 0.4);
|
|
1765
|
+
--inputBorderHoverColorThin: 0 0 0 0.5px rgb(65, 60, 58);
|
|
1766
|
+
--inputBorderFocusColorThin: 0 0 0 0.5px rgb(117, 111, 109);
|
|
1755
1767
|
--inputBorderBlendMode: lighten;
|
|
1756
1768
|
--inputPlaceholderTextColor: rgb(117, 111, 109);
|
|
1757
1769
|
--inputErrorBorderColor: 0 0 0 1px rgb(244, 179, 178);
|
package/src/theming.generated.ts
CHANGED
|
@@ -113,6 +113,9 @@ export const themeVars = {
|
|
|
113
113
|
inputBorderColor: "var(--inputBorderColor)",
|
|
114
114
|
inputBorderHoverColor: "var(--inputBorderHoverColor)",
|
|
115
115
|
inputBorderFocusColor: "var(--inputBorderFocusColor)",
|
|
116
|
+
inputBorderColorThin: "var(--inputBorderColorThin)",
|
|
117
|
+
inputBorderHoverColorThin: "var(--inputBorderHoverColorThin)",
|
|
118
|
+
inputBorderFocusColorThin: "var(--inputBorderFocusColorThin)",
|
|
116
119
|
inputBorderBlendMode: "var(--inputBorderBlendMode)",
|
|
117
120
|
inputPlaceholderTextColor: "var(--inputPlaceholderTextColor)",
|
|
118
121
|
inputErrorBorderColor: "var(--inputErrorBorderColor)",
|
|
@@ -668,6 +671,9 @@ export const neutralStyles = {
|
|
|
668
671
|
"--inputBorderColor": "0 0 0 1px rgba(227, 227, 227, 0.8)",
|
|
669
672
|
"--inputBorderHoverColor": "0 0 0 1px rgb(219,219,219)",
|
|
670
673
|
"--inputBorderFocusColor": "0 0 0 1px rgb(199,199,199)",
|
|
674
|
+
"--inputBorderColorThin": "0 0 0 0.5px rgba(227, 227, 227, 0.8)",
|
|
675
|
+
"--inputBorderHoverColorThin": "0 0 0 0.5px rgb(219,219,219)",
|
|
676
|
+
"--inputBorderFocusColorThin": "0 0 0 0.5px rgb(199,199,199)",
|
|
671
677
|
"--inputBorderBlendMode": "multiply",
|
|
672
678
|
"--inputPlaceholderTextColor": "rgb(158,158,158)",
|
|
673
679
|
"--inputErrorBorderColor": "0 0 0 1px rgb(175,36,56)",
|
|
@@ -1215,6 +1221,9 @@ export const neutralStyles = {
|
|
|
1215
1221
|
"--inputBorderColor": "0 0 0 1px rgba(82, 82, 82, 0.4)",
|
|
1216
1222
|
"--inputBorderHoverColor": "0 0 0 1px rgb(61,61,61)",
|
|
1217
1223
|
"--inputBorderFocusColor": "0 0 0 1px rgb(112,112,112)",
|
|
1224
|
+
"--inputBorderColorThin": "0 0 0 0.5px rgba(82, 82, 82, 0.4)",
|
|
1225
|
+
"--inputBorderHoverColorThin": "0 0 0 0.5px rgb(61,61,61)",
|
|
1226
|
+
"--inputBorderFocusColorThin": "0 0 0 0.5px rgb(112,112,112)",
|
|
1218
1227
|
"--inputBorderBlendMode": "lighten",
|
|
1219
1228
|
"--inputPlaceholderTextColor": "rgb(112,112,112)",
|
|
1220
1229
|
"--inputErrorBorderColor": "0 0 0 1px rgb(244,179,179)",
|
|
@@ -1764,6 +1773,9 @@ export const warmStyles = {
|
|
|
1764
1773
|
"--inputBorderColor": "0 0 0 1px rgba(232, 226, 219, 0.8)",
|
|
1765
1774
|
"--inputBorderHoverColor": "0 0 0 1px rgb(225,218,211)",
|
|
1766
1775
|
"--inputBorderFocusColor": "0 0 0 1px rgb(204,198,191)",
|
|
1776
|
+
"--inputBorderColorThin": "0 0 0 0.5px rgba(232, 226, 219, 0.8)",
|
|
1777
|
+
"--inputBorderHoverColorThin": "0 0 0 0.5px rgb(225,218,211)",
|
|
1778
|
+
"--inputBorderFocusColorThin": "0 0 0 0.5px rgb(204,198,191)",
|
|
1767
1779
|
"--inputBorderBlendMode": "multiply",
|
|
1768
1780
|
"--inputPlaceholderTextColor": "rgb(163,157,150)",
|
|
1769
1781
|
"--inputErrorBorderColor": "0 0 0 1px rgb(175,36,54)",
|
|
@@ -2311,6 +2323,9 @@ export const warmStyles = {
|
|
|
2311
2323
|
"--inputBorderColor": "0 0 0 1px rgba(86, 80, 78, 0.4)",
|
|
2312
2324
|
"--inputBorderHoverColor": "0 0 0 1px rgb(65,60,58)",
|
|
2313
2325
|
"--inputBorderFocusColor": "0 0 0 1px rgb(117,111,109)",
|
|
2326
|
+
"--inputBorderColorThin": "0 0 0 0.5px rgba(86, 80, 78, 0.4)",
|
|
2327
|
+
"--inputBorderHoverColorThin": "0 0 0 0.5px rgb(65,60,58)",
|
|
2328
|
+
"--inputBorderFocusColorThin": "0 0 0 0.5px rgb(117,111,109)",
|
|
2314
2329
|
"--inputBorderBlendMode": "lighten",
|
|
2315
2330
|
"--inputPlaceholderTextColor": "rgb(117,111,109)",
|
|
2316
2331
|
"--inputErrorBorderColor": "0 0 0 1px rgb(244,179,178)",
|
package/src/tooltip.tsx
CHANGED
|
@@ -140,6 +140,8 @@ export type TooltipProps = Omit<TooltipPrimitive.TooltipTriggerProps, "title" |
|
|
|
140
140
|
disableHoverableContent?: boolean;
|
|
141
141
|
/** should keep tooltip visible after click */
|
|
142
142
|
keepOnClick?: boolean;
|
|
143
|
+
/** when false, the tooltip opens on pointer hover only, never on focus */
|
|
144
|
+
openOnFocus?: boolean;
|
|
143
145
|
};
|
|
144
146
|
|
|
145
147
|
/**
|
|
@@ -172,6 +174,7 @@ export const Tooltip = forwardRef<HTMLButtonElement, TooltipProps>(
|
|
|
172
174
|
visible,
|
|
173
175
|
onVisibleChange,
|
|
174
176
|
keepOnClick,
|
|
177
|
+
openOnFocus = true,
|
|
175
178
|
disabled,
|
|
176
179
|
setContentElement,
|
|
177
180
|
container,
|
|
@@ -188,7 +191,7 @@ export const Tooltip = forwardRef<HTMLButtonElement, TooltipProps>(
|
|
|
188
191
|
// Radix opens the tooltip on any focus, so we use :focus-visible to distinguish keyboard from pointer.
|
|
189
192
|
// We check e.target (not currentTarget) to handle cases where the trigger wraps an inner focusable element (e.g. <span><input/></span>).
|
|
190
193
|
const handleFocus = composeEventHandlers(triggerProps.onFocus, (e) => {
|
|
191
|
-
if (!e.target.matches(":focus-visible")) {
|
|
194
|
+
if (!openOnFocus || !e.target.matches(":focus-visible")) {
|
|
192
195
|
suppressFocusOpenRef.current = true;
|
|
193
196
|
}
|
|
194
197
|
});
|
package/src/unit/index.tsx
CHANGED
|
@@ -1,63 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {UnitPrimitive} from "./primitive";
|
|
4
|
-
import type {UnitPrimitiveProps} from "./types";
|
|
5
|
-
|
|
6
|
-
// Try not to use UnitPrimitive directly, rather define a pattern of usage, and create own unit with the pattern.
|
|
7
|
-
|
|
8
|
-
export const BasicUnit = ({
|
|
9
|
-
renderAsDiv = false,
|
|
10
|
-
onKeyDown,
|
|
11
|
-
...props
|
|
12
|
-
}: UnitPrimitiveProps & {readOnly: boolean; size: CardSize}) => {
|
|
13
|
-
if (props.size === ":card-size/cell") {
|
|
14
|
-
const bgColor = props.bgColor || themeVars.transparent;
|
|
15
|
-
return (
|
|
16
|
-
<UnitPrimitive
|
|
17
|
-
onKeyDown={onKeyDown}
|
|
18
|
-
bgColor={bgColor}
|
|
19
|
-
border={false}
|
|
20
|
-
button={false}
|
|
21
|
-
header={false}
|
|
22
|
-
tooltip={false}
|
|
23
|
-
setMinWidth={false}
|
|
24
|
-
big
|
|
25
|
-
{...props}
|
|
26
|
-
/>
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const bgColor = props.bgColor || (props.readOnly ? themeVars.inputDisabledBgColor : themeVars.transparent);
|
|
31
|
-
return (
|
|
32
|
-
<UnitPrimitive
|
|
33
|
-
bgColor={bgColor}
|
|
34
|
-
onKeyDown={onKeyDown}
|
|
35
|
-
border={!props.readOnly}
|
|
36
|
-
button={renderAsDiv === true ? false : !props.readOnly || Boolean(props.onClick)}
|
|
37
|
-
header={props.size === ":card-size/full"}
|
|
38
|
-
tooltip={props.tooltip ?? props.size !== ":card-size/full"}
|
|
39
|
-
clickable={!props.readOnly}
|
|
40
|
-
{...props}
|
|
41
|
-
/>
|
|
42
|
-
);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export const CellUnit = (props: UnitPrimitiveProps) => {
|
|
46
|
-
return <UnitPrimitive big={true} tooltip={false} {...props} />;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export const OptionUnit = (props: UnitPrimitiveProps) => {
|
|
50
|
-
return <UnitPrimitive big={true} tooltip={false} {...props} />;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export const HistoryUnit = (props: UnitPrimitiveProps & {size: CardSize}) => {
|
|
54
|
-
return (
|
|
55
|
-
<UnitPrimitive
|
|
56
|
-
big={props.size === ":card-size/cell"}
|
|
57
|
-
bgColor={themeVars.unitBg}
|
|
58
|
-
border={false}
|
|
59
|
-
tooltip={false}
|
|
60
|
-
{...props}
|
|
61
|
-
/>
|
|
62
|
-
);
|
|
63
|
-
};
|
|
1
|
+
export {Unit} from "./unit";
|
|
2
|
+
export type {UnitProps, UnitSize, UnitVariant} from "./unit";
|