@exegia/corpora-ui 3.0.0 → 3.1.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/README.md +20 -0
- package/dist-lib/button-CIRkQXA6.js +152 -0
- package/dist-lib/button.js +3 -0
- package/dist-lib/card.js +150 -0
- package/dist-lib/components/atoms/text/default.d.ts +2 -1143
- package/dist-lib/components/blocks/shell/index.d.ts +1 -0
- package/dist-lib/components/ui/badge.d.ts +2 -2
- package/dist-lib/components/ui/button.d.ts +2 -2
- package/dist-lib/components/ui/glasscn/lazy-glass-surface.d.ts +6 -0
- package/dist-lib/components/ui/modal.d.ts +10 -0
- package/dist-lib/components/ui/overlays.d.ts +4 -0
- package/dist-lib/components/ui/select.d.ts +1 -1
- package/dist-lib/components/ui/toast.d.ts +2 -0
- package/dist-lib/ease-C9At8rnB.js +120 -0
- package/dist-lib/exegia-provider-DNTuLljX.js +124 -0
- package/dist-lib/index.css +3 -0
- package/dist-lib/index.d.ts +3 -0
- package/dist-lib/index.js +6482 -8894
- package/dist-lib/input.js +28 -0
- package/dist-lib/label.js +19 -0
- package/dist-lib/lib/segmented-control.d.ts +1 -1
- package/dist-lib/lib/state/exegia-provider.d.ts +17 -8
- package/dist-lib/lib/state/index.d.ts +2 -0
- package/dist-lib/lib/state/portal-context.d.ts +5 -0
- package/dist-lib/lib/state/sound-loading.d.ts +4 -0
- package/dist-lib/liquid-glass-BihU6nMl.js +50 -0
- package/dist-lib/modal-DLaOK-s1.js +82 -0
- package/dist-lib/overlays.js +3 -0
- package/dist-lib/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist-lib/scaffold-Qv4hs5Pf.js +925 -0
- package/dist-lib/scaffold.js +2 -0
- package/dist-lib/shell-BQ9cjIEu.js +722 -0
- package/dist-lib/shell.js +2 -0
- package/dist-lib/sound-knGH4lj-.js +19 -0
- package/dist-lib/state.js +2 -0
- package/dist-lib/toast-CataVXHN.js +193 -0
- package/dist-lib/utils-BO0qfoA6.js +61 -0
- package/package.json +64 -23
- package/dist-lib/components/atoms/_layout.d.ts +0 -4
- package/dist-lib/components/atoms/bubble/__tests__/bubble.test.d.ts +0 -1
- package/dist-lib/components/atoms/bubble/__tests__/reference.test.d.ts +0 -1
- package/dist-lib/components/atoms/text/__tests__/text.test.d.ts +0 -1
- package/dist-lib/components/atoms/text-selection/__tests__/click-popover.test.d.ts +0 -1
- package/dist-lib/components/atoms/text-selection/__tests__/text-selection.test.d.ts +0 -1
- package/dist-lib/components/blocks/auth/__tests__/auth-flow-block.test.d.ts +0 -1
- package/dist-lib/components/blocks/auth/__tests__/auth-state-atom.test.d.ts +0 -1
- package/dist-lib/components/blocks/auth/__tests__/linked-accounts-block.test.d.ts +0 -1
- package/dist-lib/components/blocks/auth/__tests__/onboarding-block.test.d.ts +0 -1
- package/dist-lib/components/blocks/auth/__tests__/passkey-manager-block.test.d.ts +0 -1
- package/dist-lib/components/blocks/auth/__tests__/passkey-sign-in-block.test.d.ts +0 -1
- package/dist-lib/components/blocks/auth/__tests__/signup-block.test.d.ts +0 -1
- package/dist-lib/components/blocks/auth/__tests__/update-password-block.test.d.ts +0 -1
- package/dist-lib/components/blocks/chat/__tests__/ai-panel.test.d.ts +0 -1
- package/dist-lib/components/blocks/profile/__tests__/profile-card-block.test.d.ts +0 -1
- package/dist-lib/components/blocks/scaffold/__tests__/scaffold-atom.test.d.ts +0 -1
- package/dist-lib/components/blocks/scaffold/__tests__/scaffold.test.d.ts +0 -1
- package/dist-lib/components/blocks/shell/__tests__/shell-fit-atom.test.d.ts +0 -1
- package/dist-lib/components/blocks/shell/__tests__/shell-layout.test.d.ts +0 -1
- package/dist-lib/components/blocks/shell/__tests__/shell-metrics.test.d.ts +0 -1
- package/dist-lib/components/blocks/sidebar/__tests__/ai-sidebar-atom.test.d.ts +0 -1
- package/dist-lib/components/blocks/sidebar/__tests__/ai-sidebar.test.d.ts +0 -1
- package/dist-lib/components/blocks/sidebar/__tests__/use-ai-sidebar.test.d.ts +0 -1
- package/dist-lib/components/composed/__tests__/logo.test.d.ts +0 -1
- package/dist-lib/components/composed/action-bar/__tests__/action-bar.test.d.ts +0 -1
- package/dist-lib/components/composed/ai/__tests__/ai.test.d.ts +0 -1
- package/dist-lib/components/composed/chat/__tests__/attachment.test.d.ts +0 -1
- package/dist-lib/components/composed/chat/__tests__/beautiful-ui.test.d.ts +0 -1
- package/dist-lib/components/composed/chat/__tests__/chart.test.d.ts +0 -1
- package/dist-lib/components/composed/chat/__tests__/code-block.test.d.ts +0 -1
- package/dist-lib/components/composed/chat/__tests__/composer-attachments.test.d.ts +0 -1
- package/dist-lib/components/composed/chat/__tests__/composer.test.d.ts +0 -1
- package/dist-lib/components/composed/chat/__tests__/flowchart.test.d.ts +0 -1
- package/dist-lib/components/composed/chat/__tests__/glass-material.test.d.ts +0 -1
- package/dist-lib/components/composed/chat/__tests__/markdown.test.d.ts +0 -1
- package/dist-lib/components/composed/chat/__tests__/menu-command.test.d.ts +0 -1
- package/dist-lib/components/composed/chat/__tests__/recommendation.test.d.ts +0 -1
- package/dist-lib/components/composed/tree/__tests__/tree-atom.test.d.ts +0 -1
- package/dist-lib/components/composed/tree/__tests__/tree.test.d.ts +0 -1
- package/dist-lib/components/composed/tree/__tests__/use-tree.test.d.ts +0 -1
- package/dist-lib/components/composed/user/__tests__/message.test.d.ts +0 -1
- package/dist-lib/components/composed/verse/__tests__/verse.test.d.ts +0 -1
- package/dist-lib/components/docs/atoms-gallery.d.ts +0 -12
- package/dist-lib/components/docs/block-demo-stage.d.ts +0 -7
- package/dist-lib/components/docs/blocks-gallery.d.ts +0 -2
- package/dist-lib/components/docs/browser.d.ts +0 -10
- package/dist-lib/components/docs/code-block.d.ts +0 -4
- package/dist-lib/components/docs/components-gallery.d.ts +0 -2
- package/dist-lib/components/docs/demo-controls.d.ts +0 -21
- package/dist-lib/components/docs/hero.d.ts +0 -5
- package/dist-lib/components/docs/mermaid.d.ts +0 -3
- package/dist-lib/components/icons/__tests__/icons.test.d.ts +0 -1
- package/dist-lib/components/stories/attachment.story.d.ts +0 -11
- package/dist-lib/components/stories/auth-flow-block.story.d.ts +0 -2
- package/dist-lib/components/stories/avatar.story.d.ts +0 -6
- package/dist-lib/components/stories/base.story.d.ts +0 -6
- package/dist-lib/components/stories/bubble.story.d.ts +0 -6
- package/dist-lib/components/stories/button.story.d.ts +0 -9
- package/dist-lib/components/stories/card.story.d.ts +0 -8
- package/dist-lib/components/stories/chart.story.d.ts +0 -71
- package/dist-lib/components/stories/checkbox.story.d.ts +0 -6
- package/dist-lib/components/stories/code-auth-block.story.d.ts +0 -2
- package/dist-lib/components/stories/code-block.story.d.ts +0 -12
- package/dist-lib/components/stories/composed-password-input.story.d.ts +0 -6
- package/dist-lib/components/stories/context-cards.story.d.ts +0 -3
- package/dist-lib/components/stories/emoji-action-bar.story.d.ts +0 -3
- package/dist-lib/components/stories/field.story.d.ts +0 -6
- package/dist-lib/components/stories/file-icons.story.d.ts +0 -5
- package/dist-lib/components/stories/filter-table.story.d.ts +0 -21
- package/dist-lib/components/stories/flowchart.story.d.ts +0 -3
- package/dist-lib/components/stories/forgot-password-block.story.d.ts +0 -2
- package/dist-lib/components/stories/frame.story.d.ts +0 -8
- package/dist-lib/components/stories/index.d.ts +0 -54
- package/dist-lib/components/stories/input-group.story.d.ts +0 -6
- package/dist-lib/components/stories/input.story.d.ts +0 -8
- package/dist-lib/components/stories/insight-cards.story.d.ts +0 -74
- package/dist-lib/components/stories/label.story.d.ts +0 -8
- package/dist-lib/components/stories/linked-accounts-block.story.d.ts +0 -2
- package/dist-lib/components/stories/login-block.story.d.ts +0 -2
- package/dist-lib/components/stories/logo.story.d.ts +0 -3
- package/dist-lib/components/stories/markdown.story.d.ts +0 -7
- package/dist-lib/components/stories/menu-command.story.d.ts +0 -13
- package/dist-lib/components/stories/onboarding-block.story.d.ts +0 -2
- package/dist-lib/components/stories/otp-field.story.d.ts +0 -8
- package/dist-lib/components/stories/passkey-manager-block.story.d.ts +0 -2
- package/dist-lib/components/stories/passkey-sign-in-block.story.d.ts +0 -2
- package/dist-lib/components/stories/password-input.story.d.ts +0 -9
- package/dist-lib/components/stories/profile-card-block.story.d.ts +0 -6
- package/dist-lib/components/stories/recommendation-card.story.d.ts +0 -3
- package/dist-lib/components/stories/records-table.story.d.ts +0 -23
- package/dist-lib/components/stories/reference.story.d.ts +0 -9
- package/dist-lib/components/stories/research-answer.story.d.ts +0 -10
- package/dist-lib/components/stories/scaffold-root.story.d.ts +0 -6
- package/dist-lib/components/stories/separator.story.d.ts +0 -6
- package/dist-lib/components/stories/shell-layout.story.d.ts +0 -2
- package/dist-lib/components/stories/signup-block.story.d.ts +0 -2
- package/dist-lib/components/stories/social-providers.story.d.ts +0 -3
- package/dist-lib/components/stories/streaming-text.story.d.ts +0 -3
- package/dist-lib/components/stories/text.story.d.ts +0 -8
- package/dist-lib/components/stories/textarea.story.d.ts +0 -6
- package/dist-lib/components/stories/tree.story.d.ts +0 -4
- package/dist-lib/components/stories/update-password-block.story.d.ts +0 -2
- package/dist-lib/components/stories/user.story.d.ts +0 -8
- package/dist-lib/components/stories/verse.story.d.ts +0 -6
- package/dist-lib/components/ui/chat/__tests__/segmented-toggle.test.d.ts +0 -1
- package/dist-lib/index.js.map +0 -1
- package/dist-lib/lib/state/__tests__/sound.test.d.ts +0 -1
- package/dist-lib/lib/utils.test.d.ts +0 -1
- package/src/assets/css/base.css +0 -62
- package/src/assets/css/chat.css +0 -229
- package/src/assets/css/shadows.css +0 -157
- package/src/assets/css/theme.css +0 -321
- package/src/components/AGENTS.md +0 -0
- package/src/components/atoms/_layout.tsx +0 -9
- package/src/components/atoms/avatar/base.tsx +0 -70
- package/src/components/atoms/avatar/index.ts +0 -10
- package/src/components/atoms/avatar/types.ts +0 -24
- package/src/components/atoms/avatar/utils.ts +0 -54
- package/src/components/atoms/avatar/verified.tsx +0 -16
- package/src/components/atoms/background/index.ts +0 -8
- package/src/components/atoms/background/texture.tsx +0 -29
- package/src/components/atoms/background/type.ts +0 -10
- package/src/components/atoms/background/utils.ts +0 -13
- package/src/components/atoms/bubble/__tests__/bubble.test.tsx +0 -193
- package/src/components/atoms/bubble/__tests__/reference.test.tsx +0 -25
- package/src/components/atoms/bubble/actions.tsx +0 -28
- package/src/components/atoms/bubble/context.ts +0 -11
- package/src/components/atoms/bubble/default.tsx +0 -46
- package/src/components/atoms/bubble/header.tsx +0 -36
- package/src/components/atoms/bubble/index.ts +0 -37
- package/src/components/atoms/bubble/message.tsx +0 -32
- package/src/components/atoms/bubble/reactions.tsx +0 -191
- package/src/components/atoms/bubble/types.ts +0 -82
- package/src/components/atoms/bubble/utils.ts +0 -46
- package/src/components/atoms/chip.tsx +0 -61
- package/src/components/atoms/field.tsx +0 -43
- package/src/components/atoms/index.ts +0 -26
- package/src/components/atoms/loader.tsx +0 -33
- package/src/components/atoms/reference.tsx +0 -41
- package/src/components/atoms/text/__tests__/text.test.tsx +0 -47
- package/src/components/atoms/text/default.tsx +0 -59
- package/src/components/atoms/text/heading.tsx +0 -58
- package/src/components/atoms/text/index.ts +0 -28
- package/src/components/atoms/text/label.tsx +0 -16
- package/src/components/atoms/text/paragraph.tsx +0 -55
- package/src/components/atoms/text/span.tsx +0 -14
- package/src/components/atoms/text/types.ts +0 -41
- package/src/components/atoms/text/utils.ts +0 -16
- package/src/components/atoms/text-selection/__tests__/click-popover.test.tsx +0 -61
- package/src/components/atoms/text-selection/__tests__/text-selection.test.tsx +0 -90
- package/src/components/atoms/text-selection/click-popover.tsx +0 -62
- package/src/components/atoms/text-selection/index.ts +0 -30
- package/src/components/atoms/text-selection/popover.tsx +0 -103
- package/src/components/atoms/text-selection/selection-atom.ts +0 -51
- package/src/components/atoms/text-selection/selection.tsx +0 -56
- package/src/components/atoms/text-selection/types.ts +0 -125
- package/src/components/atoms/text-selection/use-selection.ts +0 -84
- package/src/components/atoms/types.ts +0 -46
- package/src/components/blocks/.gitkeep +0 -0
- package/src/components/blocks/auth/__tests__/auth-flow-block.test.tsx +0 -183
- package/src/components/blocks/auth/__tests__/auth-state-atom.test.tsx +0 -247
- package/src/components/blocks/auth/__tests__/linked-accounts-block.test.tsx +0 -128
- package/src/components/blocks/auth/__tests__/onboarding-block.test.tsx +0 -183
- package/src/components/blocks/auth/__tests__/passkey-manager-block.test.tsx +0 -131
- package/src/components/blocks/auth/__tests__/passkey-sign-in-block.test.tsx +0 -59
- package/src/components/blocks/auth/__tests__/signup-block.test.tsx +0 -176
- package/src/components/blocks/auth/__tests__/update-password-block.test.tsx +0 -95
- package/src/components/blocks/auth/auth-flow-atom.ts +0 -238
- package/src/components/blocks/auth/auth-flow-block.tsx +0 -211
- package/src/components/blocks/auth/auth-session-atom.ts +0 -82
- package/src/components/blocks/auth/auth-shell.tsx +0 -265
- package/src/components/blocks/auth/auth-state.ts +0 -40
- package/src/components/blocks/auth/code-auth-block.tsx +0 -176
- package/src/components/blocks/auth/forgot-password-block.tsx +0 -112
- package/src/components/blocks/auth/linked-accounts-block.tsx +0 -203
- package/src/components/blocks/auth/login-block.tsx +0 -217
- package/src/components/blocks/auth/onboarding/profile-step.tsx +0 -216
- package/src/components/blocks/auth/onboarding-block.tsx +0 -183
- package/src/components/blocks/auth/passkey-manager-block.tsx +0 -316
- package/src/components/blocks/auth/passkey-sign-in-block.tsx +0 -67
- package/src/components/blocks/auth/signup-block.tsx +0 -256
- package/src/components/blocks/auth/type.ts +0 -436
- package/src/components/blocks/auth/update-password-block.tsx +0 -139
- package/src/components/blocks/auth/use-auth-state.ts +0 -127
- package/src/components/blocks/chat/__tests__/ai-panel.test.tsx +0 -65
- package/src/components/blocks/chat/banners.tsx +0 -61
- package/src/components/blocks/chat/base.tsx +0 -84
- package/src/components/blocks/chat/header.tsx +0 -60
- package/src/components/blocks/chat/index.ts +0 -37
- package/src/components/blocks/chat/recommendation-stack.tsx +0 -41
- package/src/components/blocks/chat/shared.tsx +0 -27
- package/src/components/blocks/chat/suggested-prompts.tsx +0 -45
- package/src/components/blocks/chat/type.ts +0 -96
- package/src/components/blocks/chat/version-history-record.tsx +0 -37
- package/src/components/blocks/layout.ts +0 -35
- package/src/components/blocks/profile/__tests__/profile-card-block.test.tsx +0 -362
- package/src/components/blocks/profile/index.ts +0 -28
- package/src/components/blocks/profile/profile-card-atom.ts +0 -247
- package/src/components/blocks/profile/profile-card-block.tsx +0 -369
- package/src/components/blocks/profile/type.ts +0 -93
- package/src/components/blocks/profile/use-profile-card-state.ts +0 -67
- package/src/components/blocks/profile/use-profile-card.ts +0 -132
- package/src/components/blocks/scaffold/__tests__/scaffold-atom.test.tsx +0 -236
- package/src/components/blocks/scaffold/__tests__/scaffold.test.tsx +0 -524
- package/src/components/blocks/scaffold/constants.ts +0 -39
- package/src/components/blocks/scaffold/index.ts +0 -60
- package/src/components/blocks/scaffold/panel-close-button.tsx +0 -36
- package/src/components/blocks/scaffold/panel-menu-button.tsx +0 -221
- package/src/components/blocks/scaffold/scaffold-actions.tsx +0 -92
- package/src/components/blocks/scaffold/scaffold-atom.ts +0 -427
- package/src/components/blocks/scaffold/scaffold-canvas.tsx +0 -162
- package/src/components/blocks/scaffold/scaffold-context.ts +0 -20
- package/src/components/blocks/scaffold/scaffold-inspector.tsx +0 -137
- package/src/components/blocks/scaffold/scaffold-main.tsx +0 -28
- package/src/components/blocks/scaffold/scaffold-panel.tsx +0 -186
- package/src/components/blocks/scaffold/scaffold-root.tsx +0 -120
- package/src/components/blocks/scaffold/scaffold-sidebar.tsx +0 -31
- package/src/components/blocks/scaffold/scaffold-sub-panel.tsx +0 -122
- package/src/components/blocks/scaffold/scaffold-tab.tsx +0 -108
- package/src/components/blocks/scaffold/type.ts +0 -264
- package/src/components/blocks/scaffold/use-scaffold-state.ts +0 -85
- package/src/components/blocks/scaffold/use-scaffold.ts +0 -59
- package/src/components/blocks/scaffold/utils.ts +0 -112
- package/src/components/blocks/shell/__tests__/shell-fit-atom.test.tsx +0 -362
- package/src/components/blocks/shell/__tests__/shell-layout.test.tsx +0 -596
- package/src/components/blocks/shell/__tests__/shell-metrics.test.ts +0 -154
- package/src/components/blocks/shell/animated-panel-inset.tsx +0 -27
- package/src/components/blocks/shell/animated-panel-provider.tsx +0 -269
- package/src/components/blocks/shell/animated-panel-trigger.tsx +0 -51
- package/src/components/blocks/shell/animated-panel.tsx +0 -180
- package/src/components/blocks/shell/index.ts +0 -30
- package/src/components/blocks/shell/shell-fit-atom.ts +0 -246
- package/src/components/blocks/shell/shell-layout.tsx +0 -139
- package/src/components/blocks/shell/shell-metrics.ts +0 -133
- package/src/components/blocks/shell/shell-panel-atom.ts +0 -74
- package/src/components/blocks/shell/type.ts +0 -361
- package/src/components/blocks/shell/use-shell-fit-state.ts +0 -49
- package/src/components/blocks/shell/use-shell-fit.ts +0 -153
- package/src/components/blocks/shell/use-shell-panels.ts +0 -126
- package/src/components/blocks/shell/utils.ts +0 -187
- package/src/components/blocks/sidebar/__tests__/ai-sidebar-atom.test.tsx +0 -325
- package/src/components/blocks/sidebar/__tests__/ai-sidebar.test.tsx +0 -93
- package/src/components/blocks/sidebar/__tests__/use-ai-sidebar.test.tsx +0 -310
- package/src/components/blocks/sidebar/ai-sidebar-atom.ts +0 -698
- package/src/components/blocks/sidebar/ai-sidebar.tsx +0 -150
- package/src/components/blocks/sidebar/index.ts +0 -67
- package/src/components/blocks/sidebar/marquee-label.tsx +0 -59
- package/src/components/blocks/sidebar/sidebar-context.ts +0 -15
- package/src/components/blocks/sidebar/sidebar-icon.tsx +0 -14
- package/src/components/blocks/sidebar/sidebar-row.tsx +0 -378
- package/src/components/blocks/sidebar/type.ts +0 -294
- package/src/components/blocks/sidebar/use-ai-sidebar-state.ts +0 -123
- package/src/components/blocks/sidebar/use-ai-sidebar.ts +0 -619
- package/src/components/blocks/sidebar/utils.ts +0 -170
- package/src/components/blocks/types.ts +0 -6
- package/src/components/composed/.gitkeep +0 -0
- package/src/components/composed/__tests__/logo.test.tsx +0 -60
- package/src/components/composed/action-bar/__tests__/action-bar.test.tsx +0 -125
- package/src/components/composed/action-bar/action.tsx +0 -77
- package/src/components/composed/action-bar/emojis.tsx +0 -97
- package/src/components/composed/action-bar/index.ts +0 -24
- package/src/components/composed/action-bar/toolbar.tsx +0 -66
- package/src/components/composed/action-bar/types.ts +0 -58
- package/src/components/composed/action-bar/utils.ts +0 -140
- package/src/components/composed/ai/__tests__/ai.test.tsx +0 -66
- package/src/components/composed/ai/avatar.tsx +0 -19
- package/src/components/composed/ai/index.ts +0 -36
- package/src/components/composed/ai/message.tsx +0 -49
- package/src/components/composed/ai/research-answer.tsx +0 -157
- package/src/components/composed/ai/shared.tsx +0 -94
- package/src/components/composed/ai/streaming-text.tsx +0 -94
- package/src/components/composed/ai/suggested-prompt.tsx +0 -183
- package/src/components/composed/ai/types.ts +0 -81
- package/src/components/composed/chat/__tests__/attachment.test.tsx +0 -218
- package/src/components/composed/chat/__tests__/beautiful-ui.test.tsx +0 -57
- package/src/components/composed/chat/__tests__/chart.test.tsx +0 -316
- package/src/components/composed/chat/__tests__/code-block.test.tsx +0 -12
- package/src/components/composed/chat/__tests__/composer-attachments.test.tsx +0 -101
- package/src/components/composed/chat/__tests__/composer.test.tsx +0 -248
- package/src/components/composed/chat/__tests__/flowchart.test.tsx +0 -145
- package/src/components/composed/chat/__tests__/glass-material.test.tsx +0 -54
- package/src/components/composed/chat/__tests__/markdown.test.tsx +0 -25
- package/src/components/composed/chat/__tests__/menu-command.test.tsx +0 -35
- package/src/components/composed/chat/__tests__/recommendation.test.tsx +0 -43
- package/src/components/composed/chat/actions.tsx +0 -81
- package/src/components/composed/chat/attachment-file.ts +0 -82
- package/src/components/composed/chat/attachment.tsx +0 -498
- package/src/components/composed/chat/chart/chart-atom.ts +0 -55
- package/src/components/composed/chat/chart/chart-context.ts +0 -9
- package/src/components/composed/chat/chart/chart-legend.tsx +0 -75
- package/src/components/composed/chat/chart/chart-plot.tsx +0 -233
- package/src/components/composed/chat/chart/chart-root.tsx +0 -229
- package/src/components/composed/chat/chart/chart-tooltip.tsx +0 -74
- package/src/components/composed/chat/chart/constants.ts +0 -8
- package/src/components/composed/chat/chart/evilcharts/README.md +0 -8
- package/src/components/composed/chat/chart/evilcharts/echarts-area-chart.tsx +0 -2358
- package/src/components/composed/chat/chart/evilcharts/echarts-bar-chart.tsx +0 -2261
- package/src/components/composed/chat/chart/evilcharts/echarts-brush.tsx +0 -233
- package/src/components/composed/chat/chart/evilcharts/echarts-chart.tsx +0 -214
- package/src/components/composed/chat/chart/evilcharts/echarts-dot.tsx +0 -111
- package/src/components/composed/chat/chart/evilcharts/echarts-legend.tsx +0 -131
- package/src/components/composed/chat/chart/evilcharts/echarts-line-chart.tsx +0 -2112
- package/src/components/composed/chat/chart/evilcharts/echarts-pie-chart.tsx +0 -1235
- package/src/components/composed/chat/chart/evilcharts/echarts-tooltip.tsx +0 -125
- package/src/components/composed/chat/chart/index.ts +0 -13
- package/src/components/composed/chat/chart/type.ts +0 -88
- package/src/components/composed/chat/chart/use-chart-state.ts +0 -22
- package/src/components/composed/chat/chart/use-chart.ts +0 -70
- package/src/components/composed/chat/chart/utils.ts +0 -47
- package/src/components/composed/chat/chart.tsx +0 -3
- package/src/components/composed/chat/code-block.tsx +0 -123
- package/src/components/composed/chat/composer/add-button.tsx +0 -29
- package/src/components/composed/chat/composer/base.tsx +0 -573
- package/src/components/composed/chat/composer/command-menu.tsx +0 -47
- package/src/components/composed/chat/composer/hooks.ts +0 -29
- package/src/components/composed/chat/composer/index.ts +0 -19
- package/src/components/composed/chat/composer/send-button.tsx +0 -36
- package/src/components/composed/chat/composer/suggestions.tsx +0 -115
- package/src/components/composed/chat/composer/use-dictation.ts +0 -123
- package/src/components/composed/chat/composer/utils.ts +0 -74
- package/src/components/composed/chat/context-cards.tsx +0 -63
- package/src/components/composed/chat/filter-table.tsx +0 -119
- package/src/components/composed/chat/flowchart/chart-node.tsx +0 -162
- package/src/components/composed/chat/flowchart/connector.tsx +0 -32
- package/src/components/composed/chat/flowchart/constant.ts +0 -26
- package/src/components/composed/chat/flowchart/default.tsx +0 -230
- package/src/components/composed/chat/flowchart/edge-toolbar.tsx +0 -73
- package/src/components/composed/chat/flowchart/hooks.tsx +0 -347
- package/src/components/composed/chat/flowchart/index.ts +0 -14
- package/src/components/composed/chat/flowchart/step-body.tsx +0 -82
- package/src/components/composed/chat/flowchart/types.ts +0 -89
- package/src/components/composed/chat/flowchart/utils.ts +0 -78
- package/src/components/composed/chat/hint.tsx +0 -59
- package/src/components/composed/chat/index.ts +0 -92
- package/src/components/composed/chat/insight-cards.tsx +0 -199
- package/src/components/composed/chat/markdown-atom.ts +0 -15
- package/src/components/composed/chat/markdown.tsx +0 -213
- package/src/components/composed/chat/recommendation/checkbox.tsx +0 -122
- package/src/components/composed/chat/recommendation/constant.ts +0 -54
- package/src/components/composed/chat/recommendation/default.tsx +0 -25
- package/src/components/composed/chat/recommendation/group.tsx +0 -36
- package/src/components/composed/chat/recommendation/index.ts +0 -17
- package/src/components/composed/chat/recommendation/item.tsx +0 -215
- package/src/components/composed/chat/recommendation/types.ts +0 -76
- package/src/components/composed/chat/records-table.tsx +0 -130
- package/src/components/composed/chat/type.ts +0 -157
- package/src/components/composed/logo.tsx +0 -171
- package/src/components/composed/password-input.tsx +0 -179
- package/src/components/composed/reader/applied-mark.tsx +0 -32
- package/src/components/composed/reader/apply-toast.tsx +0 -49
- package/src/components/composed/reader/index.ts +0 -10
- package/src/components/composed/reader/selection-highlight.tsx +0 -26
- package/src/components/composed/reader/selection-popover.tsx +0 -149
- package/src/components/composed/reader/type.ts +0 -48
- package/src/components/composed/social-providers.tsx +0 -154
- package/src/components/composed/tree/CLAUDE.md +0 -145
- package/src/components/composed/tree/__tests__/tree-atom.test.tsx +0 -217
- package/src/components/composed/tree/__tests__/tree.test.tsx +0 -522
- package/src/components/composed/tree/__tests__/use-tree.test.tsx +0 -333
- package/src/components/composed/tree/constants.ts +0 -55
- package/src/components/composed/tree/index.ts +0 -51
- package/src/components/composed/tree/tree-atom.ts +0 -590
- package/src/components/composed/tree/tree-context.ts +0 -13
- package/src/components/composed/tree/tree-node.tsx +0 -496
- package/src/components/composed/tree/tree.tsx +0 -233
- package/src/components/composed/tree/type.ts +0 -322
- package/src/components/composed/tree/use-tree-dnd.ts +0 -179
- package/src/components/composed/tree/use-tree-state.ts +0 -105
- package/src/components/composed/tree/use-tree.ts +0 -311
- package/src/components/composed/tree/utils.ts +0 -172
- package/src/components/composed/types.ts +0 -9
- package/src/components/composed/user/__tests__/message.test.tsx +0 -79
- package/src/components/composed/user/index.ts +0 -14
- package/src/components/composed/user/info.tsx +0 -56
- package/src/components/composed/user/message.tsx +0 -36
- package/src/components/composed/user/pill.tsx +0 -20
- package/src/components/composed/user/types.ts +0 -47
- package/src/components/composed/user/utils.ts +0 -0
- package/src/components/composed/verse/__tests__/verse.test.tsx +0 -57
- package/src/components/composed/verse/index.ts +0 -2
- package/src/components/composed/verse/types.ts +0 -24
- package/src/components/composed/verse/verse.tsx +0 -100
- package/src/components/docs/atoms-gallery.tsx +0 -286
- package/src/components/docs/block-demo-stage.tsx +0 -38
- package/src/components/docs/blocks-gallery.tsx +0 -224
- package/src/components/docs/browser.tsx +0 -87
- package/src/components/docs/code-block.tsx +0 -10
- package/src/components/docs/components-gallery.tsx +0 -182
- package/src/components/docs/demo-controls.tsx +0 -142
- package/src/components/docs/hero.tsx +0 -197
- package/src/components/docs/mermaid.tsx +0 -55
- package/src/components/icons/README.md +0 -91
- package/src/components/icons/__tests__/icons.test.tsx +0 -58
- package/src/components/icons/file-badge-cfm.tsx +0 -615
- package/src/components/icons/file-badge-corpus.tsx +0 -604
- package/src/components/icons/file-badge-pdf.tsx +0 -570
- package/src/components/icons/file-badge-tei.tsx +0 -524
- package/src/components/icons/file-badge-tf.tsx +0 -620
- package/src/components/icons/file-badge-txt.tsx +0 -607
- package/src/components/icons/file-badge-xml.tsx +0 -576
- package/src/components/icons/file-wordmark-cfm.tsx +0 -424
- package/src/components/icons/file-wordmark-corpus.tsx +0 -454
- package/src/components/icons/file-wordmark-pdf.tsx +0 -470
- package/src/components/icons/file-wordmark-tei.tsx +0 -424
- package/src/components/icons/file-wordmark-tf.tsx +0 -406
- package/src/components/icons/file-wordmark-txt.tsx +0 -421
- package/src/components/icons/file-wordmark-xml.tsx +0 -424
- package/src/components/icons/index.ts +0 -16
- package/src/components/icons/types.ts +0 -8
- package/src/components/motion/index.ts +0 -0
- package/src/components/motion/overflow-actions.tsx +0 -376
- package/src/components/motion/popover-morph.tsx +0 -292
- package/src/components/motion/popover-position.ts +0 -86
- package/src/components/motion/shared-layout-bg.tsx +0 -151
- package/src/components/stories/attachment.story.tsx +0 -40
- package/src/components/stories/auth-flow-block.story.tsx +0 -17
- package/src/components/stories/avatar.story.tsx +0 -33
- package/src/components/stories/base.story.tsx +0 -70
- package/src/components/stories/bubble.story.tsx +0 -61
- package/src/components/stories/button.story.tsx +0 -32
- package/src/components/stories/card.story.tsx +0 -36
- package/src/components/stories/chart.story.tsx +0 -69
- package/src/components/stories/checkbox.story.tsx +0 -30
- package/src/components/stories/code-auth-block.story.tsx +0 -20
- package/src/components/stories/code-block.story.tsx +0 -35
- package/src/components/stories/composed-password-input.story.tsx +0 -41
- package/src/components/stories/context-cards.story.tsx +0 -30
- package/src/components/stories/emoji-action-bar.story.tsx +0 -20
- package/src/components/stories/field.story.tsx +0 -32
- package/src/components/stories/file-icons.story.tsx +0 -20
- package/src/components/stories/filter-table.story.tsx +0 -63
- package/src/components/stories/flowchart.story.tsx +0 -25
- package/src/components/stories/forgot-password-block.story.tsx +0 -14
- package/src/components/stories/frame.story.tsx +0 -32
- package/src/components/stories/index.ts +0 -57
- package/src/components/stories/input-group.story.tsx +0 -27
- package/src/components/stories/input.story.tsx +0 -42
- package/src/components/stories/insight-cards.story.tsx +0 -67
- package/src/components/stories/label.story.tsx +0 -32
- package/src/components/stories/linked-accounts-block.story.tsx +0 -23
- package/src/components/stories/login-block.story.tsx +0 -18
- package/src/components/stories/logo.story.tsx +0 -21
- package/src/components/stories/markdown.story.tsx +0 -31
- package/src/components/stories/menu-command.story.tsx +0 -43
- package/src/components/stories/onboarding-block.story.tsx +0 -14
- package/src/components/stories/otp-field.story.tsx +0 -35
- package/src/components/stories/passkey-manager-block.story.tsx +0 -18
- package/src/components/stories/passkey-sign-in-block.story.tsx +0 -15
- package/src/components/stories/password-input.story.tsx +0 -35
- package/src/components/stories/profile-card-block.story.tsx +0 -29
- package/src/components/stories/recommendation-card.story.tsx +0 -37
- package/src/components/stories/records-table.story.tsx +0 -52
- package/src/components/stories/reference.story.tsx +0 -33
- package/src/components/stories/research-answer.story.tsx +0 -32
- package/src/components/stories/scaffold-root.story.tsx +0 -47
- package/src/components/stories/separator.story.tsx +0 -37
- package/src/components/stories/shell-layout.story.tsx +0 -19
- package/src/components/stories/signup-block.story.tsx +0 -18
- package/src/components/stories/social-providers.story.tsx +0 -26
- package/src/components/stories/streaming-text.story.tsx +0 -25
- package/src/components/stories/text.story.tsx +0 -31
- package/src/components/stories/textarea.story.tsx +0 -34
- package/src/components/stories/tree.story.tsx +0 -31
- package/src/components/stories/update-password-block.story.tsx +0 -14
- package/src/components/stories/user.story.tsx +0 -32
- package/src/components/stories/verse.story.tsx +0 -42
- package/src/components/theme-provider.tsx +0 -230
- package/src/components/types.ts +0 -106
- package/src/components/ui/accordion.tsx +0 -68
- package/src/components/ui/alert-dialog.tsx +0 -167
- package/src/components/ui/alert.tsx +0 -84
- package/src/components/ui/autocomplete.tsx +0 -303
- package/src/components/ui/avatar.tsx +0 -109
- package/src/components/ui/badge.tsx +0 -101
- package/src/components/ui/button-group.tsx +0 -88
- package/src/components/ui/button.tsx +0 -192
- package/src/components/ui/card.tsx +0 -253
- package/src/components/ui/chat/__tests__/segmented-toggle.test.tsx +0 -27
- package/src/components/ui/chat/avatar-handle.tsx +0 -30
- package/src/components/ui/chat/badges.tsx +0 -85
- package/src/components/ui/chat/buttons.tsx +0 -94
- package/src/components/ui/chat/chips.tsx +0 -106
- package/src/components/ui/chat/dot.tsx +0 -81
- package/src/components/ui/chat/icon-button.tsx +0 -43
- package/src/components/ui/chat/icon-tile.tsx +0 -33
- package/src/components/ui/chat/index.ts +0 -12
- package/src/components/ui/chat/inline-source.tsx +0 -94
- package/src/components/ui/chat/segmented-toggle.tsx +0 -99
- package/src/components/ui/chat/tag.tsx +0 -61
- package/src/components/ui/chat/thumbnail.tsx +0 -31
- package/src/components/ui/chat/waveform.tsx +0 -30
- package/src/components/ui/checkbox.tsx +0 -83
- package/src/components/ui/collapsible.tsx +0 -42
- package/src/components/ui/command.tsx +0 -263
- package/src/components/ui/context-menu.tsx +0 -342
- package/src/components/ui/emoji-picker.tsx +0 -161
- package/src/components/ui/field.tsx +0 -89
- package/src/components/ui/frame.tsx +0 -87
- package/src/components/ui/glasscn/glass-button-group.tsx +0 -34
- package/src/components/ui/glasscn/glass-button.tsx +0 -25
- package/src/components/ui/glasscn/glass-container.tsx +0 -94
- package/src/components/ui/glasscn/glass-separator.tsx +0 -39
- package/src/components/ui/glasscn/liquid-glass.tsx +0 -59
- package/src/components/ui/group.tsx +0 -92
- package/src/components/ui/input-group.tsx +0 -105
- package/src/components/ui/input.tsx +0 -70
- package/src/components/ui/kbd.tsx +0 -32
- package/src/components/ui/label.tsx +0 -36
- package/src/components/ui/menu-command.tsx +0 -156
- package/src/components/ui/menu.tsx +0 -352
- package/src/components/ui/otp-field.tsx +0 -88
- package/src/components/ui/popover-glass.tsx +0 -158
- package/src/components/ui/popover.tsx +0 -120
- package/src/components/ui/preview-card.tsx +0 -61
- package/src/components/ui/scroll-area.tsx +0 -80
- package/src/components/ui/select.tsx +0 -257
- package/src/components/ui/separator.tsx +0 -23
- package/src/components/ui/sheet.tsx +0 -135
- package/src/components/ui/skeleton.tsx +0 -18
- package/src/components/ui/spinner.tsx +0 -17
- package/src/components/ui/switch.tsx +0 -30
- package/src/components/ui/tabs.tsx +0 -120
- package/src/components/ui/textarea.tsx +0 -58
- package/src/components/ui/toast.tsx +0 -325
- package/src/components/ui/toolbar.tsx +0 -92
- package/src/components/ui/tooltip.tsx +0 -67
- package/src/index.css +0 -10
- package/src/index.ts +0 -102
- package/src/lib/attachment-content.ts +0 -28
- package/src/lib/auth-accent.ts +0 -49
- package/src/lib/ease.ts +0 -90
- package/src/lib/glass-variants.ts +0 -22
- package/src/lib/hooks/use-hover-capable.ts +0 -23
- package/src/lib/hooks/use-mobile.ts +0 -21
- package/src/lib/keyed-atom.ts +0 -60
- package/src/lib/segmented-control.ts +0 -42
- package/src/lib/sound.ts +0 -39
- package/src/lib/specular.ts +0 -10
- package/src/lib/state/__tests__/sound.test.tsx +0 -53
- package/src/lib/state/exegia-provider.tsx +0 -83
- package/src/lib/state/index.ts +0 -4
- package/src/lib/state/store.ts +0 -19
- package/src/lib/use-motion-panel.ts +0 -78
- package/src/lib/utils.test.ts +0 -22
- package/src/lib/utils.ts +0 -100
- package/src/specular.js +0 -4
- /package/{src/components/composed/chat/composer → dist-lib}/BEAUTIFUL-UI-LICENSE.txt +0 -0
- /package/{src/components/composed/chat/chart/evilcharts/LICENSE → dist-lib/EVILCHARTS-LICENSE.txt} +0 -0
package/src/assets/css/theme.css
DELETED
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
/* Core color, typography, motion, and radius tokens. */
|
|
2
|
-
|
|
3
|
-
@custom-variant dark (&:is(.dark *));
|
|
4
|
-
|
|
5
|
-
:root {
|
|
6
|
-
/* Let width/height tween between auto and fixed values (e.g. a button
|
|
7
|
-
toggling to an icon-only size). Progressive enhancement: browsers
|
|
8
|
-
without support keep the instant jump. */
|
|
9
|
-
interpolate-size: allow-keywords;
|
|
10
|
-
--background: oklch(1 0 0);
|
|
11
|
-
--foreground: oklch(0.145 0 0);
|
|
12
|
-
--card: oklch(1 0 0);
|
|
13
|
-
--card-foreground: oklch(0.145 0 0);
|
|
14
|
-
--popover: oklch(1 0 0);
|
|
15
|
-
--popover-foreground: oklch(0.145 0 0);
|
|
16
|
-
--primary: oklch(0.457 0.24 277.023);
|
|
17
|
-
--primary-foreground: oklch(0.962 0.018 272.314);
|
|
18
|
-
--secondary: oklch(0.967 0.001 286.375);
|
|
19
|
-
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
20
|
-
--muted: oklch(0.97 0 0);
|
|
21
|
-
--muted-foreground: oklch(0.556 0 0);
|
|
22
|
-
--accent: oklch(0.97 0 0);
|
|
23
|
-
--accent-foreground: oklch(0.205 0 0);
|
|
24
|
-
--destructive: oklch(0.577 0.245 27.325);
|
|
25
|
-
--border: oklch(0.922 0 0);
|
|
26
|
-
--input: oklch(0.922 0 0);
|
|
27
|
-
--ring: oklch(0.708 0 0);
|
|
28
|
-
--chart-1: oklch(0.811 0.111 293.571);
|
|
29
|
-
--chart-2: oklch(0.606 0.25 292.717);
|
|
30
|
-
--chart-3: oklch(0.541 0.281 293.009);
|
|
31
|
-
--chart-4: oklch(0.491 0.27 292.581);
|
|
32
|
-
--chart-5: oklch(0.432 0.232 292.759);
|
|
33
|
-
--radius: 0.875rem;
|
|
34
|
-
--sidebar: oklch(0.985 0 0);
|
|
35
|
-
--sidebar-foreground: oklch(0.145 0 0);
|
|
36
|
-
--sidebar-primary: oklch(0.511 0.262 276.966);
|
|
37
|
-
--sidebar-primary-foreground: oklch(0.962 0.018 272.314);
|
|
38
|
-
--sidebar-accent: oklch(0.97 0 0);
|
|
39
|
-
--sidebar-accent-foreground: oklch(0.205 0 0);
|
|
40
|
-
--sidebar-border: oklch(0.922 0 0);
|
|
41
|
-
--sidebar-ring: oklch(0.708 0 0);
|
|
42
|
-
--destructive-foreground: var(--color-red-700);
|
|
43
|
-
--info: var(--color-blue-500);
|
|
44
|
-
--info-foreground: var(--color-blue-700);
|
|
45
|
-
--success: var(--color-emerald-500);
|
|
46
|
-
--success-foreground: var(--color-emerald-700);
|
|
47
|
-
--warning: var(--color-amber-500);
|
|
48
|
-
--warning-foreground: var(--color-amber-700);
|
|
49
|
-
--liquid-glass-rim-light: rgba(255,255,255,0.8);
|
|
50
|
-
--liquid-glass-rim-dark: rgba(0,0,0,0.5);
|
|
51
|
-
--liquid-glass-rim-fade: 2%;
|
|
52
|
-
--liquid-glass-rim-width: 1.8px;
|
|
53
|
-
--invert: var(--color-zinc-900);
|
|
54
|
-
--invert-foreground: var(--color-zinc-50);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.dark {
|
|
58
|
-
--background: oklch(0.145 0 0);
|
|
59
|
-
--foreground: oklch(0.985 0 0);
|
|
60
|
-
--card: oklch(0.205 0 0);
|
|
61
|
-
--card-foreground: oklch(0.985 0 0);
|
|
62
|
-
--popover: oklch(0.205 0 0);
|
|
63
|
-
--popover-foreground: oklch(0.985 0 0);
|
|
64
|
-
--primary: oklch(0.398 0.195 277.366);
|
|
65
|
-
--primary-foreground: oklch(0.962 0.018 272.314);
|
|
66
|
-
--secondary: oklch(0.274 0.006 286.033);
|
|
67
|
-
--secondary-foreground: oklch(0.985 0 0);
|
|
68
|
-
--muted: oklch(0.269 0 0);
|
|
69
|
-
--muted-foreground: oklch(0.708 0 0);
|
|
70
|
-
--accent: oklch(0.269 0 0);
|
|
71
|
-
--accent-foreground: oklch(0.985 0 0);
|
|
72
|
-
--destructive: oklch(0.704 0.191 22.216);
|
|
73
|
-
--border: oklch(1 0 0 / 10%);
|
|
74
|
-
--input: oklch(1 0 0 / 15%);
|
|
75
|
-
--ring: oklch(0.556 0 0);
|
|
76
|
-
--chart-1: oklch(0.811 0.111 293.571);
|
|
77
|
-
--chart-2: oklch(0.606 0.25 292.717);
|
|
78
|
-
--chart-3: oklch(0.541 0.281 293.009);
|
|
79
|
-
--chart-4: oklch(0.491 0.27 292.581);
|
|
80
|
-
--chart-5: oklch(0.432 0.232 292.759);
|
|
81
|
-
--sidebar: oklch(0.205 0 0);
|
|
82
|
-
--sidebar-foreground: oklch(0.985 0 0);
|
|
83
|
-
--sidebar-primary: oklch(0.585 0.233 277.117);
|
|
84
|
-
--sidebar-primary-foreground: oklch(0.962 0.018 272.314);
|
|
85
|
-
--sidebar-accent: oklch(0.269 0 0);
|
|
86
|
-
--sidebar-accent-foreground: oklch(0.985 0 0);
|
|
87
|
-
--sidebar-border: oklch(1 0 0 / 10%);
|
|
88
|
-
--sidebar-ring: oklch(0.556 0 0);
|
|
89
|
-
--destructive-foreground: var(--color-red-400);
|
|
90
|
-
--info: var(--color-blue-500);
|
|
91
|
-
--info-foreground: var(--color-blue-400);
|
|
92
|
-
--success: var(--color-emerald-500);
|
|
93
|
-
--success-foreground: var(--color-emerald-400);
|
|
94
|
-
--warning: var(--color-amber-500);
|
|
95
|
-
--warning-foreground: var(--color-amber-400);
|
|
96
|
-
--liquid-glass-rim-light: rgba(255,255,255,0.3);
|
|
97
|
-
--liquid-glass-rim-dark: rgba(0,0,0,0.5);
|
|
98
|
-
--liquid-glass-rim-fade: 4%;
|
|
99
|
-
--liquid-glass-rim-width: 1.5px;
|
|
100
|
-
|
|
101
|
-
.shadow-bezel {
|
|
102
|
-
box-shadow:
|
|
103
|
-
inset 1px 1px 2px rgb(255 255 255 / 0.15),
|
|
104
|
-
inset -2px -2px 4px rgb(0 0 0 / 0.6);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.shadow-debossed {
|
|
108
|
-
box-shadow:
|
|
109
|
-
inset 2px 2px 4px rgb(0 0 0 / 0.6),
|
|
110
|
-
inset -1px -1px 2px rgb(255 255 255 / 0.15);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
--invert: var(--color-zinc-700);
|
|
114
|
-
--invert-foreground: var(--color-zinc-50)
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
@theme inline {
|
|
118
|
-
/* motion tokens (transitions.dev scale, via transitions-polish) */
|
|
119
|
-
--ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
|
|
120
|
-
--ease-in-out: ease-in-out;
|
|
121
|
-
--ease-out: ease-out;
|
|
122
|
-
--ease-linear: linear;
|
|
123
|
-
--ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1);
|
|
124
|
-
--ease-bounce-strong: cubic-bezier(0.34, 3.85, 0.64, 1);
|
|
125
|
-
--duration-stagger: 40ms;
|
|
126
|
-
--duration-micro: 80ms;
|
|
127
|
-
--duration-quick: 150ms;
|
|
128
|
-
--duration-fast: 250ms;
|
|
129
|
-
--duration-medium: 350ms;
|
|
130
|
-
--duration-slow: 400ms;
|
|
131
|
-
--duration-very-slow: 500ms;
|
|
132
|
-
--distance-micro: 4px;
|
|
133
|
-
--distance-small: 6px;
|
|
134
|
-
--distance-base: 8px;
|
|
135
|
-
--distance-medium: 12px;
|
|
136
|
-
--distance-large: 30px;
|
|
137
|
-
--scale-large: 0.96;
|
|
138
|
-
--scale-medium: 0.97;
|
|
139
|
-
--scale-small: 0.98;
|
|
140
|
-
--scale-tiny: 0.99;
|
|
141
|
-
--blur-small: 2px;
|
|
142
|
-
--blur-medium: 3px;
|
|
143
|
-
--blur-large: 8px;
|
|
144
|
-
/* streaming-text recipe tunables (transitions.dev #30) */
|
|
145
|
-
--stream-gap: 60ms;
|
|
146
|
-
--stream-fade: var(--duration-medium);
|
|
147
|
-
--stream-blur: 1px;
|
|
148
|
-
--stream-ease: var(--ease-smooth-out);
|
|
149
|
-
--font-sans: "Inter Variable", sans-serif;
|
|
150
|
-
--font-heading: "Figtree Variable", sans-serif;
|
|
151
|
-
--color-sidebar-ring: var(--sidebar-ring);
|
|
152
|
-
--color-sidebar-border: var(--sidebar-border);
|
|
153
|
-
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
154
|
-
--color-sidebar-accent: var(--sidebar-accent);
|
|
155
|
-
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
156
|
-
--color-sidebar-primary: var(--sidebar-primary);
|
|
157
|
-
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
158
|
-
--color-sidebar: var(--sidebar);
|
|
159
|
-
--color-chart-5: var(--chart-5);
|
|
160
|
-
--color-chart-4: var(--chart-4);
|
|
161
|
-
--color-chart-3: var(--chart-3);
|
|
162
|
-
--color-chart-2: var(--chart-2);
|
|
163
|
-
--color-chart-1: var(--chart-1);
|
|
164
|
-
--color-ring: var(--ring);
|
|
165
|
-
--color-input: var(--input);
|
|
166
|
-
--color-border: var(--border);
|
|
167
|
-
--color-destructive: var(--destructive);
|
|
168
|
-
--color-accent-foreground: var(--accent-foreground);
|
|
169
|
-
--color-accent: var(--accent);
|
|
170
|
-
--color-muted-foreground: var(--muted-foreground);
|
|
171
|
-
--color-muted: var(--muted);
|
|
172
|
-
--color-secondary-foreground: var(--secondary-foreground);
|
|
173
|
-
--color-secondary: var(--secondary);
|
|
174
|
-
--color-primary-foreground: var(--primary-foreground);
|
|
175
|
-
--color-primary: var(--primary);
|
|
176
|
-
--color-popover-foreground: var(--popover-foreground);
|
|
177
|
-
--color-popover: var(--popover);
|
|
178
|
-
--color-card-foreground: var(--card-foreground);
|
|
179
|
-
--color-card: var(--card);
|
|
180
|
-
--color-foreground: var(--foreground);
|
|
181
|
-
--color-background: var(--background);
|
|
182
|
-
--radius-sm: calc(var(--radius) * 0.6);
|
|
183
|
-
--radius-md: calc(var(--radius) * 0.8);
|
|
184
|
-
--radius-lg: var(--radius);
|
|
185
|
-
--radius-xl: calc(var(--radius) * 1.4);
|
|
186
|
-
--radius-2xl: calc(var(--radius) * 1.8);
|
|
187
|
-
--radius-3xl: calc(var(--radius) * 2.2);
|
|
188
|
-
--radius-4xl: calc(var(--radius) * 2.6);
|
|
189
|
-
--color-destructive-foreground: var(--destructive-foreground);
|
|
190
|
-
@keyframes liquid-drift {
|
|
191
|
-
0% {
|
|
192
|
-
background-position:
|
|
193
|
-
0% 0%,
|
|
194
|
-
100% 100%,
|
|
195
|
-
0% 0%;
|
|
196
|
-
}
|
|
197
|
-
50% {
|
|
198
|
-
background-position:
|
|
199
|
-
30% 20%,
|
|
200
|
-
70% 80%,
|
|
201
|
-
0% 0%;
|
|
202
|
-
}
|
|
203
|
-
100% {
|
|
204
|
-
background-position:
|
|
205
|
-
0% 0%,
|
|
206
|
-
100% 100%,
|
|
207
|
-
0% 0%;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
--animate-caret-blink: 1s ease-out infinite caret-blink;
|
|
211
|
-
--animate-input-shake: input-shake 0.4s ease-in-out;
|
|
212
|
-
--animate-skeleton: skeleton 2s -1s infinite linear;
|
|
213
|
-
--color-warning-foreground: var(--warning-foreground);
|
|
214
|
-
--color-warning: var(--warning);
|
|
215
|
-
--color-success-foreground: var(--success-foreground);
|
|
216
|
-
--color-success: var(--success);
|
|
217
|
-
--color-info-foreground: var(--info-foreground);
|
|
218
|
-
--color-info: var(--info);
|
|
219
|
-
@keyframes skeleton {
|
|
220
|
-
to {
|
|
221
|
-
background-position: -200% 0;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
@keyframes input-shake {
|
|
225
|
-
0%,
|
|
226
|
-
100% {
|
|
227
|
-
translate: 0;
|
|
228
|
-
}
|
|
229
|
-
20% {
|
|
230
|
-
translate: -6px 0;
|
|
231
|
-
}
|
|
232
|
-
40% {
|
|
233
|
-
translate: 6px 0;
|
|
234
|
-
}
|
|
235
|
-
60% {
|
|
236
|
-
translate: -4px 0;
|
|
237
|
-
}
|
|
238
|
-
80% {
|
|
239
|
-
translate: 4px 0;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
@keyframes caret-blink {
|
|
243
|
-
0%,
|
|
244
|
-
70%,
|
|
245
|
-
to {
|
|
246
|
-
opacity: 1;
|
|
247
|
-
}
|
|
248
|
-
20%,
|
|
249
|
-
50% {
|
|
250
|
-
opacity: 0;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
--animate-toast-success-odd: toast-success-odd 0.32s cubic-bezier(0.5, 1, 0.89, 1);
|
|
254
|
-
--animate-toast-success-even: toast-success-even 0.32s cubic-bezier(0.5, 1, 0.89, 1);
|
|
255
|
-
--animate-toast-error-odd: toast-error-odd 0.28s cubic-bezier(0.5, 1, 0.89, 1);
|
|
256
|
-
--animate-toast-error-even: toast-error-even 0.28s cubic-bezier(0.5, 1, 0.89, 1)
|
|
257
|
-
;
|
|
258
|
-
--color-invert-foreground: var(--invert-foreground);
|
|
259
|
-
--color-invert: var(--invert);
|
|
260
|
-
@keyframes toast-success-odd {
|
|
261
|
-
0% {
|
|
262
|
-
scale: 1;
|
|
263
|
-
}
|
|
264
|
-
30% {
|
|
265
|
-
scale: 1.025;
|
|
266
|
-
}
|
|
267
|
-
60% {
|
|
268
|
-
scale: 0.99;
|
|
269
|
-
}
|
|
270
|
-
100% {
|
|
271
|
-
scale: 1;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
@keyframes toast-error-odd {
|
|
275
|
-
0% {
|
|
276
|
-
translate: 0 0;
|
|
277
|
-
}
|
|
278
|
-
25% {
|
|
279
|
-
translate: -3px 0;
|
|
280
|
-
}
|
|
281
|
-
50% {
|
|
282
|
-
translate: 3px 0;
|
|
283
|
-
}
|
|
284
|
-
75% {
|
|
285
|
-
translate: -3px 0;
|
|
286
|
-
}
|
|
287
|
-
100% {
|
|
288
|
-
translate: 0 0;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
@keyframes toast-success-even {
|
|
292
|
-
0% {
|
|
293
|
-
scale: 1;
|
|
294
|
-
}
|
|
295
|
-
30% {
|
|
296
|
-
scale: 1.025;
|
|
297
|
-
}
|
|
298
|
-
60% {
|
|
299
|
-
scale: 0.99;
|
|
300
|
-
}
|
|
301
|
-
100% {
|
|
302
|
-
scale: 1;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
@keyframes toast-error-even {
|
|
306
|
-
0% {
|
|
307
|
-
translate: 0 0;
|
|
308
|
-
}
|
|
309
|
-
25% {
|
|
310
|
-
translate: -3px 0;
|
|
311
|
-
}
|
|
312
|
-
50% {
|
|
313
|
-
translate: 3px 0;
|
|
314
|
-
}
|
|
315
|
-
75% {
|
|
316
|
-
translate: -3px 0;
|
|
317
|
-
}
|
|
318
|
-
100% {
|
|
319
|
-
translate: 0 0;
|
|
320
|
-
}
|
|
321
|
-
}}
|
package/src/components/AGENTS.md
DELETED
|
File without changes
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
import { createHomeLayout } from "fumapress/layouts/home";
|
|
3
|
-
import type PressConfig from "../../../press.config";
|
|
4
|
-
|
|
5
|
-
const HomeLayout = createHomeLayout<typeof PressConfig.$context>();
|
|
6
|
-
|
|
7
|
-
export default function Layout({ children }: { children: ReactNode }) {
|
|
8
|
-
return <HomeLayout>{children}</HomeLayout>;
|
|
9
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Avatar,
|
|
3
|
-
AvatarBadge,
|
|
4
|
-
AvatarFallback,
|
|
5
|
-
AvatarImage,
|
|
6
|
-
} from "@/components/ui/avatar"
|
|
7
|
-
import type { IAvatarProps, TUserType } from "./types"
|
|
8
|
-
import { cn } from "@/lib/utils"
|
|
9
|
-
import {
|
|
10
|
-
initialsFrom,
|
|
11
|
-
loaderSizes,
|
|
12
|
-
ringClasses,
|
|
13
|
-
sizeClasses,
|
|
14
|
-
statusClasses,
|
|
15
|
-
} from "./utils"
|
|
16
|
-
import { User } from "lucide-react"
|
|
17
|
-
import { VerifiedBadge } from "./verified"
|
|
18
|
-
import { Skeleton } from "@/components/ui/skeleton"
|
|
19
|
-
import { Loader } from "../loader"
|
|
20
|
-
|
|
21
|
-
export default function Base<T extends TUserType>({
|
|
22
|
-
user,
|
|
23
|
-
size = "sm",
|
|
24
|
-
className,
|
|
25
|
-
loading,
|
|
26
|
-
audio,
|
|
27
|
-
}: IAvatarProps<T>) {
|
|
28
|
-
return (
|
|
29
|
-
<div
|
|
30
|
-
className={cn(
|
|
31
|
-
"relative",
|
|
32
|
-
audio && "group/avatar flex items-center justify-center"
|
|
33
|
-
)}
|
|
34
|
-
>
|
|
35
|
-
{
|
|
36
|
-
/* Animated Story Ring — suppressed while loading; identity first */
|
|
37
|
-
audio && !loading && (
|
|
38
|
-
<div
|
|
39
|
-
className={cn(
|
|
40
|
-
"absolute -inset-1 rounded-full bg-linear-to-tr from-yellow-400 via-fuchsia-500 to-violet-600 blur-xs transition-all duration-500",
|
|
41
|
-
ringClasses[audio]
|
|
42
|
-
)}
|
|
43
|
-
/>
|
|
44
|
-
)
|
|
45
|
-
}
|
|
46
|
-
<Avatar className={cn(sizeClasses[size], className)}>
|
|
47
|
-
<AvatarImage src={user?.avatarUrl} alt={user?.firstName} />
|
|
48
|
-
<AvatarFallback>
|
|
49
|
-
{initialsFrom(user) ?? <User className="size-4" aria-hidden="true" />}
|
|
50
|
-
</AvatarFallback>
|
|
51
|
-
{loading && (
|
|
52
|
-
<Skeleton className="absolute inset-0 rounded-full ring-1 ring-border/50 dark:[--skeleton-highlight:--alpha(var(--color-white)/14%)]" />
|
|
53
|
-
)}
|
|
54
|
-
{user && user.status && !loading && size !== "sm" && (
|
|
55
|
-
<AvatarBadge className={statusClasses[user.status]} />
|
|
56
|
-
)}
|
|
57
|
-
{user && user.verified && !loading && size !== "sm" && (
|
|
58
|
-
<span className="absolute -top-0.5 -right-0.5">
|
|
59
|
-
<VerifiedBadge />
|
|
60
|
-
</span>
|
|
61
|
-
)}
|
|
62
|
-
</Avatar>
|
|
63
|
-
{loading && (
|
|
64
|
-
<div className="absolute inset-0 flex items-center justify-center">
|
|
65
|
-
<Loader type="dots" size={loaderSizes[size]} />
|
|
66
|
-
</div>
|
|
67
|
-
)}
|
|
68
|
-
</div>
|
|
69
|
-
)
|
|
70
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { TAtomSize } from "../types";
|
|
2
|
-
|
|
3
|
-
export type TUserType = {
|
|
4
|
-
firstName?: string
|
|
5
|
-
lastName?: string
|
|
6
|
-
email?: string
|
|
7
|
-
role?: string
|
|
8
|
-
avatarUrl?: string
|
|
9
|
-
verified?: boolean
|
|
10
|
-
status?: TAvatarStatus
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type TAvatarSize = Exclude<TAtomSize, "xs">
|
|
14
|
-
export type TAvatarStatus = "online" | "idle" | "offline"
|
|
15
|
-
|
|
16
|
-
export type TAvatarAudio = "muted" | "unmuted" | "speaking"
|
|
17
|
-
|
|
18
|
-
export interface IAvatarProps<T extends TUserType> {
|
|
19
|
-
user?: T
|
|
20
|
-
size?: TAvatarSize
|
|
21
|
-
className?: string
|
|
22
|
-
audio?: TAvatarAudio
|
|
23
|
-
loading?: boolean
|
|
24
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { ClassValue } from "class-variance-authority/types"
|
|
2
|
-
import type { TAvatarAudio, TAvatarSize, TUserType } from "./types"
|
|
3
|
-
import type { TAtomSize } from "../types";
|
|
4
|
-
|
|
5
|
-
export function initialsFrom(user: string | TUserType | undefined): string | undefined {
|
|
6
|
-
// If the user is a string, use it directly to generate initials.
|
|
7
|
-
if (user && typeof user === "string") {
|
|
8
|
-
const parts = user.trim().split(/\s+/).filter(Boolean)
|
|
9
|
-
if (parts.length === 0) return ""
|
|
10
|
-
const first = parts[0]?.[0] ?? ""
|
|
11
|
-
const last = parts.length > 1 ? (parts.at(-1)?.[0] ?? "") : ""
|
|
12
|
-
return (first + last).toUpperCase()
|
|
13
|
-
}
|
|
14
|
-
// If the user is not a string, use firstName and lastName to generate initials.
|
|
15
|
-
if (user && typeof user !== "string" && user.firstName && user.lastName)
|
|
16
|
-
return user.firstName.charAt(0) + user.lastName.charAt(0)
|
|
17
|
-
// If the user does not have a firstName or lastName, return undefined.
|
|
18
|
-
return undefined
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export const avatarIsSpeakingClass =
|
|
22
|
-
"ring-background size-10 ring-2 transition-transform duration-500 group-hover/avatar:scale-95"
|
|
23
|
-
|
|
24
|
-
export const ringClasses: Record<NonNullable<TAvatarAudio>, ClassValue> = {
|
|
25
|
-
muted: "group-hover/avatar:opacity-0 group-hover/avatar:blur-none opacity-0",
|
|
26
|
-
unmuted:
|
|
27
|
-
"animate-none group-hover/avatar:opacity-70 group-hover/avatar:blur-sm opacity-30",
|
|
28
|
-
speaking:
|
|
29
|
-
"animate-[spin_3s_linear_infinite] group-hover/avatar:opacity-100 group-hover/avatar:blur-sm opacity-75",
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export const sizeClasses: Record<TAvatarSize, string> = {
|
|
33
|
-
sm: "size-6",
|
|
34
|
-
default: "size-8",
|
|
35
|
-
lg: "size-10",
|
|
36
|
-
xl: "size-14",
|
|
37
|
-
xxl: "size-16",
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// Dot trio ≈ 45-55% of the disc: 3×dot + 2×4px gap.
|
|
41
|
-
// 24px disc → 14px trio (xs), 40px → 20px (sm), 64px → 32px (md).
|
|
42
|
-
export const loaderSizes: Record<TAvatarSize, TAtomSize> = {
|
|
43
|
-
sm: "xs",
|
|
44
|
-
default: "xs",
|
|
45
|
-
lg: "sm",
|
|
46
|
-
xl: "sm",
|
|
47
|
-
xxl: "default",
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export const statusClasses = {
|
|
51
|
-
online: "bg-success",
|
|
52
|
-
idle: "bg-warning",
|
|
53
|
-
offline: "bg-text-secondary",
|
|
54
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export const VerifiedBadge = () => {
|
|
4
|
-
return (
|
|
5
|
-
<svg viewBox="0 0 15 16" className="size-4">
|
|
6
|
-
<path
|
|
7
|
-
className="fill-blue-500"
|
|
8
|
-
d="M14.5425 6.8973L13.5 5.8398C13.4273 5.76858 13.3699 5.68331 13.3312 5.58919C13.2925 5.49507 13.2734 5.39405 13.275 5.2923V3.7923C13.274 3.58681 13.2324 3.38353 13.1527 3.19414C13.0729 3.00476 12.9565 2.833 12.8101 2.68874C12.6638 2.54448 12.4904 2.43055 12.2998 2.35351C12.1093 2.27647 11.9055 2.23783 11.7 2.2398H10.2C10.0982 2.24141 9.99722 2.22228 9.9031 2.1836C9.80898 2.14492 9.72371 2.08749 9.65249 2.0148L8.60249 0.957304C8.30998 0.665106 7.91344 0.500977 7.49999 0.500977C7.08654 0.500977 6.68999 0.665106 6.39749 0.957304L5.33999 1.9998C5.26876 2.07249 5.1835 2.12992 5.08937 2.1686C4.99525 2.20728 4.89424 2.22641 4.79249 2.2248H3.29249C3.08699 2.22578 2.88371 2.26735 2.69432 2.34713C2.50494 2.4269 2.33318 2.54331 2.18892 2.68966C2.04466 2.83602 1.93073 3.00943 1.85369 3.19994C1.77665 3.39046 1.73801 3.59431 1.73999 3.7998V5.2998C1.74159 5.40155 1.72247 5.50256 1.68378 5.59669C1.6451 5.69081 1.58767 5.77608 1.51499 5.8473L0.457487 6.8973C0.165289 7.18981 0.00115967 7.58635 0.00115967 7.9998C0.00115967 8.41325 0.165289 8.80979 0.457487 9.1023L1.49999 10.1598C1.57267 10.231 1.6301 10.3163 1.66878 10.4104C1.70747 10.5045 1.72659 10.6056 1.72499 10.7073V12.2073C1.72597 12.4128 1.76754 12.6161 1.84731 12.8055C1.92709 12.9949 2.04349 13.1666 2.18985 13.3109C2.3362 13.4551 2.50961 13.5691 2.70013 13.6461C2.89064 13.7231 3.0945 13.7618 3.29999 13.7598H4.79999C4.90174 13.7582 5.00275 13.7773 5.09687 13.816C5.191 13.8547 5.27627 13.9121 5.34749 13.9848L6.40499 15.0423C6.69749 15.3345 7.09404 15.4986 7.50749 15.4986C7.92094 15.4986 8.31748 15.3345 8.60999 15.0423L9.65999 13.9998C9.73121 13.9271 9.81647 13.8697 9.9106 13.831C10.0047 13.7923 10.1057 13.7732 10.2075 13.7748H11.7075C12.1212 13.7748 12.518 13.6104 12.8106 13.3179C13.1031 13.0253 13.2675 12.6285 13.2675 12.2148V10.7148C13.2659 10.6131 13.285 10.512 13.3237 10.4179C13.3624 10.3238 13.4198 10.2385 13.4925 10.1673L14.55 9.1098C14.6953 8.96434 14.8104 8.79157 14.8887 8.60146C14.9671 8.41134 15.007 8.20761 15.0063 8.00199C15.0056 7.79638 14.9643 7.59293 14.8847 7.40334C14.8051 7.21376 14.6888 7.04178 14.5425 6.8973Z"
|
|
9
|
-
/>
|
|
10
|
-
<path
|
|
11
|
-
className="fill-white"
|
|
12
|
-
d="M10.635 6.6498L6.95249 10.2498C6.90055 10.3024 6.83864 10.3441 6.77038 10.3724C6.70212 10.4007 6.62889 10.4152 6.55499 10.4148C6.48062 10.4138 6.40719 10.398 6.33896 10.3684C6.27073 10.3388 6.20905 10.2959 6.15749 10.2423L4.37999 8.4423C4.32532 8.39026 4.28169 8.32775 4.25169 8.25849C4.22169 8.18923 4.20593 8.11464 4.20536 8.03916C4.20479 7.96369 4.21941 7.88887 4.24836 7.81916C4.27731 7.74946 4.31999 7.68629 4.37387 7.63342C4.42774 7.58056 4.4917 7.53908 4.56194 7.51145C4.63218 7.48382 4.70726 7.47061 4.78271 7.4726C4.85816 7.4746 4.93244 7.49176 5.00112 7.52306C5.0698 7.55436 5.13148 7.59917 5.18249 7.6548L6.56249 9.0573L9.84749 5.8473C9.95296 5.74197 10.0959 5.6828 10.245 5.6828C10.394 5.6828 10.537 5.74197 10.6425 5.8473C10.6953 5.90016 10.737 5.963 10.7653 6.03216C10.7935 6.10132 10.8077 6.17542 10.807 6.25013C10.8063 6.32483 10.7908 6.39865 10.7612 6.46728C10.7317 6.5359 10.6888 6.59795 10.635 6.6498Z"
|
|
13
|
-
/>
|
|
14
|
-
</svg>
|
|
15
|
-
)
|
|
16
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { cn } from "@/lib/utils"
|
|
2
|
-
import type { ITextureProps } from "./type";
|
|
3
|
-
import { linearGradient, textureMap } from "./utils";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export function Texture({
|
|
7
|
-
variant = "fabric",
|
|
8
|
-
opacity = 1,
|
|
9
|
-
className,
|
|
10
|
-
children,
|
|
11
|
-
}: ITextureProps) {
|
|
12
|
-
const textureUrl = variant !== "none" ? textureMap[variant] : null
|
|
13
|
-
return (
|
|
14
|
-
<div className="relative h-full w-full flex flex-col flex-1">
|
|
15
|
-
{textureUrl && (
|
|
16
|
-
<div
|
|
17
|
-
aria-hidden="true"
|
|
18
|
-
className="pointer-events-none absolute inset-0"
|
|
19
|
-
style={{
|
|
20
|
-
backgroundImage: `url(${textureUrl})`,
|
|
21
|
-
backgroundRepeat: "repeat",
|
|
22
|
-
opacity,
|
|
23
|
-
}}
|
|
24
|
-
/>
|
|
25
|
-
)}
|
|
26
|
-
{children && <div className={cn("h-full w-full flex flex-col flex-1", linearGradient, className)}>{children}</div>}
|
|
27
|
-
</div>
|
|
28
|
-
)
|
|
29
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { TTextureVariant } from "./type";
|
|
2
|
-
import fabricBackground from "@/assets/fabric.png";
|
|
3
|
-
import paperBackground from "@/assets/paper.png";
|
|
4
|
-
|
|
5
|
-
export const textureMap: Record<Exclude<TTextureVariant, "none">, string> = {
|
|
6
|
-
fabric: fabricBackground,
|
|
7
|
-
paper: paperBackground,
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const linearGradient = "bg-linear-to-t from-background from-10% to-transparent to-40% dark:from-10% dark:to-background/30 dark:to-50%";
|
|
11
|
-
|
|
12
|
-
export const verticalFadeGradient = (color: string, spread: number = 50) =>
|
|
13
|
-
`linear-gradient(to top, ${color} 0%, ${color} ${spread}%, transparent 100%)`
|