@supersoniks/concorde 5.1.1 → 5.1.3-immutable.1
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/.agents/skills/concorde-docs/SKILL.md +153 -0
- package/.agents/skills/{concorde-component-docs/template.md → concorde-docs/templates/component.md} +6 -2
- package/.agents/skills/concorde-docs/templates/decorator.md +43 -0
- package/.agents/skills/concorde-docs/templates/guide.md +25 -0
- package/.claude/skills +1 -0
- package/.github/workflows/ci.yml +21 -0
- package/.github-export-ignore +30 -0
- package/CONTRIBUTING.md +59 -0
- package/DEV.md +54 -0
- package/LICENSE +21 -0
- package/OPEN_SOURCE_CHECKPOINT.md +133 -0
- package/README.md +4 -4
- package/ai/README.md +29 -41
- package/ai/skills/concorde/SKILL.md +54 -324
- package/ai/skills/concorde/rules/composition.md +32 -0
- package/ai/skills/concorde/rules/data.md +47 -0
- package/ai/skills/concorde/rules/http.md +25 -0
- package/ai/skills/concorde/rules/lists-forms.md +35 -0
- package/ai/skills/concorde/rules/styling.md +46 -0
- package/ai/skills/concorde/rules/troubleshooting.md +45 -0
- package/build-infos.json +1 -1
- package/concorde-core.bundle.js +177 -177
- package/concorde-core.es.js +4993 -4833
- package/custom-elements-manifest.public.config.mjs +8 -0
- package/{.tmp-cem/custom-elements.json → custom-elements.json} +11758 -8904
- package/dist/concorde-core.bundle.js +177 -177
- package/dist/concorde-core.es.js +4993 -4833
- package/dist/docs-mock-api-sw.js +58 -223
- package/dist/docs-mock-api-sw.js.map +4 -4
- package/dist/img/concorde/plane_01.jpg +0 -0
- package/dist/img/concorde/plane_02.jpg +0 -0
- package/dist/img/concorde/plane_03.jpg +0 -0
- package/dist/img/concorde/plane_04.jpg +0 -0
- package/dist/img/concorde/plane_05.jpg +0 -0
- package/dist/img/concorde/plane_06.jpg +0 -0
- package/dist/img/concorde/plane_07.jpg +0 -0
- package/dist/img/concorde/plane_08.jpg +0 -0
- package/dist/img/concorde/plane_09.jpg +0 -0
- package/dist/img/concorde/plane_10.jpg +0 -0
- package/dist/img/concorde/plane_11.jpg +0 -0
- package/dist/img/concorde/plane_12.jpg +0 -0
- package/dist/img/concorde/plane_13.jpg +0 -0
- package/dist/img/og-concorde.jpg +0 -0
- package/dist/robots.txt +11 -10
- package/docs/assets/index-D_alEsng.js +12122 -0
- package/docs/crawl/core/components/functional/date/date.html +190 -0
- package/docs/crawl/core/components/functional/fetch/fetch.html +109 -0
- package/docs/crawl/core/components/functional/if/if.html +27 -0
- package/docs/crawl/core/components/functional/jsonata/jsonata.html +79 -0
- package/docs/crawl/core/components/functional/list/list.html +70 -0
- package/docs/crawl/core/components/functional/mix/mix.html +45 -0
- package/docs/crawl/core/components/functional/queue/queue.html +96 -0
- package/docs/crawl/core/components/functional/router/router.html +106 -0
- package/docs/crawl/core/components/functional/sdui/sdui-extension-points.html +126 -0
- package/docs/crawl/core/components/functional/sdui/sdui.html +368 -0
- package/docs/crawl/core/components/functional/states/states.html +66 -0
- package/docs/crawl/core/components/functional/submit/submit.html +160 -0
- package/docs/crawl/core/components/functional/subscriber/subscriber.html +67 -0
- package/docs/crawl/core/components/functional/value/value.html +51 -0
- package/docs/crawl/core/components/ui/alert/alert.html +211 -0
- package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +131 -0
- package/docs/crawl/core/components/ui/badge/badge.html +197 -0
- package/docs/crawl/core/components/ui/button/button.html +150 -0
- package/docs/crawl/core/components/ui/captcha/captcha.html +112 -0
- package/docs/crawl/core/components/ui/card/card.html +253 -0
- package/docs/crawl/core/components/ui/divider/divider.html +144 -0
- package/docs/crawl/core/components/ui/form/checkbox/checkbox.html +73 -0
- package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +266 -0
- package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +122 -0
- package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +121 -0
- package/docs/crawl/core/components/ui/form/input/input.html +109 -0
- package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +38 -0
- package/docs/crawl/core/components/ui/form/radio/radio.html +56 -0
- package/docs/crawl/core/components/ui/form/select/select.html +73 -0
- package/docs/crawl/core/components/ui/form/switch/switch.html +56 -0
- package/docs/crawl/core/components/ui/form/textarea/textarea.html +59 -0
- package/docs/crawl/core/components/ui/group/group.html +104 -0
- package/docs/crawl/core/components/ui/icon/icon.html +222 -0
- package/docs/crawl/core/components/ui/image/image.html +298 -0
- package/docs/crawl/core/components/ui/link/link.html +100 -0
- package/docs/crawl/core/components/ui/loader/loader.html +124 -0
- package/docs/crawl/core/components/ui/menu/menu.html +394 -0
- package/docs/crawl/core/components/ui/modal/modal.html +342 -0
- package/docs/crawl/core/components/ui/pop/pop.html +296 -0
- package/docs/crawl/core/components/ui/progress/progress.html +131 -0
- package/docs/crawl/core/components/ui/table/table.html +545 -0
- package/docs/crawl/core/components/ui/theme/theme.html +131 -0
- package/docs/crawl/core/components/ui/toast/toast.html +233 -0
- package/docs/crawl/core/components/ui/tooltip/tooltip.html +140 -0
- package/docs/crawl/docs/_core-concept/dataFlow.html +177 -0
- package/docs/crawl/docs/_core-concept/overview.html +66 -0
- package/docs/crawl/docs/_core-concept/subscriber.html +75 -0
- package/docs/crawl/docs/_decorators/ancestor-attribute.html +117 -0
- package/docs/crawl/docs/_decorators/auto-subscribe.html +202 -0
- package/docs/crawl/docs/_decorators/bind.html +141 -0
- package/docs/crawl/docs/_decorators/get.html +149 -0
- package/docs/crawl/docs/_decorators/handle.html +165 -0
- package/docs/crawl/docs/_decorators/on-assign.html +355 -0
- package/docs/crawl/docs/_decorators/patch.html +78 -0
- package/docs/crawl/docs/_decorators/post.html +139 -0
- package/docs/crawl/docs/_decorators/publish.html +61 -0
- package/docs/crawl/docs/_decorators/put.html +78 -0
- package/docs/crawl/docs/_decorators/subscribe.html +109 -0
- package/docs/crawl/docs/_decorators/wait-for-ancestors.html +137 -0
- package/docs/crawl/docs/_directives/sub.html +93 -0
- package/docs/crawl/docs/_getting-started/ai-agents.html +173 -0
- package/docs/crawl/docs/_getting-started/concorde-manual-install.html +100 -0
- package/docs/crawl/docs/_getting-started/concorde-outside.html +58 -0
- package/docs/crawl/docs/_getting-started/create-a-component.html +111 -0
- package/docs/crawl/docs/_getting-started/my-first-component.html +189 -0
- package/docs/crawl/docs/_getting-started/my-first-subscriber.html +110 -0
- package/docs/crawl/docs/_getting-started/pubsub.html +62 -0
- package/docs/crawl/docs/_getting-started/start.html +76 -0
- package/docs/crawl/docs/_getting-started/theming.html +333 -0
- package/docs/crawl/docs/_misc/api-configuration.html +149 -0
- package/docs/crawl/docs/_misc/dataProviderKey.html +135 -0
- package/docs/crawl/docs/_misc/docs-mock-api.html +158 -0
- package/docs/crawl/docs/_misc/dynamic-path.html +180 -0
- package/docs/crawl/docs/_misc/endpoint.html +50 -0
- package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +138 -0
- package/docs/crawl/docs/_misc/html-integration.html +48 -0
- package/docs/crawl/hubs/decorators.html +547 -0
- package/docs/crawl/hubs/form-components.html +381 -0
- package/docs/crawl/hubs/remote-data.html +452 -0
- package/docs/crawl/index.html +103 -0
- package/docs/index.html +1 -1
- package/docs/llms-full.txt +7174 -0
- package/docs/llms.txt +98 -0
- package/docs/sitemap.xml +243 -0
- package/docs/src/core/components/functional/date/date.md +290 -0
- package/docs/src/core/components/functional/fetch/fetch.md +125 -0
- package/docs/src/core/components/functional/if/if.md +9 -0
- package/docs/src/core/components/functional/jsonata/jsonata.md +56 -0
- package/docs/src/core/components/functional/list/list.md +65 -0
- package/docs/src/core/components/functional/mix/mix.md +41 -0
- package/docs/src/core/components/functional/queue/queue.md +72 -0
- package/docs/src/core/components/functional/router/router.md +94 -0
- package/docs/src/core/components/functional/sdui/component-catalog.gaps.json +511 -0
- package/docs/src/core/components/functional/sdui/component-catalog.json +3103 -0
- package/docs/src/core/components/functional/sdui/default-library.json +108 -0
- package/docs/src/core/components/functional/sdui/example.json +99 -0
- package/docs/src/core/components/functional/sdui/sdui-extension-points.md +94 -0
- package/docs/src/core/components/functional/sdui/sdui.md +478 -0
- package/docs/src/core/components/functional/states/states.md +87 -0
- package/docs/src/core/components/functional/submit/submit.md +114 -0
- package/docs/src/core/components/functional/subscriber/subscriber.md +91 -0
- package/docs/src/core/components/functional/value/value.md +35 -0
- package/docs/src/core/components/ui/alert/alert.md +196 -0
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +85 -0
- package/docs/src/core/components/ui/badge/badge.md +188 -0
- package/docs/src/core/components/ui/button/button.md +183 -0
- package/docs/src/core/components/ui/captcha/captcha.md +71 -0
- package/docs/src/core/components/ui/card/card.md +215 -0
- package/docs/src/core/components/ui/divider/divider.md +129 -0
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +77 -0
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +205 -0
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +100 -0
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +119 -0
- package/docs/src/core/components/ui/form/input/input.md +142 -0
- package/docs/src/core/components/ui/form/radio/radio.md +57 -0
- package/docs/src/core/components/ui/form/select/select.md +71 -0
- package/docs/src/core/components/ui/form/switch/switch.md +57 -0
- package/docs/src/core/components/ui/form/textarea/textarea.md +65 -0
- package/docs/src/core/components/ui/group/group.md +75 -0
- package/docs/src/core/components/ui/icon/icon.md +214 -0
- package/docs/src/core/components/ui/icon/icons.json +1 -0
- package/docs/src/core/components/ui/image/image.md +233 -0
- package/docs/src/core/components/ui/link/link.md +81 -0
- package/docs/src/core/components/ui/loader/loader.md +112 -0
- package/docs/src/core/components/ui/menu/menu.md +370 -0
- package/docs/src/core/components/ui/modal/modal.md +235 -0
- package/docs/src/core/components/ui/pop/pop.md +294 -0
- package/docs/src/core/components/ui/progress/progress.md +109 -0
- package/docs/src/core/components/ui/table/table.md +431 -0
- package/docs/src/core/components/ui/theme/theme.md +122 -0
- package/docs/src/core/components/ui/toast/toast.md +216 -0
- package/docs/src/core/components/ui/tooltip/tooltip.md +124 -0
- package/{src → docs/src}/docs/_core-concept/subscriber.md +0 -0
- package/{src → docs/src}/docs/_getting-started/my-first-subscriber.md +0 -0
- package/{src → docs/src}/docs/_getting-started/pubsub.md +0 -0
- package/docs/src/docs/_getting-started/theming.md +253 -0
- package/docs/src/docs/search/docs-search.json +12242 -0
- package/docs/src/tag-list.json +1 -0
- package/docs/src/tsconfig-model.json +23 -0
- package/docs/src/tsconfig.declarations.json +22 -0
- package/docs/src/tsconfig.emit.json +23 -0
- package/docs/src/tsconfig.json +1332 -0
- package/gitlab/job_github_mirror.sh +39 -0
- package/index.html +157 -5
- package/package.json +22 -4
- package/public/docs-mock-api-sw.js +58 -223
- package/public/docs-mock-api-sw.js.map +4 -4
- package/public/img/concorde/plane_01.jpg +0 -0
- package/public/img/concorde/plane_02.jpg +0 -0
- package/public/img/concorde/plane_03.jpg +0 -0
- package/public/img/concorde/plane_04.jpg +0 -0
- package/public/img/concorde/plane_05.jpg +0 -0
- package/public/img/concorde/plane_06.jpg +0 -0
- package/public/img/concorde/plane_07.jpg +0 -0
- package/public/img/concorde/plane_08.jpg +0 -0
- package/public/img/concorde/plane_09.jpg +0 -0
- package/public/img/concorde/plane_10.jpg +0 -0
- package/public/img/concorde/plane_11.jpg +0 -0
- package/public/img/concorde/plane_12.jpg +0 -0
- package/public/img/concorde/plane_13.jpg +0 -0
- package/public/img/og-concorde.jpg +0 -0
- package/public/robots.txt +11 -10
- package/scripts/ai-init.mjs +104 -379
- package/scripts/ai-init.test.mjs +81 -239
- package/scripts/docs-markdown-vite-plugin.ts +43 -0
- package/scripts/docs-public-url.mjs +56 -0
- package/scripts/docs.htaccess +82 -0
- package/scripts/generate-cem.mjs +244 -0
- package/scripts/generate-cem.test.mjs +122 -0
- package/scripts/generate-crawl-docs.mjs +233 -118
- package/scripts/generate-crawl-docs.test.mjs +124 -0
- package/scripts/generate-sdui-catalog.mjs +11 -10
- package/scripts/github-export.mjs +150 -0
- package/scripts/post-build-docs.js +37 -50
- package/scripts/post-build.mjs +0 -0
- package/scripts/pre-publish.mjs +2 -1
- package/scripts/site-pages.mjs +212 -0
- package/scripts/site-pages.test.mjs +116 -0
- package/site-pages/about.md +22 -0
- package/site-pages/privacy.md +32 -0
- package/src/core/components/functional/date/date.md +91 -231
- package/src/core/components/functional/example/example.ts +3 -1
- package/src/core/components/functional/fetch/fetch.md +66 -83
- package/src/core/components/functional/if/if.md +28 -3
- package/src/core/components/functional/if/if.ts +0 -0
- package/src/core/components/functional/jsonata/jsonata.md +42 -37
- package/src/core/components/functional/list/list.demo.ts +0 -0
- package/src/core/components/functional/list/list.md +103 -43
- package/src/core/components/functional/list/list.ts +17 -4
- package/src/core/components/functional/mix/mix.md +31 -26
- package/src/core/components/functional/queue/queue.demo.ts +10 -7
- package/src/core/components/functional/queue/queue.md +40 -61
- package/src/core/components/functional/router/router.demo.ts +16 -16
- package/src/core/components/functional/router/router.md +64 -65
- package/src/core/components/functional/router/router.ts +0 -0
- package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +0 -0
- package/src/core/components/functional/sdui/component-catalog.gaps.json +1 -1
- package/src/core/components/functional/sdui/component-catalog.json +2 -2
- package/src/core/components/functional/sdui/example.json +19 -86
- package/src/core/components/functional/sdui/sdui-extension-points.md +1 -1
- package/src/core/components/functional/sdui/sdui-immutable.spec.ts +74 -0
- package/src/core/components/functional/sdui/sdui.md +187 -358
- package/src/core/components/functional/sdui/sdui.ts +33 -8
- package/src/core/components/functional/sdui/types.ts +0 -0
- package/src/core/components/functional/states/states.demo.ts +21 -22
- package/src/core/components/functional/states/states.md +86 -61
- package/src/core/components/functional/states/states.ts +1 -1
- package/src/core/components/functional/submit/submit.md +64 -72
- package/src/core/components/functional/submit/submit.spec.ts +60 -0
- package/src/core/components/functional/submit/submit.ts +6 -3
- package/src/core/components/functional/subscriber/subscriber.ts +0 -0
- package/src/core/components/functional/translation/translation.md +38 -0
- package/src/core/components/functional/value/value.md +34 -22
- package/src/core/components/functional/value/value.ts +0 -0
- package/src/core/components/ui/_css/size.ts +0 -0
- package/src/core/components/ui/alert/alert.md +48 -58
- package/src/core/components/ui/badge/badge.md +27 -34
- package/src/core/components/ui/button/button.md +139 -106
- package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
- package/src/core/components/ui/captcha/captcha.md +17 -32
- package/src/core/components/ui/card/card.md +6 -6
- package/src/core/components/ui/divider/divider.md +8 -11
- package/src/core/components/ui/form/checkbox/checkbox.md +90 -42
- package/src/core/components/ui/form/fieldset/fieldset.md +31 -75
- package/src/core/components/ui/form/form-actions/form-actions.md +14 -16
- package/src/core/components/ui/form/form-layout/form-layout.md +19 -29
- package/src/core/components/ui/form/input/input.md +108 -90
- package/src/core/components/ui/form/input/input.ts +8 -2
- package/src/core/components/ui/form/radio/radio.md +65 -30
- package/src/core/components/ui/form/select/select.md +60 -45
- package/src/core/components/ui/form/switch/switch.md +57 -34
- package/src/core/components/ui/form/textarea/textarea.md +55 -38
- package/src/core/components/ui/group/group.md +35 -33
- package/src/core/components/ui/icon/icon.md +4 -4
- package/src/core/components/ui/image/image.md +41 -107
- package/src/core/components/ui/link/link.md +6 -6
- package/src/core/components/ui/loader/loader.md +30 -55
- package/src/core/components/ui/menu/menu.md +27 -27
- package/src/core/components/ui/modal/modal.md +72 -96
- package/src/core/components/ui/pop/pop.md +80 -158
- package/src/core/components/ui/progress/progress.md +2 -2
- package/src/core/components/ui/table/table.md +91 -255
- package/src/core/components/ui/theme/theme.md +11 -36
- package/src/core/components/ui/toast/toast.md +48 -117
- package/src/core/components/ui/tooltip/tooltip.md +27 -62
- package/src/core/decorators/subscriber/bind.ts +9 -14
- package/src/core/decorators/subscriber/subscribe.ts +15 -9
- package/src/core/decorators/subscriber/subscribe.type-test.ts +14 -5
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/utils/DataBindObserver.ts +0 -0
- package/src/core/utils/LocationHandler.spec.ts +80 -0
- package/src/core/utils/LocationHandler.ts +5 -9
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/PublisherProxy.ts +166 -125
- package/src/core/utils/deepReadonly.spec.ts +66 -0
- package/src/core/utils/deepReadonly.ts +71 -0
- package/src/core/utils/immutableValue.spec.ts +54 -0
- package/src/core/utils/immutableValue.ts +102 -0
- package/src/core/utils/nestedDotForm.spec.ts +88 -0
- package/src/core/utils/publisherImmutable.spec.ts +76 -0
- package/src/core/utils/route.ts +0 -0
- package/src/core/utils/strictGet.spec.ts +61 -0
- package/src/core/utils/strictGet.ts +102 -0
- package/src/css.d.ts +19 -0
- package/src/docs/components/docs-demo-sources.ts +55 -140
- package/src/docs/components/docs-lit-demo.ts +1 -3
- package/src/docs/components/docs-source-link.ts +0 -82
- package/src/docs/decorators/ancestor-attribute.md +59 -0
- package/src/docs/decorators/auto-subscribe.md +40 -0
- package/src/docs/decorators/bind.md +76 -0
- package/src/docs/decorators/get.md +160 -0
- package/src/docs/decorators/handle.md +119 -0
- package/src/docs/decorators/on-assign.md +63 -0
- package/src/docs/decorators/patch.md +44 -0
- package/src/docs/decorators/post.md +134 -0
- package/src/docs/decorators/publish.md +56 -0
- package/src/docs/decorators/put.md +51 -0
- package/src/docs/decorators/subscribe.md +87 -0
- package/src/docs/decorators/wait-for-ancestors.md +76 -0
- package/src/docs/directives/sub.md +75 -0
- package/src/docs/directives/t.md +73 -0
- package/src/docs/docs-location.spec.ts +56 -0
- package/src/docs/docs-location.ts +133 -32
- package/src/docs/docs.ts +1 -2
- package/src/docs/example/decorators-demo-bind-demos.ts +83 -135
- package/src/docs/example/decorators-demo-geo.ts +30 -19
- package/src/docs/example/decorators-demo-post.ts +88 -186
- package/src/docs/example/decorators-demo-subscribe-publish-get-demos.ts +165 -268
- package/src/docs/example/decorators-demo.ts +85 -98
- package/src/docs/example/docs-api-config-demos.ts +19 -20
- package/src/docs/example/docs-flight-demos.ts +147 -0
- package/src/docs/example/docs-jsonata-demos.ts +52 -52
- package/src/docs/example/docs-list-demos.ts +43 -123
- package/src/docs/example/docs-provider-keys.ts +21 -28
- package/src/docs/example/docs-queue-demos.ts +37 -77
- package/src/docs/example/docs-router-demos.ts +20 -25
- package/src/docs/example/docs-submit-demos.ts +48 -48
- package/src/docs/example/docs-toggle-demos.ts +4 -3
- package/src/docs/example/users.ts +0 -0
- package/src/docs/getting-started/ai-agents.md +50 -0
- package/src/docs/getting-started/create-a-component.md +136 -0
- package/src/docs/getting-started/dataFlow.md +87 -0
- package/src/docs/getting-started/installation.md +36 -0
- package/src/docs/getting-started/my-first-component.md +227 -0
- package/src/docs/getting-started/start.md +35 -0
- package/src/docs/header/header.ts +11 -6
- package/src/docs/home/catalog.ts +1 -1
- package/src/docs/home/home.ts +20 -11
- package/src/docs/layout.ts +12 -13
- package/src/docs/misc/api-configuration.md +79 -0
- package/src/docs/misc/dataProviderKey.md +168 -0
- package/src/docs/misc/docs-mock-api.md +62 -0
- package/src/docs/misc/dynamic-path.md +71 -0
- package/src/docs/misc/endpoint.md +45 -0
- package/src/docs/misc/html-integration.md +14 -0
- package/src/docs/misc/publisher-get-immutability-docs-crawl.json +902 -0
- package/src/docs/misc/publisher-get-immutability-docs-recheck.json +13 -0
- package/src/docs/misc/publisher-get-immutability-study.md +229 -0
- package/src/docs/mock-api/api-config-mock.ts +5 -0
- package/src/docs/mock-api/fixtures.ts +0 -278
- package/src/docs/mock-api/flights.ts +89 -0
- package/src/docs/mock-api/router.ts +3 -4
- package/src/docs/mock-api/urls.ts +1 -2
- package/src/docs/navigation/navigation.ts +84 -101
- package/src/docs/navigation/toc.ts +7 -4
- package/src/docs/search/docs-search.json +3188 -5153
- package/src/docs/search/markdown-renderer.ts +31 -8
- package/src/docs/search/page.ts +9 -6
- package/src/docs/search/search.ts +154 -122
- package/src/docs/tailwind/css/docs/content.css +4 -5
- package/src/tsconfig.declarations.json +22 -0
- package/src/tsconfig.emit.json +23 -0
- package/src/tsconfig.json +53 -5
- package/src/tsconfig.tsbuildinfo +1 -1
- package/vite.config.mts +11 -2
- package/.agents/skills/concorde-component-docs/SKILL.md +0 -194
- package/.taste-skill/after/desktop-fold.jpg +0 -0
- package/.taste-skill/after/desktop-page-01.jpg +0 -0
- package/.taste-skill/after/desktop-page-02.jpg +0 -0
- package/.taste-skill/after/desktop-page-03.jpg +0 -0
- package/.taste-skill/after/mobile-fold.jpg +0 -0
- package/.taste-skill/after/mobile-page-01.jpg +0 -0
- package/.taste-skill/after/report.json +0 -4103
- package/.taste-skill/after/tablet-fold.jpg +0 -0
- package/.taste-skill/after/tablet-page-01.jpg +0 -0
- package/.taste-skill/after/tablet-page-02.jpg +0 -0
- package/.taste-skill/before/desktop-fold.jpg +0 -0
- package/.taste-skill/before/desktop-page-01.jpg +0 -0
- package/.taste-skill/before/desktop-page-02.jpg +0 -0
- package/.taste-skill/before/mobile-fold.jpg +0 -0
- package/.taste-skill/before/mobile-page-01.jpg +0 -0
- package/.taste-skill/before/report.json +0 -2556
- package/.taste-skill/before/tablet-fold.jpg +0 -0
- package/.taste-skill/before/tablet-page-01.jpg +0 -0
- package/.taste-skill/direction.json +0 -510
- package/.taste-skill/notes.md +0 -84
- package/.taste-skill/prod/desktop-fold.jpg +0 -0
- package/.taste-skill/prod/desktop-page-01.jpg +0 -0
- package/.taste-skill/prod/desktop-page-02.jpg +0 -0
- package/.taste-skill/prod/desktop-page-03.jpg +0 -0
- package/.taste-skill/prod/mobile-fold.jpg +0 -0
- package/.taste-skill/prod/mobile-page-01.jpg +0 -0
- package/.taste-skill/prod/mobile-page-02.jpg +0 -0
- package/.taste-skill/prod/report.json +0 -1973
- package/.taste-skill/prod/tablet-fold.jpg +0 -0
- package/.taste-skill/prod/tablet-page-01.jpg +0 -0
- package/.taste-skill/prod/tablet-page-02.jpg +0 -0
- package/AUDIT.md +0 -228
- package/PLAN-AMELIORATION.md +0 -220
- package/ai/AGENTS.md +0 -56
- package/ai/cursor/rules/concorde-menu.mdc +0 -15
- package/ai/cursor/rules/concorde-scope.mdc +0 -14
- package/ai/cursor/rules/concorde-theme.mdc +0 -13
- package/ai/cursor/rules/concorde.mdc +0 -66
- package/ai/jetbrains/rules/concorde.md +0 -53
- package/ai/skills/concorde-get-set-dp/SKILL.md +0 -194
- package/ai/skills/concorde-imports/SKILL.md +0 -78
- package/ai/skills/concorde-menu/SKILL.md +0 -74
- package/ai/skills/concorde-scope/SKILL.md +0 -70
- package/ai/skills/concorde-theme/SKILL.md +0 -57
- package/docs/assets/index-Bb-_LRyY.js +0 -12280
- package/src/docs/example/docs-input-autocomplete-demos.ts +0 -110
- package/src/docs/example/docs-joke-demos.ts +0 -297
- /package/{src → docs/src}/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -0
- /package/{src → docs/src}/docs/_core-concept/dataFlow.md +0 -0
- /package/{src → docs/src}/docs/_core-concept/overview.md +0 -0
- /package/{src → docs/src}/docs/_decorators/ancestor-attribute.md +0 -0
- /package/{src → docs/src}/docs/_decorators/auto-subscribe.md +0 -0
- /package/{src → docs/src}/docs/_decorators/bind.md +0 -0
- /package/{src → docs/src}/docs/_decorators/get.md +0 -0
- /package/{src → docs/src}/docs/_decorators/handle.md +0 -0
- /package/{src → docs/src}/docs/_decorators/on-assign.md +0 -0
- /package/{src → docs/src}/docs/_decorators/patch.md +0 -0
- /package/{src → docs/src}/docs/_decorators/post.md +0 -0
- /package/{src → docs/src}/docs/_decorators/publish.md +0 -0
- /package/{src → docs/src}/docs/_decorators/put.md +0 -0
- /package/{src → docs/src}/docs/_decorators/subscribe.md +0 -0
- /package/{src → docs/src}/docs/_decorators/wait-for-ancestors.md +0 -0
- /package/{src → docs/src}/docs/_directives/sub.md +0 -0
- /package/{src → docs/src}/docs/_getting-started/ai-agents.md +0 -0
- /package/{src → docs/src}/docs/_getting-started/concorde-manual-install.md +0 -0
- /package/{src → docs/src}/docs/_getting-started/concorde-outside.md +0 -0
- /package/{src → docs/src}/docs/_getting-started/create-a-component.md +0 -0
- /package/{src → docs/src}/docs/_getting-started/my-first-component.md +0 -0
- /package/{src → docs/src}/docs/_getting-started/start.md +0 -0
- /package/{src → docs/src}/docs/_misc/api-configuration.md +0 -0
- /package/{src → docs/src}/docs/_misc/dataProviderKey.md +0 -0
- /package/{src → docs/src}/docs/_misc/docs-mock-api.md +0 -0
- /package/{src → docs/src}/docs/_misc/dynamic-path.md +0 -0
- /package/{src → docs/src}/docs/_misc/endpoint.md +0 -0
- /package/{src → docs/src}/docs/_misc/formelement-subscriber-removal.md +0 -0
- /package/{src → docs/src}/docs/_misc/html-integration.md +0 -0
- /package/src/docs/{_getting-started → getting-started}/components.md +0 -0
- /package/src/docs/{_getting-started → getting-started}/theming.md +0 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# Toast
|
|
2
|
+
|
|
3
|
+
Toasts surface **short-lived feedback** in a fixed stack (bottom-right in the main window). Queue messages with **`SonicToast.add()`** on the global **`SonicToast`** class—the host **`sonic-toast`** is created automatically. Prefer **`label`** for a heading; use **`preserve`** or interactive **`text`** when the user must read or act before dismiss.
|
|
4
|
+
|
|
5
|
+
## Basic example
|
|
6
|
+
|
|
7
|
+
Click the button to show a toast.
|
|
8
|
+
|
|
9
|
+
<sonic-code>
|
|
10
|
+
<template>
|
|
11
|
+
<sonic-button onclick="SonicToast.add({ text: 'Simple notification' })">
|
|
12
|
+
Show toast
|
|
13
|
+
</sonic-button>
|
|
14
|
+
</template>
|
|
15
|
+
</sonic-code>
|
|
16
|
+
|
|
17
|
+
## Status
|
|
18
|
+
|
|
19
|
+
**`status`** drives color, icon, and live-region behavior. Omit **`status`** or pass an empty string for a neutral toast.
|
|
20
|
+
|
|
21
|
+
<sonic-code>
|
|
22
|
+
<template>
|
|
23
|
+
<div class="flex flex-wrap gap-2">
|
|
24
|
+
<sonic-button onclick="SonicToast.add({ text: 'Default message', status: '' })">
|
|
25
|
+
Default
|
|
26
|
+
</sonic-button>
|
|
27
|
+
<sonic-button onclick="SonicToast.add({ text: 'Operation succeeded', status: 'success' })">
|
|
28
|
+
Success
|
|
29
|
+
</sonic-button>
|
|
30
|
+
<sonic-button onclick="SonicToast.add({ text: 'Something went wrong', status: 'error' })">
|
|
31
|
+
Error
|
|
32
|
+
</sonic-button>
|
|
33
|
+
<sonic-button onclick="SonicToast.add({ text: 'Check this detail', status: 'warning' })">
|
|
34
|
+
Warning
|
|
35
|
+
</sonic-button>
|
|
36
|
+
<sonic-button onclick="SonicToast.add({ text: 'Helpful context', status: 'info' })">
|
|
37
|
+
Info
|
|
38
|
+
</sonic-button>
|
|
39
|
+
</div>
|
|
40
|
+
</template>
|
|
41
|
+
</sonic-code>
|
|
42
|
+
|
|
43
|
+
## Label
|
|
44
|
+
|
|
45
|
+
Set **`label`** for a bold title above **`text`**. **`title`** still works but is deprecated—use **`label`** in new code.
|
|
46
|
+
|
|
47
|
+
<sonic-code>
|
|
48
|
+
<template>
|
|
49
|
+
<div class="flex flex-wrap gap-2">
|
|
50
|
+
<sonic-button
|
|
51
|
+
onclick="SonicToast.add({ label: 'Success', text: 'Your request was processed.', status: 'success' })"
|
|
52
|
+
>
|
|
53
|
+
Toast with label
|
|
54
|
+
</sonic-button>
|
|
55
|
+
<sonic-button
|
|
56
|
+
onclick="SonicToast.add({ label: 'Error', text: 'Processing failed. Try again.', status: 'error' })"
|
|
57
|
+
>
|
|
58
|
+
Error with label
|
|
59
|
+
</sonic-button>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
</sonic-code>
|
|
63
|
+
|
|
64
|
+
## HTML in text
|
|
65
|
+
|
|
66
|
+
**`text`** (and **`label`**) can include HTML strings. Links and controls in **`text`** automatically enable **`preserve`** so the toast does not auto-hide while the user interacts.
|
|
67
|
+
|
|
68
|
+
<sonic-code>
|
|
69
|
+
<template>
|
|
70
|
+
<sonic-button
|
|
71
|
+
onclick="SonicToast.add({ text: 'Message with <strong>HTML</strong> and an <a href="#">action link</a>', status: 'info' })"
|
|
72
|
+
>
|
|
73
|
+
Toast with HTML
|
|
74
|
+
</sonic-button>
|
|
75
|
+
</template>
|
|
76
|
+
</sonic-code>
|
|
77
|
+
|
|
78
|
+
## Preserve
|
|
79
|
+
|
|
80
|
+
Without **`preserve`**, toasts auto-hide after about six seconds (timer pauses on hover or focus). Set **`preserve`** to keep the toast until the user closes it.
|
|
81
|
+
|
|
82
|
+
<sonic-code>
|
|
83
|
+
<template>
|
|
84
|
+
<sonic-button
|
|
85
|
+
onclick="SonicToast.add({ text: 'This toast stays until you dismiss it', status: 'info', preserve: true })"
|
|
86
|
+
>
|
|
87
|
+
Persistent toast
|
|
88
|
+
</sonic-button>
|
|
89
|
+
</template>
|
|
90
|
+
</sonic-code>
|
|
91
|
+
|
|
92
|
+
## Dismiss forever
|
|
93
|
+
|
|
94
|
+
With **`dismissForever`** and a stable **`id`**, closing the toast stores dismissal in **`localStorage`**—**`SonicToast.add`** skips it on later visits. Duplicate payloads (same fields, ignoring **`id`**) are not queued twice.
|
|
95
|
+
|
|
96
|
+
<sonic-code>
|
|
97
|
+
<template>
|
|
98
|
+
<sonic-button
|
|
99
|
+
onclick="SonicToast.add({ id: 'unique-toast-id', text: 'Dismiss forever hides this across reloads', status: 'info', dismissForever: true })"
|
|
100
|
+
>
|
|
101
|
+
Dismiss forever
|
|
102
|
+
</sonic-button>
|
|
103
|
+
</template>
|
|
104
|
+
</sonic-code>
|
|
105
|
+
|
|
106
|
+
## Ghost
|
|
107
|
+
|
|
108
|
+
**`ghost`** renders a semi-transparent, non-interactive toast—useful for loading or background states. **`SonicToast.removeAll`** leaves ghost toasts in place.
|
|
109
|
+
|
|
110
|
+
<sonic-code>
|
|
111
|
+
<template>
|
|
112
|
+
<sonic-button
|
|
113
|
+
onclick="SonicToast.add({ text: 'Ghost toast (non-interactive)', status: 'info', ghost: true })"
|
|
114
|
+
>
|
|
115
|
+
Ghost toast
|
|
116
|
+
</sonic-button>
|
|
117
|
+
</template>
|
|
118
|
+
</sonic-code>
|
|
119
|
+
|
|
120
|
+
## Dismissal
|
|
121
|
+
|
|
122
|
+
Use static helpers to clear the stack from app logic (for example after navigation).
|
|
123
|
+
|
|
124
|
+
### Remove all
|
|
125
|
+
|
|
126
|
+
Removes every toast except **`ghost`** items.
|
|
127
|
+
|
|
128
|
+
<sonic-code>
|
|
129
|
+
<template>
|
|
130
|
+
<div class="flex flex-wrap gap-2">
|
|
131
|
+
<sonic-button onclick="SonicToast.add({ text: 'Toast 1', status: 'info' })">Add toast 1</sonic-button>
|
|
132
|
+
<sonic-button onclick="SonicToast.add({ text: 'Toast 2', status: 'success' })">Add toast 2</sonic-button>
|
|
133
|
+
<sonic-button onclick="SonicToast.add({ text: 'Toast 3', status: 'warning' })">Add toast 3</sonic-button>
|
|
134
|
+
<sonic-button onclick="SonicToast.removeAll()">Remove all</sonic-button>
|
|
135
|
+
</div>
|
|
136
|
+
</template>
|
|
137
|
+
</sonic-code>
|
|
138
|
+
|
|
139
|
+
### Remove by status
|
|
140
|
+
|
|
141
|
+
<sonic-code>
|
|
142
|
+
<template>
|
|
143
|
+
<div class="flex flex-wrap gap-2">
|
|
144
|
+
<sonic-button onclick="SonicToast.add({ text: 'Success toast', status: 'success' })">Success</sonic-button>
|
|
145
|
+
<sonic-button onclick="SonicToast.add({ text: 'Error toast', status: 'error' })">Error</sonic-button>
|
|
146
|
+
<sonic-button onclick="SonicToast.add({ text: 'Warning toast', status: 'warning' })">Warning</sonic-button>
|
|
147
|
+
<sonic-button onclick="SonicToast.removeItemsByStatus('success')">Remove success</sonic-button>
|
|
148
|
+
<sonic-button onclick="SonicToast.removeItemsByStatus('error')">Remove error</sonic-button>
|
|
149
|
+
</div>
|
|
150
|
+
</template>
|
|
151
|
+
</sonic-code>
|
|
152
|
+
|
|
153
|
+
### Remove temporary items
|
|
154
|
+
|
|
155
|
+
Removes toasts that are not **`preserve`**.
|
|
156
|
+
|
|
157
|
+
<sonic-code>
|
|
158
|
+
<template>
|
|
159
|
+
<div class="flex flex-wrap gap-2">
|
|
160
|
+
<sonic-button onclick="SonicToast.add({ text: 'Temporary toast', status: 'info' })">Temporary</sonic-button>
|
|
161
|
+
<sonic-button onclick="SonicToast.add({ text: 'Persistent toast', status: 'success', preserve: true })">
|
|
162
|
+
Persistent
|
|
163
|
+
</sonic-button>
|
|
164
|
+
<sonic-button onclick="SonicToast.removeTemporaryItems()">Remove temporary</sonic-button>
|
|
165
|
+
</div>
|
|
166
|
+
</template>
|
|
167
|
+
</sonic-code>
|
|
168
|
+
|
|
169
|
+
## Combined options
|
|
170
|
+
|
|
171
|
+
<sonic-code>
|
|
172
|
+
<template>
|
|
173
|
+
<sonic-button
|
|
174
|
+
onclick="SonicToast.add({
|
|
175
|
+
id: 'welcome-toast',
|
|
176
|
+
label: 'Welcome',
|
|
177
|
+
text: 'Welcome to the platform. Explore the docs to get started.',
|
|
178
|
+
status: 'success',
|
|
179
|
+
dismissForever: true
|
|
180
|
+
})"
|
|
181
|
+
>
|
|
182
|
+
Full example
|
|
183
|
+
</sonic-button>
|
|
184
|
+
</template>
|
|
185
|
+
</sonic-code>
|
|
186
|
+
|
|
187
|
+
## Accessibility
|
|
188
|
+
|
|
189
|
+
Each toast uses **`role="alert"`** for **`error`** and **`role="status"`** otherwise (with **`aria-live="polite"`** when applicable). Status icons are decorative (**`aria-hidden`**). The close control has an i18n **`aria-label`**. When there is no **`label`**, a truncated string **`aria-label`** may be derived from plain **`text`**.
|
|
190
|
+
|
|
191
|
+
## API reference
|
|
192
|
+
|
|
193
|
+
Options passed to **`SonicToast.add(conf)`**:
|
|
194
|
+
|
|
195
|
+
| Option | Values | Description |
|
|
196
|
+
|----------|---------|-------------|
|
|
197
|
+
| `text` | string · Lit template | Main body; HTML strings are supported |
|
|
198
|
+
| `label` | string · Lit template | Optional heading above **`text`** |
|
|
199
|
+
| `title` | string · Lit template | Deprecated alias for **`label`** |
|
|
200
|
+
| `status` | `success` · `error` · `warning` · `info` · `` (empty) | Semantic styling and live region behavior |
|
|
201
|
+
| `id` | string · number | Stable id for deduplication and **`dismissForever`** (defaults to timestamp) |
|
|
202
|
+
| `preserve` | boolean | Skip auto-hide; forced when **`text`** contains interactive markup |
|
|
203
|
+
| `ghost` | boolean | Semi-transparent and non-interactive; kept by **`removeAll`** |
|
|
204
|
+
| `dismissForever` | boolean | Persist dismissal in **`localStorage`** when closed (requires stable **`id`**) |
|
|
205
|
+
| `styleSheet` | modal style input | Extra adopted styles on the toast item shadow root |
|
|
206
|
+
| `useSlot` | boolean | Legacy: project **`text`** into the light DOM slot |
|
|
207
|
+
|
|
208
|
+
| Method | Description |
|
|
209
|
+
|--------|-------------|
|
|
210
|
+
| `SonicToast.add(conf)` | Append a toast; returns the config or **`null`** if skipped (dismissed forever or duplicate) |
|
|
211
|
+
| `SonicToast.removeAll()` | Remove all non-**`ghost`** toasts |
|
|
212
|
+
| `SonicToast.removeItemsByStatus(status)` | Remove toasts matching **`status`** |
|
|
213
|
+
| `SonicToast.removeItemById(id)` | Remove a single toast by **`id`** |
|
|
214
|
+
| `SonicToast.removeTemporaryItems()` | Remove toasts without **`preserve`** |
|
|
215
|
+
|
|
216
|
+
**`sonic-toast`** is mounted automatically; **`sonic-toast-item`** is internal. In iframes, toasts can delegate to the parent window via **`postMessage`**.
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Tooltip
|
|
2
|
+
|
|
3
|
+
Tooltip shows a short **`label`** on hover (and on focus when the trigger can receive focus). Wrap the trigger in the default slot—buttons, icons, or plain text. Default **`placement`** is **`top`** (center-aligned). An empty **`label`** hides the bubble the same way as **`disabled`**.
|
|
4
|
+
|
|
5
|
+
## Basic example
|
|
6
|
+
|
|
7
|
+
<sonic-code>
|
|
8
|
+
<template>
|
|
9
|
+
<sonic-tooltip label="Additional context on hover">
|
|
10
|
+
<sonic-button variant="outline">Hover me</sonic-button>
|
|
11
|
+
</sonic-tooltip>
|
|
12
|
+
</template>
|
|
13
|
+
</sonic-code>
|
|
14
|
+
|
|
15
|
+
## Placement
|
|
16
|
+
|
|
17
|
+
Use **`top`** · **`bottom`** · **`left`** · **`right`** for the main axis. Add **`-start`** or **`-end`** to align the bubble along the anchor edge.
|
|
18
|
+
|
|
19
|
+
<sonic-code>
|
|
20
|
+
<template>
|
|
21
|
+
<div class="flex flex-wrap gap-2">
|
|
22
|
+
<sonic-tooltip placement="top" label="Top">
|
|
23
|
+
<sonic-button>Top</sonic-button>
|
|
24
|
+
</sonic-tooltip>
|
|
25
|
+
<sonic-tooltip placement="bottom" label="Bottom">
|
|
26
|
+
<sonic-button>Bottom</sonic-button>
|
|
27
|
+
</sonic-tooltip>
|
|
28
|
+
<sonic-tooltip placement="right" label="Right">
|
|
29
|
+
<sonic-button>Right</sonic-button>
|
|
30
|
+
</sonic-tooltip>
|
|
31
|
+
<sonic-tooltip placement="left" label="Left">
|
|
32
|
+
<sonic-button>Left</sonic-button>
|
|
33
|
+
</sonic-tooltip>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
</sonic-code>
|
|
37
|
+
|
|
38
|
+
### Aligned placements
|
|
39
|
+
|
|
40
|
+
<sonic-code>
|
|
41
|
+
<template>
|
|
42
|
+
<div class="flex gap-3 flex-wrap">
|
|
43
|
+
<sonic-tooltip placement="top-start" label="Top start">
|
|
44
|
+
<sonic-button class="size-40 bg-neutral-200 rounded-lg">Top start</sonic-button>
|
|
45
|
+
</sonic-tooltip>
|
|
46
|
+
<sonic-tooltip placement="top-end" label="Top end">
|
|
47
|
+
<sonic-button class="size-40 bg-neutral-200 rounded-lg">Top end</sonic-button>
|
|
48
|
+
</sonic-tooltip>
|
|
49
|
+
<sonic-tooltip placement="bottom-start" label="Bottom start">
|
|
50
|
+
<sonic-button class="size-40 bg-neutral-200 rounded-lg">Bottom start</sonic-button>
|
|
51
|
+
</sonic-tooltip>
|
|
52
|
+
<sonic-tooltip placement="bottom-end" label="Bottom end">
|
|
53
|
+
<sonic-button class="size-40 bg-neutral-200 rounded-lg">Bottom end</sonic-button>
|
|
54
|
+
</sonic-tooltip>
|
|
55
|
+
<sonic-tooltip placement="right-start" label="Right start">
|
|
56
|
+
<sonic-button class="size-40 bg-neutral-200 rounded-lg">Right start</sonic-button>
|
|
57
|
+
</sonic-tooltip>
|
|
58
|
+
<sonic-tooltip placement="right-end" label="Right end">
|
|
59
|
+
<sonic-button class="size-40 bg-neutral-200 rounded-lg">Right end</sonic-button>
|
|
60
|
+
</sonic-tooltip>
|
|
61
|
+
<sonic-tooltip placement="left-start" label="Left start">
|
|
62
|
+
<sonic-button class="size-40 bg-neutral-200 rounded-lg">Left start</sonic-button>
|
|
63
|
+
</sonic-tooltip>
|
|
64
|
+
<sonic-tooltip placement="left-end" label="Left end">
|
|
65
|
+
<sonic-button class="size-40 bg-neutral-200 rounded-lg">Left end</sonic-button>
|
|
66
|
+
</sonic-tooltip>
|
|
67
|
+
</div>
|
|
68
|
+
</template>
|
|
69
|
+
</sonic-code>
|
|
70
|
+
|
|
71
|
+
## Label formatting
|
|
72
|
+
|
|
73
|
+
**`label`** supports line breaks (`\n` in markup or multiline text). Lines are trimmed; **` `** is normalized to spaces. **`white-space: pre-line`** preserves breaks in the bubble (max width **18rem**).
|
|
74
|
+
|
|
75
|
+
<sonic-code>
|
|
76
|
+
<template>
|
|
77
|
+
<sonic-tooltip label="First line Second line">
|
|
78
|
+
<sonic-button variant="outline">Multiline label</sonic-button>
|
|
79
|
+
</sonic-tooltip>
|
|
80
|
+
</template>
|
|
81
|
+
</sonic-code>
|
|
82
|
+
|
|
83
|
+
## Focusable
|
|
84
|
+
|
|
85
|
+
On non-interactive triggers, set **`focusable`** so the host gets **`tabindex="0"`** and the tooltip opens on keyboard focus as well as hover.
|
|
86
|
+
|
|
87
|
+
<sonic-code>
|
|
88
|
+
<template>
|
|
89
|
+
<sonic-tooltip
|
|
90
|
+
focusable
|
|
91
|
+
label="The Concorde made its first transatlantic crossing on September 26, 1973"
|
|
92
|
+
>
|
|
93
|
+
<sonic-icon library="iconoir" name="chat-bubble-question"></sonic-icon>
|
|
94
|
+
Focus or hover this text
|
|
95
|
+
</sonic-tooltip>
|
|
96
|
+
</template>
|
|
97
|
+
</sonic-code>
|
|
98
|
+
|
|
99
|
+
## Disabled
|
|
100
|
+
|
|
101
|
+
<sonic-code>
|
|
102
|
+
<template>
|
|
103
|
+
<sonic-tooltip disabled label="Not shown">
|
|
104
|
+
<sonic-button>Tooltip disabled</sonic-button>
|
|
105
|
+
</sonic-tooltip>
|
|
106
|
+
</template>
|
|
107
|
+
</sonic-code>
|
|
108
|
+
|
|
109
|
+
## Accessibility
|
|
110
|
+
|
|
111
|
+
The bubble uses **`popover="hint"`** (non-modal, no pointer capture). Prefer **`focusable`** when the slotted content is not already focusable. When the Popover API is unavailable, the host falls back to the native **`title`** attribute with a single-line label. Opacity transitions respect **`prefers-reduced-motion`**.
|
|
112
|
+
|
|
113
|
+
## API reference
|
|
114
|
+
|
|
115
|
+
| Attribute | Values | Description |
|
|
116
|
+
|----------|---------|-------------|
|
|
117
|
+
| `label` | string | Tooltip copy; whitespace-only values suppress the bubble |
|
|
118
|
+
| `placement` | `top` (default) · `bottom` · `left` · `right` · `top-start` · `top-end` · `bottom-start` · `bottom-end` · `left-start` · `left-end` · `right-start` · `right-end` | Position relative to the trigger; repositions while open |
|
|
119
|
+
| `disabled` | boolean | Suppress show/hide; sets **`tabindex="-1"`** on the host |
|
|
120
|
+
| `focusable` | boolean | Add **`tabindex="0"`** on the host for keyboard access |
|
|
121
|
+
|
|
122
|
+
| Slot | Description |
|
|
123
|
+
|------|-------------|
|
|
124
|
+
| *(default)* | Trigger content (hover target) |
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# Customization
|
|
2
|
+
|
|
3
|
+
## Theme-first customization
|
|
4
|
+
|
|
5
|
+
Concorde components ship with **default styles** (fallback values in each component and in `<sonic-theme>`).
|
|
6
|
+
You do not need to define any CSS variables to get a usable UI.
|
|
7
|
+
|
|
8
|
+
To align the kit with your brand, override **only the essential theme tokens** on `<sonic-theme>`, on `:root`, or in a project stylesheet.
|
|
9
|
+
Concorde derives radius steps, button/input rounding, shadows, and most per-component layout from these primitives—**do not copy long lists of derived variables** unless you have a specific need.
|
|
10
|
+
|
|
11
|
+
<sonic-code language="html">
|
|
12
|
+
<template>
|
|
13
|
+
<sonic-theme color font class="block bg-base min-h-screen">
|
|
14
|
+
<!-- your app -->
|
|
15
|
+
</sonic-theme>
|
|
16
|
+
</template>
|
|
17
|
+
</sonic-code>
|
|
18
|
+
|
|
19
|
+
<sonic-code language="javascript">
|
|
20
|
+
<template>
|
|
21
|
+
import "@supersoniks/concorde/theme";
|
|
22
|
+
</template>
|
|
23
|
+
</sonic-code>
|
|
24
|
+
|
|
25
|
+
| Attribute | Effect |
|
|
26
|
+
|-----------|--------|
|
|
27
|
+
| *(omit)* \| `theme="custom"` | Default: core tokens + your `--sc-*`; no built-in light/dark palette |
|
|
28
|
+
| `theme="light"` \| `"dark"` \| `"auto"` | Opt-in presets; `auto` follows `prefers-color-scheme` |
|
|
29
|
+
| `class="bg-base block"` (Tailwind) | Page/surface background (`--sc-base`) |
|
|
30
|
+
| `color` | Text color (`--sc-base-content`) |
|
|
31
|
+
| `font` | Base font family/weight (`--sc-font-family-base`, etc.) |
|
|
32
|
+
|
|
33
|
+
Popovers, modals, and toasts mount under the nearest `<sonic-theme>`.
|
|
34
|
+
|
|
35
|
+
## Customization example
|
|
36
|
+
|
|
37
|
+
Example (full brand override on `<sonic-theme>` or `:root`). Set every essential token below; derived radii and shadows still come from the theme engine—only `--sc-rounded` is listed here.
|
|
38
|
+
|
|
39
|
+
<sonic-code language="css">
|
|
40
|
+
<template>
|
|
41
|
+
sonic-theme {
|
|
42
|
+
/* Semantic fills */
|
|
43
|
+
--sc-primary: #353429;
|
|
44
|
+
--sc-secondary: #f43f5e;
|
|
45
|
+
--sc-info: #7c3aed;
|
|
46
|
+
--sc-danger: #d71839;
|
|
47
|
+
--sc-warning: #f97316;
|
|
48
|
+
--sc-success: #10b981;
|
|
49
|
+
--sc-contrast: #111;
|
|
50
|
+
|
|
51
|
+
/* Text/icons on semantic fills */
|
|
52
|
+
--sc-primary-content: #fff;
|
|
53
|
+
--sc-secondary-content: #fff;
|
|
54
|
+
--sc-info-content: #fff;
|
|
55
|
+
--sc-danger-content: #fff;
|
|
56
|
+
--sc-warning-content: #fff;
|
|
57
|
+
--sc-success-content: #fff;
|
|
58
|
+
--sc-contrast-content: #fff;
|
|
59
|
+
|
|
60
|
+
/* Neutral fills */
|
|
61
|
+
--sc-base: #fff;
|
|
62
|
+
--sc-base-50: #f6f6f5;
|
|
63
|
+
--sc-base-100: #ededec;
|
|
64
|
+
--sc-base-200: #d7d7d4;
|
|
65
|
+
--sc-base-300: #c8c7c4;
|
|
66
|
+
--sc-base-400: #a8a7a2;
|
|
67
|
+
--sc-base-500: #94938c;
|
|
68
|
+
--sc-base-600: #76756c;
|
|
69
|
+
--sc-base-700: #59584e;
|
|
70
|
+
--sc-base-800: #47463b;
|
|
71
|
+
--sc-base-900: #353429;
|
|
72
|
+
|
|
73
|
+
/* Text/icons on neutral surfaces */
|
|
74
|
+
--sc-base-content: var(--sc-base-900);
|
|
75
|
+
|
|
76
|
+
/* Typography */
|
|
77
|
+
--sc-font-family-base: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto,
|
|
78
|
+
"Helvetica Neue", Arial, sans-serif;
|
|
79
|
+
--sc-headings-font-family: "alternate-gothic-compressed", system-ui, sans-serif;
|
|
80
|
+
--sc-headings-line-height: 1.1;
|
|
81
|
+
--sc-headings-font-weight: bold;
|
|
82
|
+
--sc-headings-text-transform: none;
|
|
83
|
+
|
|
84
|
+
/* Shape (primitive only) */
|
|
85
|
+
--sc-rounded: 0;
|
|
86
|
+
|
|
87
|
+
/* Forms */
|
|
88
|
+
--sc-border-width: 0.2rem;
|
|
89
|
+
--sc-form-height: 2em;
|
|
90
|
+
--sc-input-bg: var(--sc-base);
|
|
91
|
+
--sc-input-color: var(--sc-base-content);
|
|
92
|
+
--sc-input-border-color: var(--sc-input-color);
|
|
93
|
+
--sc-input-active-bg: var(--sc-primary);
|
|
94
|
+
--sc-input-active-color: var(--sc-primary-content);
|
|
95
|
+
--sc-input-active-border-color: var(--sc-primary);
|
|
96
|
+
}
|
|
97
|
+
</template>
|
|
98
|
+
</sonic-code>
|
|
99
|
+
|
|
100
|
+
<sonic-button href="https://delanfranchi.github.io/concordecolors/"> Palette generator: concordecolors</sonic-button>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
**Without these overrides**, components keep Concorde’s per-component fallbacks. Built-in light/dark palettes apply only when you set `theme="light"`, `theme="dark"`, or `theme="auto"`.
|
|
104
|
+
|
|
105
|
+
**What we intentionally avoid:** large public `--sc-alert-*` / `--sc-badge-*` APIs or `::part()` styling hooks on most components. Prefer attributes (`type`, `status`, `size`, …) and the theme tokens above.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
## Only essential CSS variables (public theme API)
|
|
109
|
+
|
|
110
|
+
These are the **smallest set** we recommend customizing. Everything else should stay internal to the theme or to components (`--sc_*` private variables, attributes like `type`, `size`, `variant`).
|
|
111
|
+
|
|
112
|
+
### Surfaces and foreground
|
|
113
|
+
|
|
114
|
+
Tokens **without** a `-content` suffix are **fill / background** colors.
|
|
115
|
+
Tokens **with** `-content` are **text and icons** on top of the matching fill (solid buttons, badges, alerts, etc.).
|
|
116
|
+
|
|
117
|
+
#### Neutral fills
|
|
118
|
+
|
|
119
|
+
| Variable | Role |
|
|
120
|
+
|----------|------|
|
|
121
|
+
| `--sc-base` | Main surface / page background |
|
|
122
|
+
| `--sc-base-50` … `--sc-base-900` | Neutral scale (borders, subtle backgrounds, muted UI) |
|
|
123
|
+
|
|
124
|
+
#### Neutral foreground
|
|
125
|
+
|
|
126
|
+
| Variable | Role |
|
|
127
|
+
|----------|------|
|
|
128
|
+
| `--sc-base-content` | Default body text and icons on neutral surfaces |
|
|
129
|
+
|
|
130
|
+
#### Semantic fills
|
|
131
|
+
|
|
132
|
+
| Variable | Role |
|
|
133
|
+
|----------|------|
|
|
134
|
+
| `--sc-primary` | Primary actions, links, emphasis |
|
|
135
|
+
| `--sc-secondary` | Secondary brand accent (when used) |
|
|
136
|
+
| `--sc-info`, `--sc-success`, `--sc-warning`, `--sc-danger` | Status and feedback |
|
|
137
|
+
| `--sc-contrast` | High-contrast fills (e.g. on media) |
|
|
138
|
+
|
|
139
|
+
#### Semantic foreground
|
|
140
|
+
|
|
141
|
+
| Variable | Role |
|
|
142
|
+
|----------|------|
|
|
143
|
+
| `--sc-primary-content`, `--sc-secondary-content`, … | Text/icons on the matching semantic **fill** (`--sc-primary`, etc.) |
|
|
144
|
+
|
|
145
|
+
### Shape
|
|
146
|
+
|
|
147
|
+
| Variable | Role |
|
|
148
|
+
|----------|------|
|
|
149
|
+
| `--sc-rounded` | **Single primitive** corner radius; the theme computes `--sc-rounded-sm`, `--sc-btn-rounded`, `--sc-input-rounded`, etc. |
|
|
150
|
+
|
|
151
|
+
### Typography
|
|
152
|
+
|
|
153
|
+
| Variable | Role |
|
|
154
|
+
|----------|------|
|
|
155
|
+
| `--sc-font-family-base` | Body UI text |
|
|
156
|
+
| `--sc-font-weight-base`, `--sc-font-style-base` | Optional |
|
|
157
|
+
| `--sc-headings-font-family`, `--sc-headings-line-height`, `--sc-headings-font-weight`, `--sc-headings-text-transform` | Headings (modal titles, etc.) |
|
|
158
|
+
|
|
159
|
+
### Forms (only if you customize inputs globally)
|
|
160
|
+
|
|
161
|
+
Interactive controls expose a few extra **theme-level** tokens; prefer these over styling individual inputs from outside.
|
|
162
|
+
|
|
163
|
+
| Variable | Role |
|
|
164
|
+
|----------|------|
|
|
165
|
+
| `--sc-border-width` | Default border thickness |
|
|
166
|
+
| `--sc-form-height` | Control height |
|
|
167
|
+
| `--sc-input-bg`, `--sc-input-color`, `--sc-input-border-color` | Default field chrome |
|
|
168
|
+
| `--sc-input-active-bg`, `--sc-input-active-color`, `--sc-input-active-border-color` | Focus/active state |
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Tailwind in new components ?
|
|
173
|
+
|
|
174
|
+
Set <code>tailwind.config.js</code> to match concorde style token in your custom component.
|
|
175
|
+
|
|
176
|
+
<sonic-code language="js">
|
|
177
|
+
<template>
|
|
178
|
+
...
|
|
179
|
+
theme: {
|
|
180
|
+
borderRadius: {
|
|
181
|
+
DEFAULT: "var(--sc-rounded)",
|
|
182
|
+
none: "0",
|
|
183
|
+
sm: "var(--sc-rounded-sm)",
|
|
184
|
+
md: "var(--sc-rounded-md)",
|
|
185
|
+
lg: "var(--sc-rounded-lg)",
|
|
186
|
+
xl: "var(--sc-rounded-xl)",
|
|
187
|
+
full: "9999px",
|
|
188
|
+
},
|
|
189
|
+
boxShadow: {
|
|
190
|
+
DEFAULT: "var(--sc-shadow)",
|
|
191
|
+
none: "none",
|
|
192
|
+
sm: "var(--sc-shadow-sm)",
|
|
193
|
+
md: "var(--sc-shadow-md)",
|
|
194
|
+
lg: "var(--sc-shadow-lg)",
|
|
195
|
+
xl: "var(--sc-shadow-xl)",
|
|
196
|
+
},
|
|
197
|
+
colors: {
|
|
198
|
+
transparent: "transparent",
|
|
199
|
+
current: "currentColor",
|
|
200
|
+
content: "var(--sc-base-content)",
|
|
201
|
+
base: "var(--sc-base)",
|
|
202
|
+
neutral: {
|
|
203
|
+
0: "var(--sc-base)",
|
|
204
|
+
50: "var(--sc-base-50)",
|
|
205
|
+
100: "var(--sc-base-100)",
|
|
206
|
+
200: "var(--sc-base-200)",
|
|
207
|
+
300: "var(--sc-base-300)",
|
|
208
|
+
400: "var(--sc-base-400)",
|
|
209
|
+
500: "var(--sc-base-500)",
|
|
210
|
+
600: "var(--sc-base-600)",
|
|
211
|
+
700: "var(--sc-base-700)",
|
|
212
|
+
800: "var(--sc-base-800)",
|
|
213
|
+
900: "var(--sc-base-900)",
|
|
214
|
+
content: "var(--sc-base)",
|
|
215
|
+
},
|
|
216
|
+
primary: {
|
|
217
|
+
DEFAULT: "var(--sc-primary)",
|
|
218
|
+
content: "var(--sc-primary-content)",
|
|
219
|
+
},
|
|
220
|
+
success: {
|
|
221
|
+
DEFAULT: "var(--sc-success)",
|
|
222
|
+
content: "var(--sc-success-content)",
|
|
223
|
+
},
|
|
224
|
+
danger: {
|
|
225
|
+
DEFAULT: "var(--sc-danger)",
|
|
226
|
+
content: "var(--sc-danger-content)",
|
|
227
|
+
},
|
|
228
|
+
warning: {
|
|
229
|
+
DEFAULT: "var(--sc-warning)",
|
|
230
|
+
content: "var(--sc-warning-content)",
|
|
231
|
+
},
|
|
232
|
+
info: {
|
|
233
|
+
DEFAULT: "var(--sc-info)",
|
|
234
|
+
content: "var(--sc-info-content)",
|
|
235
|
+
},
|
|
236
|
+
contrast: {
|
|
237
|
+
DEFAULT: "var(--sc-contrast)",
|
|
238
|
+
content: "var(--sc-contrast-content)",
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
extend: {
|
|
242
|
+
borderWidth: {
|
|
243
|
+
DEFAULT: "var(--sc-border-width)",
|
|
244
|
+
},
|
|
245
|
+
fontFamily: {
|
|
246
|
+
headings: ["var(--sc-headings-font-family, var(--sc-font-family-base, sans-serif))"],
|
|
247
|
+
body: ["var(--sc-font-family-base)"],
|
|
248
|
+
monospace: ["var(--sc-font-family-monospace, monospace)"],
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
</template>
|
|
252
|
+
</sonic-code>
|
|
253
|
+
|