@asanchez-sa/abby 0.0.0-stage → 0.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 +217 -2
- package/dist/_virtual/_rolldown/runtime.js +26 -0
- package/dist/agents/approvals.d.ts +46 -0
- package/dist/agents/approvals.js +58 -0
- package/dist/agents/changes.d.ts +21 -0
- package/dist/agents/changes.js +21 -0
- package/dist/agents/hooks.d.ts +20 -0
- package/dist/agents/hooks.js +58 -0
- package/dist/agents/index.d.ts +11 -0
- package/dist/agents/index.js +9 -0
- package/dist/agents/run-tool.d.ts +44 -0
- package/dist/agents/run-tool.js +79 -0
- package/dist/agents/ui-sdk.d.ts +5 -0
- package/dist/agents/ui-sdk.js +3 -0
- package/dist/behaviors/canvas/index.d.ts +2 -0
- package/dist/behaviors/canvas/index.js +1 -0
- package/dist/behaviors/canvas/ui-sdk.d.ts +2 -0
- package/dist/behaviors/canvas/ui-sdk.js +1 -0
- package/dist/behaviors/drag-and-drop/index.d.ts +2 -0
- package/dist/behaviors/drag-and-drop/index.js +1 -0
- package/dist/behaviors/drag-and-drop/ui-sdk.d.ts +2 -0
- package/dist/behaviors/drag-and-drop/ui-sdk.js +1 -0
- package/dist/behaviors/dragging/index.d.ts +2 -0
- package/dist/behaviors/dragging/index.js +1 -0
- package/dist/behaviors/dragging/ui-sdk.d.ts +2 -0
- package/dist/behaviors/dragging/ui-sdk.js +1 -0
- package/dist/behaviors/focus/index.d.ts +2 -0
- package/dist/behaviors/focus/index.js +1 -0
- package/dist/behaviors/focus/ui-sdk.d.ts +2 -0
- package/dist/behaviors/focus/ui-sdk.js +1 -0
- package/dist/behaviors/lists/index.d.ts +3 -0
- package/dist/behaviors/lists/index.js +3 -0
- package/dist/behaviors/lists/ui-sdk.d.ts +3 -0
- package/dist/behaviors/lists/ui-sdk.js +3 -0
- package/dist/behaviors/popups/index.d.ts +3 -0
- package/dist/behaviors/popups/index.js +3 -0
- package/dist/behaviors/popups/ui-sdk.d.ts +3 -0
- package/dist/behaviors/popups/ui-sdk.js +3 -0
- package/dist/behaviors/preferences/index.d.ts +3 -0
- package/dist/behaviors/preferences/index.js +3 -0
- package/dist/behaviors/preferences/ui-sdk.d.ts +3 -0
- package/dist/behaviors/preferences/ui-sdk.js +3 -0
- package/dist/behaviors/selection/index.d.ts +3 -0
- package/dist/behaviors/selection/index.js +3 -0
- package/dist/behaviors/selection/indicator.d.ts +13 -0
- package/dist/behaviors/selection/indicator.js +20 -0
- package/dist/behaviors/selection/ui-sdk.d.ts +2 -0
- package/dist/behaviors/selection/ui-sdk.js +1 -0
- package/dist/behaviors/transitions/index.d.ts +3 -0
- package/dist/behaviors/transitions/index.js +3 -0
- package/dist/behaviors/transitions/ui-sdk.d.ts +3 -0
- package/dist/behaviors/transitions/ui-sdk.js +3 -0
- package/dist/behaviors/trees/index.d.ts +2 -0
- package/dist/behaviors/trees/index.js +1 -0
- package/dist/behaviors/trees/ui-sdk.d.ts +2 -0
- package/dist/behaviors/trees/ui-sdk.js +1 -0
- package/dist/components/accordion/accordion.d.ts +13 -0
- package/dist/components/accordion/accordion.js +165 -0
- package/dist/components/alert/alert.d.ts +13 -0
- package/dist/components/alert/alert.js +131 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts +15 -0
- package/dist/components/alert-dialog/alert-dialog.js +257 -0
- package/dist/components/aspect-ratio/aspect-ratio.d.ts +7 -0
- package/dist/components/aspect-ratio/aspect-ratio.js +57 -0
- package/dist/components/attachment/attachment.d.ts +48 -0
- package/dist/components/attachment/attachment.js +372 -0
- package/dist/components/autocomplete/autocomplete.d.ts +32 -0
- package/dist/components/autocomplete/autocomplete.js +466 -0
- package/dist/components/avatar/avatar.d.ts +6 -0
- package/dist/components/avatar/avatar.js +100 -0
- package/dist/components/avatar-group/avatar-group.d.ts +9 -0
- package/dist/components/avatar-group/avatar-group.js +75 -0
- package/dist/components/badge/badge.d.ts +15 -0
- package/dist/components/badge/badge.js +31 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +24 -0
- package/dist/components/breadcrumb/breadcrumb.js +279 -0
- package/dist/components/bubble/bubble.d.ts +26 -0
- package/dist/components/bubble/bubble.js +173 -0
- package/dist/components/button/button.d.ts +18 -0
- package/dist/components/button/button.js +91 -0
- package/dist/components/button-group/button-group.d.ts +15 -0
- package/dist/components/button-group/button-group.js +71 -0
- package/dist/components/calendar/calendar.d.ts +29 -0
- package/dist/components/calendar/calendar.js +453 -0
- package/dist/components/card/card.d.ts +14 -0
- package/dist/components/card/card.js +213 -0
- package/dist/components/carousel/carousel.d.ts +16 -0
- package/dist/components/carousel/carousel.js +364 -0
- package/dist/components/chain-of-thought/chain-of-thought.d.ts +72 -0
- package/dist/components/chain-of-thought/chain-of-thought.js +491 -0
- package/dist/components/chat/chat.d.ts +48 -0
- package/dist/components/chat/chat.js +207 -0
- package/dist/components/checkbox/checkbox.d.ts +10 -0
- package/dist/components/checkbox/checkbox.js +118 -0
- package/dist/components/checkpoint/checkpoint.d.ts +24 -0
- package/dist/components/checkpoint/checkpoint.js +178 -0
- package/dist/components/choice-cards/choice-cards.d.ts +38 -0
- package/dist/components/choice-cards/choice-cards.js +255 -0
- package/dist/components/code-block/code-block.d.ts +58 -0
- package/dist/components/code-block/code-block.js +506 -0
- package/dist/components/code-block/highlighter.js +96 -0
- package/dist/components/code-block/use-highlighted-code.d.ts +11 -0
- package/dist/components/code-block/use-highlighted-code.js +54 -0
- package/dist/components/collapsible/collapsible.d.ts +10 -0
- package/dist/components/collapsible/collapsible.js +92 -0
- package/dist/components/color-picker/color-picker.d.ts +17 -0
- package/dist/components/color-picker/color-picker.js +395 -0
- package/dist/components/combobox/combobox.d.ts +54 -0
- package/dist/components/combobox/combobox.js +683 -0
- package/dist/components/command/command.d.ts +23 -0
- package/dist/components/command/command.js +373 -0
- package/dist/components/command-dock/command-dock.d.ts +118 -0
- package/dist/components/command-dock/command-dock.js +944 -0
- package/dist/components/confirmation/confirmation.d.ts +58 -0
- package/dist/components/confirmation/confirmation.js +181 -0
- package/dist/components/context/context.d.ts +82 -0
- package/dist/components/context/context.js +490 -0
- package/dist/components/date-input/date-input.d.ts +16 -0
- package/dist/components/date-input/date-input.js +89 -0
- package/dist/components/date-picker/date-picker.d.ts +28 -0
- package/dist/components/date-picker/date-picker.js +361 -0
- package/dist/components/dialog/dialog.d.ts +14 -0
- package/dist/components/dialog/dialog.js +261 -0
- package/dist/components/drawer/drawer.d.ts +16 -0
- package/dist/components/drawer/drawer.js +309 -0
- package/dist/components/empty/empty.d.ts +18 -0
- package/dist/components/empty/empty.js +192 -0
- package/dist/components/field/field.d.ts +15 -0
- package/dist/components/field/field.js +261 -0
- package/dist/components/file-input/file-input.d.ts +12 -0
- package/dist/components/file-input/file-input.js +216 -0
- package/dist/components/file-tree/file-tree.d.ts +45 -0
- package/dist/components/file-tree/file-tree.js +283 -0
- package/dist/components/hover-card/hover-card.d.ts +10 -0
- package/dist/components/hover-card/hover-card.js +118 -0
- package/dist/components/icon/icon.d.ts +14 -0
- package/dist/components/icon/icon.js +60 -0
- package/dist/components/image-cropper/image-cropper.d.ts +15 -0
- package/dist/components/image-cropper/image-cropper.js +334 -0
- package/dist/components/inline-citation/inline-citation.d.ts +46 -0
- package/dist/components/inline-citation/inline-citation.js +269 -0
- package/dist/components/input/input.d.ts +9 -0
- package/dist/components/input/input.js +43 -0
- package/dist/components/input-group/input-group.d.ts +42 -0
- package/dist/components/input-group/input-group.js +192 -0
- package/dist/components/item/item.d.ts +32 -0
- package/dist/components/item/item.js +394 -0
- package/dist/components/kbd/kbd.d.ts +9 -0
- package/dist/components/kbd/kbd.js +75 -0
- package/dist/components/label/label.d.ts +6 -0
- package/dist/components/label/label.js +40 -0
- package/dist/components/link/link.d.ts +21 -0
- package/dist/components/link/link.js +126 -0
- package/dist/components/listbox/listbox.d.ts +20 -0
- package/dist/components/listbox/listbox.js +199 -0
- package/dist/components/marker/marker.d.ts +11 -0
- package/dist/components/marker/marker.js +88 -0
- package/dist/components/menu/menu.d.ts +38 -0
- package/dist/components/menu/menu.js +553 -0
- package/dist/components/menubar/menubar.d.ts +9 -0
- package/dist/components/menubar/menubar.js +47 -0
- package/dist/components/message/message.d.ts +44 -0
- package/dist/components/message/message.js +328 -0
- package/dist/components/message-scroller/message-scroller.d.ts +111 -0
- package/dist/components/message-scroller/message-scroller.js +957 -0
- package/dist/components/meter/meter.d.ts +8 -0
- package/dist/components/meter/meter.js +162 -0
- package/dist/components/model-selector/model-selector.d.ts +155 -0
- package/dist/components/model-selector/model-selector.js +905 -0
- package/dist/components/native-select/native-select.d.ts +27 -0
- package/dist/components/native-select/native-select.js +226 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +29 -0
- package/dist/components/navigation-menu/navigation-menu.js +318 -0
- package/dist/components/not-label.js +9 -0
- package/dist/components/note-editor/blocks.d.ts +22 -0
- package/dist/components/note-editor/blocks.js +245 -0
- package/dist/components/note-editor/diff.d.ts +19 -0
- package/dist/components/note-editor/diff.js +64 -0
- package/dist/components/note-editor/editor.js +249 -0
- package/dist/components/note-editor/note-editor.d.ts +109 -0
- package/dist/components/note-editor/note-editor.js +954 -0
- package/dist/components/note-editor/parts/comments.d.ts +24 -0
- package/dist/components/note-editor/parts/comments.js +336 -0
- package/dist/components/note-editor/parts/header.d.ts +25 -0
- package/dist/components/note-editor/parts/header.js +263 -0
- package/dist/components/note-editor/parts/history.d.ts +56 -0
- package/dist/components/note-editor/parts/history.js +409 -0
- package/dist/components/note-editor/parts/presence.d.ts +31 -0
- package/dist/components/note-editor/parts/presence.js +140 -0
- package/dist/components/note-editor/parts/suggestions.d.ts +45 -0
- package/dist/components/note-editor/parts/suggestions.js +316 -0
- package/dist/components/note-editor/parts/toolbar.d.ts +38 -0
- package/dist/components/note-editor/parts/toolbar.js +683 -0
- package/dist/components/note-editor/people.d.ts +84 -0
- package/dist/components/note-editor/people.js +276 -0
- package/dist/components/note-editor/person.d.ts +11 -0
- package/dist/components/note-editor/person.js +15 -0
- package/dist/components/note-place/note-place.d.ts +42 -0
- package/dist/components/note-place/note-place.js +256 -0
- package/dist/components/note-status/note-status.d.ts +59 -0
- package/dist/components/note-status/note-status.js +380 -0
- package/dist/components/number-input/number-input.d.ts +12 -0
- package/dist/components/number-input/number-input.js +252 -0
- package/dist/components/otp-input/otp-input.d.ts +12 -0
- package/dist/components/otp-input/otp-input.js +136 -0
- package/dist/components/pagination/pagination.d.ts +23 -0
- package/dist/components/pagination/pagination.js +218 -0
- package/dist/components/password-input/password-input.d.ts +11 -0
- package/dist/components/password-input/password-input.js +117 -0
- package/dist/components/plan/plan.d.ts +51 -0
- package/dist/components/plan/plan.js +320 -0
- package/dist/components/popover/popover.d.ts +16 -0
- package/dist/components/popover/popover.js +268 -0
- package/dist/components/preferences/preferences.d.ts +5 -0
- package/dist/components/preferences/preferences.js +18 -0
- package/dist/components/progress/progress.d.ts +8 -0
- package/dist/components/progress/progress.js +162 -0
- package/dist/components/prompt-input/prompt-input.d.ts +247 -0
- package/dist/components/prompt-input/prompt-input.js +1367 -0
- package/dist/components/questionnaire/questionnaire.d.ts +174 -0
- package/dist/components/questionnaire/questionnaire.js +1628 -0
- package/dist/components/queue/queue.d.ts +82 -0
- package/dist/components/queue/queue.js +471 -0
- package/dist/components/radio/radio.d.ts +7 -0
- package/dist/components/radio/radio.js +101 -0
- package/dist/components/rating/rating.d.ts +10 -0
- package/dist/components/rating/rating.js +95 -0
- package/dist/components/reasoning/reasoning.d.ts +50 -0
- package/dist/components/reasoning/reasoning.js +233 -0
- package/dist/components/resizable/resizable.d.ts +6 -0
- package/dist/components/resizable/resizable.js +100 -0
- package/dist/components/scroll-area/scroll-area.d.ts +17 -0
- package/dist/components/scroll-area/scroll-area.js +211 -0
- package/dist/components/segmented-control/segmented-control.d.ts +16 -0
- package/dist/components/segmented-control/segmented-control.js +142 -0
- package/dist/components/select/select.d.ts +43 -0
- package/dist/components/select/select.js +577 -0
- package/dist/components/separator/separator.d.ts +4 -0
- package/dist/components/separator/separator.js +38 -0
- package/dist/components/sheet/sheet.d.ts +24 -0
- package/dist/components/sheet/sheet.js +330 -0
- package/dist/components/sidebar/sidebar.d.ts +138 -0
- package/dist/components/sidebar/sidebar.js +1374 -0
- package/dist/components/skeleton/skeleton.d.ts +4 -0
- package/dist/components/skeleton/skeleton.js +40 -0
- package/dist/components/slider/slider.d.ts +9 -0
- package/dist/components/slider/slider.js +193 -0
- package/dist/components/sources/sources.d.ts +35 -0
- package/dist/components/sources/sources.js +209 -0
- package/dist/components/spinner/spinner.d.ts +11 -0
- package/dist/components/spinner/spinner.js +59 -0
- package/dist/components/stack-trace/parse-stack-trace.d.ts +21 -0
- package/dist/components/stack-trace/parse-stack-trace.js +61 -0
- package/dist/components/stack-trace/stack-trace.d.ts +79 -0
- package/dist/components/stack-trace/stack-trace.js +434 -0
- package/dist/components/subagent/subagent.d.ts +71 -0
- package/dist/components/subagent/subagent.js +450 -0
- package/dist/components/suggestion/suggestion.d.ts +21 -0
- package/dist/components/suggestion/suggestion.js +130 -0
- package/dist/components/switch/switch.d.ts +6 -0
- package/dist/components/switch/switch.js +70 -0
- package/dist/components/table/table.d.ts +19 -0
- package/dist/components/table/table.js +284 -0
- package/dist/components/table-of-contents/spy.js +84 -0
- package/dist/components/table-of-contents/table-of-contents.d.ts +92 -0
- package/dist/components/table-of-contents/table-of-contents.js +787 -0
- package/dist/components/tabs/tabs.d.ts +25 -0
- package/dist/components/tabs/tabs.js +273 -0
- package/dist/components/task/task.d.ts +40 -0
- package/dist/components/task/task.js +262 -0
- package/dist/components/terminal/terminal.d.ts +82 -0
- package/dist/components/terminal/terminal.js +457 -0
- package/dist/components/test-results/test-results.d.ts +127 -0
- package/dist/components/test-results/test-results.js +687 -0
- package/dist/components/textarea/textarea.d.ts +8 -0
- package/dist/components/textarea/textarea.js +43 -0
- package/dist/components/time-input/time-input.d.ts +7 -0
- package/dist/components/time-input/time-input.js +82 -0
- package/dist/components/timeline/timeline.d.ts +19 -0
- package/dist/components/timeline/timeline.js +247 -0
- package/dist/components/toast/toast.d.ts +12 -0
- package/dist/components/toast/toast.js +285 -0
- package/dist/components/toggle/toggle.d.ts +15 -0
- package/dist/components/toggle/toggle.js +137 -0
- package/dist/components/token-input/token-input.d.ts +7 -0
- package/dist/components/token-input/token-input.js +117 -0
- package/dist/components/tool/tool.d.ts +66 -0
- package/dist/components/tool/tool.js +413 -0
- package/dist/components/toolbar/toolbar.d.ts +91 -0
- package/dist/components/toolbar/toolbar.js +655 -0
- package/dist/components/tooltip/tooltip.d.ts +8 -0
- package/dist/components/tooltip/tooltip.js +97 -0
- package/dist/components/trace/trace.d.ts +31 -0
- package/dist/components/trace/trace.js +309 -0
- package/dist/components/tree/tree.d.ts +13 -0
- package/dist/components/tree/tree.js +258 -0
- package/dist/components/trigger-menu/trigger-menu.d.ts +30 -0
- package/dist/components/trigger-menu/trigger-menu.js +352 -0
- package/dist/components/usage/usage.d.ts +132 -0
- package/dist/components/usage/usage.js +1368 -0
- package/dist/components/waterfall/waterfall.d.ts +20 -0
- package/dist/components/waterfall/waterfall.js +360 -0
- package/dist/components/week-strip/week-strip.d.ts +177 -0
- package/dist/components/week-strip/week-strip.js +1081 -0
- package/dist/core/index.d.ts +7 -0
- package/dist/core/index.js +27 -0
- package/dist/core/ui-sdk.d.ts +3 -0
- package/dist/core/ui-sdk.js +3 -0
- package/dist/core/use-primitive-state.d.ts +14 -0
- package/dist/core/use-primitive-state.js +25 -0
- package/dist/styles/LICENSE-shadcn.md +21 -0
- package/dist/styles/color-scheme.css +32 -0
- package/dist/styles/components.css +303 -0
- package/dist/styles/index.css +41 -0
- package/dist/styles/tokens.css +474 -0
- package/dist/styles/typeset/shadcn.css +506 -0
- package/dist/styles/typeset.css +70 -0
- package/dist/styles/utilities.css +555 -0
- package/dist/tools/observe/index.d.ts +2 -0
- package/dist/tools/observe/index.js +3 -0
- package/dist/tools/observe/ui-sdk.d.ts +1 -0
- package/dist/tools/observe/ui-sdk.js +2 -0
- package/dist/tools/testing/check-agent.d.ts +28 -0
- package/dist/tools/testing/check-agent.js +42 -0
- package/dist/tools/testing/index.d.ts +4 -0
- package/dist/tools/testing/index.js +4 -0
- package/dist/tools/testing/ui-sdk.d.ts +1 -0
- package/dist/tools/testing/ui-sdk.js +2 -0
- package/dist/utilities/cn/index.d.ts +12 -0
- package/dist/utilities/cn/index.js +47 -0
- package/dist/utilities/color/index.d.ts +2 -0
- package/dist/utilities/color/index.js +3 -0
- package/dist/utilities/color/ui-sdk.d.ts +1 -0
- package/dist/utilities/color/ui-sdk.js +2 -0
- package/dist/utilities/date/index.d.ts +2 -0
- package/dist/utilities/date/index.js +6 -0
- package/dist/utilities/date/ui-sdk.d.ts +1 -0
- package/dist/utilities/date/ui-sdk.js +2 -0
- package/dist/utilities/image/index.d.ts +2 -0
- package/dist/utilities/image/index.js +3 -0
- package/dist/utilities/image/ui-sdk.d.ts +1 -0
- package/dist/utilities/image/ui-sdk.js +2 -0
- package/dist/utilities/mobile/index.d.ts +2 -0
- package/dist/utilities/mobile/index.js +1 -0
- package/dist/utilities/mobile/ui-sdk.d.ts +2 -0
- package/dist/utilities/mobile/ui-sdk.js +1 -0
- package/dist/utilities/number/index.d.ts +2 -0
- package/dist/utilities/number/index.js +3 -0
- package/dist/utilities/number/ui-sdk.d.ts +1 -0
- package/dist/utilities/number/ui-sdk.js +2 -0
- package/dist/utilities/platform/index.d.ts +3 -0
- package/dist/utilities/platform/index.js +14 -0
- package/dist/utilities/platform/ui-sdk.d.ts +3 -0
- package/dist/utilities/platform/ui-sdk.js +3 -0
- package/dist/utilities/storage/index.d.ts +2 -0
- package/dist/utilities/storage/index.js +1 -0
- package/dist/utilities/storage/ui-sdk.d.ts +2 -0
- package/dist/utilities/storage/ui-sdk.js +1 -0
- package/dist/utilities/text/index.d.ts +3 -0
- package/dist/utilities/text/index.js +3 -0
- package/dist/utilities/text/ui-sdk.d.ts +3 -0
- package/dist/utilities/text/ui-sdk.js +3 -0
- package/package.json +192 -4
- package/skills/agent-ready-ui/SKILL.md +229 -0
- package/skills/blocks/SKILL.md +262 -0
- package/skills/compose-screens/SKILL.md +354 -0
- package/skills/note-editor/SKILL.md +493 -0
- package/skills/note-status/SKILL.md +295 -0
- package/skills/setup/SKILL.md +136 -0
- package/skills/theming/SKILL.md +216 -0
- package/src/blocks/notes/adapters.ts +77 -0
- package/src/blocks/notes/data.ts +508 -0
- package/src/blocks/notes/notes-block.tsx +244 -0
- package/src/blocks/notes/parts/home.tsx +219 -0
- package/src/blocks/notes/parts/no-access.tsx +84 -0
- package/src/blocks/notes/parts/note-screen.tsx +412 -0
- package/src/blocks/notes/parts/notes-sidebar.tsx +277 -0
- package/src/blocks/notes/parts/panels.tsx +393 -0
- package/src/blocks/notes/parts/place.ts +15 -0
- package/src/blocks/notes/parts/review-dialog.tsx +159 -0
- package/src/blocks/notes/parts/share.tsx +172 -0
- package/src/blocks/notes/texts.ts +135 -0
- package/src/blocks/shell/adapters.ts +69 -0
- package/src/blocks/shell/data.ts +281 -0
- package/src/blocks/shell/parts/compose.tsx +292 -0
- package/src/blocks/shell/parts/home.tsx +203 -0
- package/src/blocks/shell/parts/marks.tsx +144 -0
- package/src/blocks/shell/parts/rail.tsx +166 -0
- package/src/blocks/shell/parts/rooms-column.tsx +326 -0
- package/src/blocks/shell/shell-block.tsx +210 -0
- package/src/blocks/shell/texts.ts +80 -0
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* scroll-fade, shimmer and no-scrollbar utilities.
|
|
3
|
+
* Copied from `shadcn/tailwind.css` in shadcn 4.23.0, only reformatted.
|
|
4
|
+
* MIT License, Copyright (c) 2023 shadcn. The license text is in LICENSE-shadcn.md.
|
|
5
|
+
* Docs: https://ui.shadcn.com/docs/utils/scroll-fade and /shimmer.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@utility no-scrollbar {
|
|
9
|
+
-ms-overflow-style: none;
|
|
10
|
+
scrollbar-width: none;
|
|
11
|
+
|
|
12
|
+
&::-webkit-scrollbar {
|
|
13
|
+
display: none;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* scroll-fade */
|
|
18
|
+
@property --scroll-fade-t {
|
|
19
|
+
syntax: "<length-percentage>";
|
|
20
|
+
inherits: false;
|
|
21
|
+
initial-value: 0px;
|
|
22
|
+
}
|
|
23
|
+
@property --scroll-fade-b {
|
|
24
|
+
syntax: "<length-percentage>";
|
|
25
|
+
inherits: false;
|
|
26
|
+
initial-value: 0px;
|
|
27
|
+
}
|
|
28
|
+
@property --scroll-fade-s {
|
|
29
|
+
syntax: "<length-percentage>";
|
|
30
|
+
inherits: false;
|
|
31
|
+
initial-value: 0px;
|
|
32
|
+
}
|
|
33
|
+
@property --scroll-fade-e {
|
|
34
|
+
syntax: "<length-percentage>";
|
|
35
|
+
inherits: false;
|
|
36
|
+
initial-value: 0px;
|
|
37
|
+
}
|
|
38
|
+
@property --scroll-fade-mask {
|
|
39
|
+
syntax: "*";
|
|
40
|
+
inherits: false;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@theme inline {
|
|
44
|
+
@keyframes scroll-fade-reveal-t {
|
|
45
|
+
from {
|
|
46
|
+
--scroll-fade-t: 0px;
|
|
47
|
+
}
|
|
48
|
+
to {
|
|
49
|
+
--scroll-fade-t: var(
|
|
50
|
+
--_scroll-fade-size-t,
|
|
51
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
@keyframes scroll-fade-reveal-b {
|
|
56
|
+
from {
|
|
57
|
+
--scroll-fade-b: var(
|
|
58
|
+
--_scroll-fade-size-b,
|
|
59
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
to {
|
|
63
|
+
--scroll-fade-b: 0px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
@keyframes scroll-fade-reveal-s {
|
|
67
|
+
from {
|
|
68
|
+
--scroll-fade-s: 0px;
|
|
69
|
+
}
|
|
70
|
+
to {
|
|
71
|
+
--scroll-fade-s: var(
|
|
72
|
+
--_scroll-fade-size-s,
|
|
73
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
@keyframes scroll-fade-reveal-e {
|
|
78
|
+
from {
|
|
79
|
+
--scroll-fade-e: var(
|
|
80
|
+
--_scroll-fade-size-e,
|
|
81
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
to {
|
|
85
|
+
--scroll-fade-e: 0px;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@utility scroll-fade {
|
|
91
|
+
--_scroll-fade-size-t: var(
|
|
92
|
+
--scroll-fade-t-size,
|
|
93
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
94
|
+
);
|
|
95
|
+
--_scroll-fade-size-b: var(
|
|
96
|
+
--scroll-fade-b-size,
|
|
97
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
98
|
+
);
|
|
99
|
+
--scroll-fade-block: linear-gradient(
|
|
100
|
+
to bottom,
|
|
101
|
+
transparent 0,
|
|
102
|
+
#000 var(--scroll-fade-t, 0px),
|
|
103
|
+
#000 calc(100% - var(--scroll-fade-b, 0px)),
|
|
104
|
+
transparent 100%
|
|
105
|
+
);
|
|
106
|
+
-webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
|
|
107
|
+
mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
|
|
108
|
+
-webkit-mask-composite: source-in;
|
|
109
|
+
mask-composite: intersect;
|
|
110
|
+
-webkit-mask-repeat: no-repeat;
|
|
111
|
+
mask-repeat: no-repeat;
|
|
112
|
+
|
|
113
|
+
@supports (animation-timeline: scroll()) {
|
|
114
|
+
animation:
|
|
115
|
+
scroll-fade-reveal-t 1ms ease-in-out,
|
|
116
|
+
scroll-fade-reveal-b 1ms ease-in-out;
|
|
117
|
+
animation-timeline: scroll(self y), scroll(self y);
|
|
118
|
+
animation-range:
|
|
119
|
+
0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
|
|
120
|
+
calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
|
|
121
|
+
animation-fill-mode: both;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@supports not (animation-timeline: scroll()) {
|
|
125
|
+
--scroll-fade-t: var(--_scroll-fade-size-t);
|
|
126
|
+
--scroll-fade-b: var(--_scroll-fade-size-b);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@utility scroll-fade-y {
|
|
131
|
+
--_scroll-fade-size-t: var(
|
|
132
|
+
--scroll-fade-t-size,
|
|
133
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
134
|
+
);
|
|
135
|
+
--_scroll-fade-size-b: var(
|
|
136
|
+
--scroll-fade-b-size,
|
|
137
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
138
|
+
);
|
|
139
|
+
--scroll-fade-block: linear-gradient(
|
|
140
|
+
to bottom,
|
|
141
|
+
transparent 0,
|
|
142
|
+
#000 var(--scroll-fade-t, 0px),
|
|
143
|
+
#000 calc(100% - var(--scroll-fade-b, 0px)),
|
|
144
|
+
transparent 100%
|
|
145
|
+
);
|
|
146
|
+
-webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
|
|
147
|
+
mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
|
|
148
|
+
-webkit-mask-composite: source-in;
|
|
149
|
+
mask-composite: intersect;
|
|
150
|
+
-webkit-mask-repeat: no-repeat;
|
|
151
|
+
mask-repeat: no-repeat;
|
|
152
|
+
|
|
153
|
+
@supports (animation-timeline: scroll()) {
|
|
154
|
+
animation:
|
|
155
|
+
scroll-fade-reveal-t 1ms ease-in-out,
|
|
156
|
+
scroll-fade-reveal-b 1ms ease-in-out;
|
|
157
|
+
animation-timeline: scroll(self y), scroll(self y);
|
|
158
|
+
animation-range:
|
|
159
|
+
0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
|
|
160
|
+
calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
|
|
161
|
+
animation-fill-mode: both;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@supports not (animation-timeline: scroll()) {
|
|
165
|
+
--scroll-fade-t: var(--_scroll-fade-size-t);
|
|
166
|
+
--scroll-fade-b: var(--_scroll-fade-size-b);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@utility scroll-fade-x {
|
|
171
|
+
--_scroll-fade-size-s: var(
|
|
172
|
+
--scroll-fade-s-size,
|
|
173
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
174
|
+
);
|
|
175
|
+
--_scroll-fade-size-e: var(
|
|
176
|
+
--scroll-fade-e-size,
|
|
177
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
178
|
+
);
|
|
179
|
+
--scroll-fade-inline: linear-gradient(
|
|
180
|
+
to right,
|
|
181
|
+
transparent 0,
|
|
182
|
+
#000 var(--scroll-fade-s, 0px),
|
|
183
|
+
#000 calc(100% - var(--scroll-fade-e, 0px)),
|
|
184
|
+
transparent 100%
|
|
185
|
+
);
|
|
186
|
+
&:where([dir="rtl"], [dir="rtl"] *) {
|
|
187
|
+
--scroll-fade-inline: linear-gradient(
|
|
188
|
+
to left,
|
|
189
|
+
transparent 0,
|
|
190
|
+
#000 var(--scroll-fade-s, 0px),
|
|
191
|
+
#000 calc(100% - var(--scroll-fade-e, 0px)),
|
|
192
|
+
transparent 100%
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
-webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-inline));
|
|
196
|
+
mask-image: var(--scroll-fade-mask, var(--scroll-fade-inline));
|
|
197
|
+
-webkit-mask-composite: source-in;
|
|
198
|
+
mask-composite: intersect;
|
|
199
|
+
-webkit-mask-repeat: no-repeat;
|
|
200
|
+
mask-repeat: no-repeat;
|
|
201
|
+
|
|
202
|
+
@supports (animation-timeline: scroll()) {
|
|
203
|
+
animation:
|
|
204
|
+
scroll-fade-reveal-s 1ms ease-in-out,
|
|
205
|
+
scroll-fade-reveal-e 1ms ease-in-out;
|
|
206
|
+
animation-timeline: scroll(self inline), scroll(self inline);
|
|
207
|
+
animation-range:
|
|
208
|
+
0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
|
|
209
|
+
calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
|
|
210
|
+
animation-fill-mode: both;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@supports not (animation-timeline: scroll()) {
|
|
214
|
+
--scroll-fade-s: var(--_scroll-fade-size-s);
|
|
215
|
+
--scroll-fade-e: var(--_scroll-fade-size-e);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@utility scroll-fade-t {
|
|
220
|
+
--_scroll-fade-size-t: var(
|
|
221
|
+
--scroll-fade-t-size,
|
|
222
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
223
|
+
);
|
|
224
|
+
--scroll-fade-mask: linear-gradient(
|
|
225
|
+
to bottom,
|
|
226
|
+
transparent 0,
|
|
227
|
+
#000 var(--scroll-fade-t, 0px),
|
|
228
|
+
#000 100%
|
|
229
|
+
);
|
|
230
|
+
-webkit-mask-image: var(--scroll-fade-mask);
|
|
231
|
+
mask-image: var(--scroll-fade-mask);
|
|
232
|
+
-webkit-mask-composite: source-in;
|
|
233
|
+
mask-composite: intersect;
|
|
234
|
+
-webkit-mask-repeat: no-repeat;
|
|
235
|
+
mask-repeat: no-repeat;
|
|
236
|
+
|
|
237
|
+
@supports (animation-timeline: scroll()) {
|
|
238
|
+
animation: scroll-fade-reveal-t 1ms ease-in-out;
|
|
239
|
+
animation-timeline: scroll(self y);
|
|
240
|
+
animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
|
|
241
|
+
animation-fill-mode: both;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
@supports not (animation-timeline: scroll()) {
|
|
245
|
+
--scroll-fade-t: var(--_scroll-fade-size-t);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
@utility scroll-fade-b {
|
|
250
|
+
--_scroll-fade-size-b: var(
|
|
251
|
+
--scroll-fade-b-size,
|
|
252
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
253
|
+
);
|
|
254
|
+
--scroll-fade-mask: linear-gradient(
|
|
255
|
+
to bottom,
|
|
256
|
+
#000 0,
|
|
257
|
+
#000 calc(100% - var(--scroll-fade-b, 0px)),
|
|
258
|
+
transparent 100%
|
|
259
|
+
);
|
|
260
|
+
-webkit-mask-image: var(--scroll-fade-mask);
|
|
261
|
+
mask-image: var(--scroll-fade-mask);
|
|
262
|
+
-webkit-mask-composite: source-in;
|
|
263
|
+
mask-composite: intersect;
|
|
264
|
+
-webkit-mask-repeat: no-repeat;
|
|
265
|
+
mask-repeat: no-repeat;
|
|
266
|
+
|
|
267
|
+
@supports (animation-timeline: scroll()) {
|
|
268
|
+
animation: scroll-fade-reveal-b 1ms ease-in-out;
|
|
269
|
+
animation-timeline: scroll(self y);
|
|
270
|
+
animation-range: calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
|
|
271
|
+
animation-fill-mode: both;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@supports not (animation-timeline: scroll()) {
|
|
275
|
+
--scroll-fade-b: var(--_scroll-fade-size-b);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
@utility scroll-fade-l {
|
|
280
|
+
--_scroll-fade-size-s: var(
|
|
281
|
+
--scroll-fade-s-size,
|
|
282
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
283
|
+
);
|
|
284
|
+
--scroll-fade-mask: linear-gradient(
|
|
285
|
+
to right,
|
|
286
|
+
transparent 0,
|
|
287
|
+
#000 var(--scroll-fade-s, 0px),
|
|
288
|
+
#000 100%
|
|
289
|
+
);
|
|
290
|
+
-webkit-mask-image: var(--scroll-fade-mask);
|
|
291
|
+
mask-image: var(--scroll-fade-mask);
|
|
292
|
+
-webkit-mask-composite: source-in;
|
|
293
|
+
mask-composite: intersect;
|
|
294
|
+
-webkit-mask-repeat: no-repeat;
|
|
295
|
+
mask-repeat: no-repeat;
|
|
296
|
+
|
|
297
|
+
@supports (animation-timeline: scroll()) {
|
|
298
|
+
animation: scroll-fade-reveal-s 1ms ease-in-out;
|
|
299
|
+
animation-timeline: scroll(self x);
|
|
300
|
+
animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
|
|
301
|
+
animation-fill-mode: both;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
@supports not (animation-timeline: scroll()) {
|
|
305
|
+
--scroll-fade-s: var(--_scroll-fade-size-s);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
@utility scroll-fade-r {
|
|
310
|
+
--_scroll-fade-size-e: var(
|
|
311
|
+
--scroll-fade-e-size,
|
|
312
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
313
|
+
);
|
|
314
|
+
--scroll-fade-mask: linear-gradient(
|
|
315
|
+
to right,
|
|
316
|
+
#000 0,
|
|
317
|
+
#000 calc(100% - var(--scroll-fade-e, 0px)),
|
|
318
|
+
transparent 100%
|
|
319
|
+
);
|
|
320
|
+
-webkit-mask-image: var(--scroll-fade-mask);
|
|
321
|
+
mask-image: var(--scroll-fade-mask);
|
|
322
|
+
-webkit-mask-composite: source-in;
|
|
323
|
+
mask-composite: intersect;
|
|
324
|
+
-webkit-mask-repeat: no-repeat;
|
|
325
|
+
mask-repeat: no-repeat;
|
|
326
|
+
|
|
327
|
+
@supports (animation-timeline: scroll()) {
|
|
328
|
+
animation: scroll-fade-reveal-e 1ms ease-in-out;
|
|
329
|
+
animation-timeline: scroll(self x);
|
|
330
|
+
animation-range: calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
|
|
331
|
+
animation-fill-mode: both;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
@supports not (animation-timeline: scroll()) {
|
|
335
|
+
--scroll-fade-e: var(--_scroll-fade-size-e);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
@utility scroll-fade-s {
|
|
340
|
+
--_scroll-fade-size-s: var(
|
|
341
|
+
--scroll-fade-s-size,
|
|
342
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
343
|
+
);
|
|
344
|
+
--scroll-fade-mask: linear-gradient(
|
|
345
|
+
to right,
|
|
346
|
+
transparent 0,
|
|
347
|
+
#000 var(--scroll-fade-s, 0px),
|
|
348
|
+
#000 100%
|
|
349
|
+
);
|
|
350
|
+
&:where([dir="rtl"], [dir="rtl"] *) {
|
|
351
|
+
--scroll-fade-mask: linear-gradient(
|
|
352
|
+
to left,
|
|
353
|
+
transparent 0,
|
|
354
|
+
#000 var(--scroll-fade-s, 0px),
|
|
355
|
+
#000 100%
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
-webkit-mask-image: var(--scroll-fade-mask);
|
|
359
|
+
mask-image: var(--scroll-fade-mask);
|
|
360
|
+
-webkit-mask-composite: source-in;
|
|
361
|
+
mask-composite: intersect;
|
|
362
|
+
-webkit-mask-repeat: no-repeat;
|
|
363
|
+
mask-repeat: no-repeat;
|
|
364
|
+
|
|
365
|
+
@supports (animation-timeline: scroll()) {
|
|
366
|
+
animation: scroll-fade-reveal-s 1ms ease-in-out;
|
|
367
|
+
animation-timeline: scroll(self inline);
|
|
368
|
+
animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
|
|
369
|
+
animation-fill-mode: both;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
@supports not (animation-timeline: scroll()) {
|
|
373
|
+
--scroll-fade-s: var(--_scroll-fade-size-s);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
@utility scroll-fade-e {
|
|
378
|
+
--_scroll-fade-size-e: var(
|
|
379
|
+
--scroll-fade-e-size,
|
|
380
|
+
var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
|
|
381
|
+
);
|
|
382
|
+
--scroll-fade-mask: linear-gradient(
|
|
383
|
+
to right,
|
|
384
|
+
#000 0,
|
|
385
|
+
#000 calc(100% - var(--scroll-fade-e, 0px)),
|
|
386
|
+
transparent 100%
|
|
387
|
+
);
|
|
388
|
+
&:where([dir="rtl"], [dir="rtl"] *) {
|
|
389
|
+
--scroll-fade-mask: linear-gradient(
|
|
390
|
+
to left,
|
|
391
|
+
#000 0,
|
|
392
|
+
#000 calc(100% - var(--scroll-fade-e, 0px)),
|
|
393
|
+
transparent 100%
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
-webkit-mask-image: var(--scroll-fade-mask);
|
|
397
|
+
mask-image: var(--scroll-fade-mask);
|
|
398
|
+
-webkit-mask-composite: source-in;
|
|
399
|
+
mask-composite: intersect;
|
|
400
|
+
-webkit-mask-repeat: no-repeat;
|
|
401
|
+
mask-repeat: no-repeat;
|
|
402
|
+
|
|
403
|
+
@supports (animation-timeline: scroll()) {
|
|
404
|
+
animation: scroll-fade-reveal-e 1ms ease-in-out;
|
|
405
|
+
animation-timeline: scroll(self inline);
|
|
406
|
+
animation-range: calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
|
|
407
|
+
animation-fill-mode: both;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
@supports not (animation-timeline: scroll()) {
|
|
411
|
+
--scroll-fade-e: var(--_scroll-fade-size-e);
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
@utility scroll-fade-* {
|
|
416
|
+
--scroll-fade-size: calc(var(--spacing) * --value(integer));
|
|
417
|
+
--scroll-fade-size: --value([length], [percentage]);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
@utility scroll-fade-t-* {
|
|
421
|
+
--scroll-fade-t-size: calc(var(--spacing) * --value(integer));
|
|
422
|
+
--scroll-fade-t-size: --value([length], [percentage]);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
@utility scroll-fade-b-* {
|
|
426
|
+
--scroll-fade-b-size: calc(var(--spacing) * --value(integer));
|
|
427
|
+
--scroll-fade-b-size: --value([length], [percentage]);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
@utility scroll-fade-s-* {
|
|
431
|
+
--scroll-fade-s-size: calc(var(--spacing) * --value(integer));
|
|
432
|
+
--scroll-fade-s-size: --value([length], [percentage]);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
@utility scroll-fade-e-* {
|
|
436
|
+
--scroll-fade-e-size: calc(var(--spacing) * --value(integer));
|
|
437
|
+
--scroll-fade-e-size: --value([length], [percentage]);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
@utility scroll-fade-none {
|
|
441
|
+
--scroll-fade-mask: none;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* shimmer */
|
|
445
|
+
@property --shimmer-angle {
|
|
446
|
+
syntax: "<angle>";
|
|
447
|
+
inherits: true;
|
|
448
|
+
initial-value: 20deg;
|
|
449
|
+
}
|
|
450
|
+
@property --shimmer-image {
|
|
451
|
+
syntax: "*";
|
|
452
|
+
inherits: false;
|
|
453
|
+
}
|
|
454
|
+
@property --shimmer-text-fill {
|
|
455
|
+
syntax: "*";
|
|
456
|
+
inherits: false;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
@theme inline {
|
|
460
|
+
@keyframes tw-shimmer {
|
|
461
|
+
from {
|
|
462
|
+
background-position: 100% 0;
|
|
463
|
+
}
|
|
464
|
+
to {
|
|
465
|
+
background-position: 0 0;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
@utility shimmer {
|
|
471
|
+
--_spread: var(--shimmer-spread, calc(3ch + 40px));
|
|
472
|
+
--_base: currentColor;
|
|
473
|
+
--_highlight: var(--shimmer-color, oklch(from currentColor l c h / calc(alpha* 0.2)));
|
|
474
|
+
|
|
475
|
+
background-image: var(
|
|
476
|
+
--shimmer-image,
|
|
477
|
+
linear-gradient(
|
|
478
|
+
calc(90deg + var(--shimmer-angle)),
|
|
479
|
+
var(--_base) calc(50% - var(--_spread)),
|
|
480
|
+
color-mix(in oklch, var(--_highlight), var(--_base) 50%) calc(50% - var(--_spread) * 0.5),
|
|
481
|
+
var(--_highlight) 50%,
|
|
482
|
+
color-mix(in oklch, var(--_highlight), var(--_base) 50%) calc(50% + var(--_spread) * 0.5),
|
|
483
|
+
var(--_base) calc(50% + var(--_spread))
|
|
484
|
+
)
|
|
485
|
+
);
|
|
486
|
+
background-repeat: no-repeat;
|
|
487
|
+
background-size: calc(200% + var(--_spread) * 2) 100%;
|
|
488
|
+
background-position: 0 0;
|
|
489
|
+
background-clip: text;
|
|
490
|
+
-webkit-background-clip: text;
|
|
491
|
+
-webkit-text-fill-color: var(--shimmer-text-fill, transparent);
|
|
492
|
+
animation: tw-shimmer var(--shimmer-duration, 2s) linear infinite;
|
|
493
|
+
|
|
494
|
+
@variant dark {
|
|
495
|
+
--_highlight: var(
|
|
496
|
+
--shimmer-color,
|
|
497
|
+
oklch(from currentColor max(0.8, calc(l + 0.4)) c h / calc(alpha + 0.4))
|
|
498
|
+
);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
&:where([dir="rtl"], [dir="rtl"] *) {
|
|
502
|
+
animation-direction: reverse;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
@media (prefers-reduced-motion: reduce) {
|
|
506
|
+
animation: none;
|
|
507
|
+
background-image: none;
|
|
508
|
+
-webkit-text-fill-color: currentColor;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
@utility shimmer-once {
|
|
513
|
+
animation-iteration-count: 1;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
@utility shimmer-reverse {
|
|
517
|
+
animation-direction: reverse;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
@utility shimmer-none {
|
|
521
|
+
--shimmer-image: none;
|
|
522
|
+
--shimmer-text-fill: currentColor;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
@utility shimmer-color-* {
|
|
526
|
+
--shimmer-color: --value(--color, [color]);
|
|
527
|
+
--shimmer-color: color-mix(
|
|
528
|
+
in oklch,
|
|
529
|
+
--value(--color, [color]) calc(--modifier(integer) * 1%),
|
|
530
|
+
transparent
|
|
531
|
+
);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
@utility shimmer-duration-* {
|
|
535
|
+
--shimmer-duration: calc(--value(integer) * 1ms);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
@utility shimmer-spread-* {
|
|
539
|
+
--shimmer-spread: calc(var(--spacing) * --value(integer));
|
|
540
|
+
--shimmer-spread: --value([length], [percentage]);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
@utility shimmer-angle-* {
|
|
544
|
+
--shimmer-angle: calc(--value(integer) * 1deg);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/* Kept for backwards compatibility. Unlayered, so it still wins over other
|
|
548
|
+
utilities on a plain .shimmer element. Variants are handled in the utility. */
|
|
549
|
+
@media (prefers-reduced-motion: reduce) {
|
|
550
|
+
.shimmer {
|
|
551
|
+
animation: none;
|
|
552
|
+
background-image: none;
|
|
553
|
+
-webkit-text-fill-color: currentColor;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@ui-sdk/core/observe";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { index_d_exports } from "../../agents/index.js";
|
|
2
|
+
/** What `checkAgent` reads: the bridge from `createAgent`, or anything with its `snapshot`. */
|
|
3
|
+
type AgentSnapshot = {
|
|
4
|
+
snapshot: () => index_d_exports.AgentComponent[];
|
|
5
|
+
};
|
|
6
|
+
type CheckAgentOptions = {
|
|
7
|
+
/** Whether two components may not share a name. True by default. */
|
|
8
|
+
unique?: boolean;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Checks that an agent can find and use every component on the page, and
|
|
12
|
+
* returns them as `snapshot()` lists them, without the ones that left it.
|
|
13
|
+
* It throws, with every problem it found, when:
|
|
14
|
+
*
|
|
15
|
+
* - a component has no name, so no step can ask for it;
|
|
16
|
+
* - two components share a name, so `act()` refuses it as ambiguous. Pass
|
|
17
|
+
* `unique: false` for a page that repeats a control on purpose, like a
|
|
18
|
+
* gallery of variants;
|
|
19
|
+
* - a button takes no action while it isn't disabled, which is a `Button`
|
|
20
|
+
* rendered as a link: an agent can't press it. Use `Link`.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* const agent = createAgent()
|
|
24
|
+
* render(<ProjectSettings />)
|
|
25
|
+
* const components = checkAgent(agent)
|
|
26
|
+
*/
|
|
27
|
+
declare function checkAgent(agent: AgentSnapshot, { unique }?: CheckAgentOptions): index_d_exports.AgentComponent[];
|
|
28
|
+
export { type AgentSnapshot, type CheckAgentOptions, checkAgent };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// src/tools/testing/check-agent.ts
|
|
2
|
+
/** Labels compare as the bridge matches them: without case or accents. */
|
|
3
|
+
const plain = (label) => label.normalize("NFD").replace(/\p{Diacritic}/gu, "").toLowerCase().trim();
|
|
4
|
+
/**
|
|
5
|
+
* Checks that an agent can find and use every component on the page, and
|
|
6
|
+
* returns them as `snapshot()` lists them, without the ones that left it.
|
|
7
|
+
* It throws, with every problem it found, when:
|
|
8
|
+
*
|
|
9
|
+
* - a component has no name, so no step can ask for it;
|
|
10
|
+
* - two components share a name, so `act()` refuses it as ambiguous. Pass
|
|
11
|
+
* `unique: false` for a page that repeats a control on purpose, like a
|
|
12
|
+
* gallery of variants;
|
|
13
|
+
* - a button takes no action while it isn't disabled, which is a `Button`
|
|
14
|
+
* rendered as a link: an agent can't press it. Use `Link`.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* const agent = createAgent()
|
|
18
|
+
* render(<ProjectSettings />)
|
|
19
|
+
* const components = checkAgent(agent)
|
|
20
|
+
*/
|
|
21
|
+
function checkAgent(agent, { unique = true } = {}) {
|
|
22
|
+
const components = agent.snapshot().filter((entry) => !entry.offPage && entry.component !== "more");
|
|
23
|
+
const problems = [];
|
|
24
|
+
const named = /* @__PURE__ */ new Map();
|
|
25
|
+
for (const entry of components) {
|
|
26
|
+
if (!entry.label) {
|
|
27
|
+
problems.push(`${entry.component} ${entry.ref} has no name: label it, or hide it with aria-hidden or data-agent-hidden`);
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
const key = plain(entry.label);
|
|
31
|
+
named.set(key, [...named.get(key) ?? [], entry]);
|
|
32
|
+
if (entry.component === "button" && entry.actions.length === 0 && entry.disabled !== true) problems.push(`button ${entry.ref} "${entry.label}" takes no action: a Button rendered as a link can't be pressed by an agent, use Link`);
|
|
33
|
+
}
|
|
34
|
+
for (const entries of unique ? named.values() : []) {
|
|
35
|
+
if (entries.length < 2) continue;
|
|
36
|
+
const list = entries.map((entry) => `${entry.component} ${entry.ref}`).join(", ");
|
|
37
|
+
problems.push(`"${entries[0].label}" names ${entries.length} components: ${list}`);
|
|
38
|
+
}
|
|
39
|
+
if (problems.length > 0) throw new Error(`An agent can't use this page:\n${problems.join("\n")}`);
|
|
40
|
+
return components;
|
|
41
|
+
}
|
|
42
|
+
export { checkAgent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@ui-sdk/core/testing";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ClassValue } from "clsx";
|
|
2
|
+
import { VariantProps, cva } from "class-variance-authority";
|
|
3
|
+
/** Joins class names and lets a later Tailwind class override an earlier one. */
|
|
4
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
5
|
+
/** A `className` as ui-sdk parts take it: class names, or a function of the part's state. */
|
|
6
|
+
export type StateClassName<State> = string | ((state: State) => string | undefined) | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Puts a component's own classes before the caller's `className`, which may be
|
|
9
|
+
* a function of the part's state. The caller's classes win.
|
|
10
|
+
*/
|
|
11
|
+
export declare function cnState<State>(base: ClassValue, className: StateClassName<State>): (state: State) => string;
|
|
12
|
+
export { type ClassValue, type VariantProps, cva };
|