@ds-mo/ui 9.2.1 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/.build-stamp +1 -1
- package/dist/agent-patterns.json +1 -1
- package/dist/agent.json +384 -135
- package/dist/angular/boolean-value-accessor.js +3 -3
- package/dist/angular/ds-agent-activity.js +3 -3
- package/dist/angular/ds-agent-response.js +3 -3
- package/dist/angular/ds-agent-source-list.js +3 -3
- package/dist/angular/ds-agent-tool-call.js +3 -3
- package/dist/angular/ds-app-shell.js +3 -3
- package/dist/angular/ds-attachment-list.js +3 -3
- package/dist/angular/ds-avatar.js +3 -3
- package/dist/angular/ds-badge.js +3 -3
- package/dist/angular/ds-bar-nav.js +3 -3
- package/dist/angular/ds-button-filled.js +3 -3
- package/dist/angular/ds-button-unfilled.js +3 -3
- package/dist/angular/ds-card-data-viz-donut.js +3 -3
- package/dist/angular/ds-card-setting.d.ts +5 -4
- package/dist/angular/ds-card-setting.js +6 -6
- package/dist/angular/ds-card-shell-data-viz.js +3 -3
- package/dist/angular/ds-chart-bar.js +3 -3
- package/dist/angular/ds-chart-donut.js +3 -3
- package/dist/angular/ds-chart-legend.js +3 -3
- package/dist/angular/ds-chart-line.js +3 -3
- package/dist/angular/ds-checkbox.js +3 -3
- package/dist/angular/ds-chip.js +3 -3
- package/dist/angular/ds-code-block.js +3 -3
- package/dist/angular/ds-conversation-list-item.js +3 -3
- package/dist/angular/ds-conversation-list-section.js +3 -3
- package/dist/angular/ds-conversation-list.js +3 -3
- package/dist/angular/ds-divider.js +3 -3
- package/dist/angular/ds-empty-state.js +3 -3
- package/dist/angular/ds-field.js +3 -3
- package/dist/angular/ds-icon.js +3 -3
- package/dist/angular/ds-input.js +3 -3
- package/dist/angular/ds-loader.js +3 -3
- package/dist/angular/ds-markdown.js +3 -3
- package/dist/angular/ds-menu.js +3 -3
- package/dist/angular/ds-message-bubble.js +3 -3
- package/dist/angular/ds-message-composer.js +3 -3
- package/dist/angular/ds-message-scroller.js +3 -3
- package/dist/angular/ds-message.js +3 -3
- package/dist/angular/ds-modal.d.ts +12 -3
- package/dist/angular/ds-modal.js +9 -6
- package/dist/angular/ds-panel-nav.js +3 -3
- package/dist/angular/ds-panel-sub-nav.js +3 -3
- package/dist/angular/ds-panel-tool-header.js +3 -3
- package/dist/angular/ds-panel-tool-search.js +3 -3
- package/dist/angular/ds-panel-tools.js +3 -3
- package/dist/angular/ds-radio.js +3 -3
- package/dist/angular/ds-select-multi.js +3 -3
- package/dist/angular/ds-select.js +3 -3
- package/dist/angular/ds-shell-gradient-picker.js +3 -3
- package/dist/angular/ds-shell-gradient-swatch.js +3 -3
- package/dist/angular/ds-skeleton.js +3 -3
- package/dist/angular/ds-slider.js +3 -3
- package/dist/angular/ds-swatch-picker.js +3 -3
- package/dist/angular/ds-switch.js +3 -3
- package/dist/angular/ds-tab-group.js +3 -3
- package/dist/angular/ds-tag.js +3 -3
- package/dist/angular/ds-text.js +3 -3
- package/dist/angular/ds-toast.d.ts +22 -0
- package/dist/angular/{ds-banner.js → ds-toast.js} +21 -15
- package/dist/angular/ds-tooltip-data-viz.js +3 -3
- package/dist/angular/ds-tooltip.js +3 -3
- package/dist/angular/index.d.ts +1 -1
- package/dist/angular/index.js +1 -2
- package/dist/angular/proxies.d.ts +1 -2
- package/dist/angular/proxies.js +1 -2
- package/dist/angular/radio-value-accessor.js +3 -3
- package/dist/angular/select-value-accessor.js +3 -3
- package/dist/angular/text-value-accessor.js +3 -3
- package/dist/angular/value-accessor.js +3 -3
- package/dist/components/ds-agent-activity.js +1 -1
- package/dist/components/ds-agent-response.js +1 -1
- package/dist/components/ds-agent-response.js.map +1 -1
- package/dist/components/ds-agent-source-list.js +1 -1
- package/dist/components/ds-agent-tool-call.js +1 -1
- package/dist/components/ds-app-shell.js +1 -1
- package/dist/components/ds-attachment-list.js +1 -1
- package/dist/components/ds-avatar.js +1 -1
- package/dist/components/ds-badge.js +1 -1
- package/dist/components/ds-bar-nav.js +1 -1
- package/dist/components/ds-button-filled.js +1 -1
- package/dist/components/ds-button-unfilled.js +1 -1
- package/dist/components/ds-card-data-viz-donut.js +1 -1
- package/dist/components/ds-card-data-viz-donut.js.map +1 -1
- package/dist/components/ds-card-setting.js +1 -1
- package/dist/components/ds-card-setting.js.map +1 -1
- package/dist/components/ds-card-shell-data-viz.js +1 -1
- package/dist/components/ds-chart-bar.js +1 -1
- package/dist/components/ds-chart-donut.js +1 -1
- package/dist/components/ds-chart-legend.js +1 -1
- package/dist/components/ds-chart-line.js +1 -1
- package/dist/components/ds-checkbox.js +1 -1
- package/dist/components/ds-chip.js +1 -1
- package/dist/components/ds-code-block.js +1 -1
- package/dist/components/ds-conversation-list-item.js +1 -1
- package/dist/components/ds-conversation-list-item.js.map +1 -1
- package/dist/components/ds-conversation-list-section.js +1 -1
- package/dist/components/ds-conversation-list.js +1 -1
- package/dist/components/ds-divider.js +1 -1
- package/dist/components/ds-empty-state.js +1 -1
- package/dist/components/ds-field.js +1 -1
- package/dist/components/ds-icon.js +1 -1
- package/dist/components/ds-input.js +1 -1
- package/dist/components/ds-markdown.js +1 -1
- package/dist/components/ds-menu.js +1 -1
- package/dist/components/ds-message-bubble.js +1 -1
- package/dist/components/ds-message-composer.js +1 -1
- package/dist/components/ds-message-composer.js.map +1 -1
- package/dist/components/ds-message-scroller.js +1 -1
- package/dist/components/ds-message-scroller.js.map +1 -1
- package/dist/components/ds-message.js +1 -1
- package/dist/components/ds-modal.js +1 -1
- package/dist/components/ds-modal.js.map +1 -1
- package/dist/components/ds-panel-nav.js +1 -1
- package/dist/components/ds-panel-sub-nav.js +1 -1
- package/dist/components/ds-panel-tool-header.js +1 -1
- package/dist/components/ds-panel-tool-search.js +1 -1
- package/dist/components/ds-panel-tools.js +1 -1
- package/dist/components/ds-radio.js +1 -1
- package/dist/components/ds-select-multi.js +1 -1
- package/dist/components/ds-select.js +1 -1
- package/dist/components/ds-shell-gradient-picker.js +1 -1
- package/dist/components/ds-shell-gradient-picker.js.map +1 -1
- package/dist/components/ds-shell-gradient-swatch.js +1 -1
- package/dist/components/ds-skeleton.js +1 -1
- package/dist/components/ds-slider.js +1 -1
- package/dist/components/ds-slider.js.map +1 -1
- package/dist/components/ds-swatch-picker.js +1 -1
- package/dist/components/ds-switch.js +1 -1
- package/dist/components/ds-tab-group.js +1 -1
- package/dist/components/ds-tag.js +1 -1
- package/dist/components/ds-text.js +1 -1
- package/dist/components/{ds-card.d.ts → ds-toast.d.ts} +4 -4
- package/dist/components/ds-toast.js +2 -0
- package/dist/components/ds-toast.js.map +1 -0
- package/dist/components/ds-tooltip-data-viz.js +1 -1
- package/dist/components/ds-tooltip.js +1 -1
- package/dist/components/{p-DnMCRAwx.js → p-0kEg-Z4f.js} +2 -2
- package/dist/components/{p-Cijzn3YQ.js → p-B4RQoNmL.js} +2 -2
- package/dist/components/p-B8C_yfLQ.js +2 -0
- package/dist/components/p-B8C_yfLQ.js.map +1 -0
- package/dist/components/{p-BHpWYKtP.js → p-BJUcsBHt.js} +2 -2
- package/dist/components/{p-DaQ0ZE_V.js → p-BTo4pNdp.js} +2 -2
- package/dist/components/p-Bet_UjML.js +2 -0
- package/dist/components/{p-CJlgONwR.js.map → p-Bet_UjML.js.map} +1 -1
- package/dist/components/{p-Ci_nVk5P.js → p-BkwBtZs3.js} +2 -2
- package/dist/components/{p-Dst-OliP.js → p-CKnoWZd9.js} +2 -2
- package/dist/components/{p-BRfOCc_h.js → p-CLn7QnE0.js} +2 -2
- package/dist/components/{p-kezp2_Xu.js → p-CPPAndX2.js} +2 -2
- package/dist/components/{p-xB0GPG3-.js → p-CS12e52R.js} +2 -2
- package/dist/components/{p-BSOZXagj.js → p-CZZYGqKz.js} +2 -2
- package/dist/components/p-C_0Q8Cnp.js +2 -0
- package/dist/components/p-C_0Q8Cnp.js.map +1 -0
- package/dist/components/{p-DiooIO2B.js → p-CxyjoTN1.js} +2 -2
- package/dist/components/p-CyoHRqy6.js +2 -0
- package/dist/components/p-CyoHRqy6.js.map +1 -0
- package/dist/components/p-DBJ2I3mH.js +2 -0
- package/dist/components/p-DBJ2I3mH.js.map +1 -0
- package/dist/components/p-DM-95BX1.js +2 -0
- package/dist/components/p-DM-95BX1.js.map +1 -0
- package/dist/components/{p-T0Mzhv3-.js → p-DZAtgSZo.js} +2 -2
- package/dist/components/{p-CeFBA7Dx.js → p-Dh4q5TSS.js} +2 -2
- package/dist/components/{p-Dj5MejHv.js → p-DhsO0939.js} +2 -2
- package/dist/components/{p-CiwdnKKp.js → p-DrDHC7V6.js} +2 -2
- package/dist/components/{p-CblAABEo.js → p-DsbhBb5F.js} +2 -2
- package/dist/components/p-DuNZGFkV.js +2 -0
- package/dist/components/p-DuNZGFkV.js.map +1 -0
- package/dist/components/{p-B1pWGQn1.js → p-P_4vE1ub.js} +2 -2
- package/dist/docs/components.json +447 -515
- package/dist/framework/select-multi-value-accessor.js +3 -3
- package/dist/lib/toast/index.d.ts +2 -0
- package/dist/lib/toast/index.js +158 -0
- package/dist/lib/toast/index.js.map +7 -0
- package/dist/lib/toast/toast-manager.d.ts +3 -0
- package/dist/lib/toast/toast-types.d.ts +85 -0
- package/dist/mcp-data/registry/agent-activity.json +1 -1
- package/dist/mcp-data/registry/agent-response.json +2 -2
- package/dist/mcp-data/registry/agent-source-list.json +1 -1
- package/dist/mcp-data/registry/agent-tool-call.json +1 -1
- package/dist/mcp-data/registry/app-shell.json +1 -1
- package/dist/mcp-data/registry/attachment-list.json +1 -1
- package/dist/mcp-data/registry/avatar.json +1 -1
- package/dist/mcp-data/registry/badge.json +1 -1
- package/dist/mcp-data/registry/bar-nav.json +1 -1
- package/dist/mcp-data/registry/button-filled.json +1 -1
- package/dist/mcp-data/registry/button-unfilled.json +1 -1
- package/dist/mcp-data/registry/card-data-viz-donut.json +2 -2
- package/dist/mcp-data/registry/card-setting.json +99 -13
- package/dist/mcp-data/registry/card-shell-data-viz.json +8 -8
- package/dist/mcp-data/registry/chart-bar.json +1 -1
- package/dist/mcp-data/registry/chart-donut.json +1 -1
- package/dist/mcp-data/registry/chart-legend.json +1 -1
- package/dist/mcp-data/registry/chart-line.json +1 -1
- package/dist/mcp-data/registry/checkbox.json +1 -1
- package/dist/mcp-data/registry/chip.json +1 -1
- package/dist/mcp-data/registry/code-block.json +1 -1
- package/dist/mcp-data/registry/conversation-list-item.json +4 -4
- package/dist/mcp-data/registry/conversation-list-section.json +1 -1
- package/dist/mcp-data/registry/conversation-list.json +1 -1
- package/dist/mcp-data/registry/divider.json +5 -5
- package/dist/mcp-data/registry/empty-state.json +1 -1
- package/dist/mcp-data/registry/field.json +1 -1
- package/dist/mcp-data/registry/icon.json +2 -2
- package/dist/mcp-data/registry/input.json +1 -1
- package/dist/mcp-data/registry/loader.json +1 -1
- package/dist/mcp-data/registry/markdown.json +1 -1
- package/dist/mcp-data/registry/menu.json +1 -1
- package/dist/mcp-data/registry/message-bubble.json +7 -7
- package/dist/mcp-data/registry/message-composer.json +2 -2
- package/dist/mcp-data/registry/message-scroller.json +1 -1
- package/dist/mcp-data/registry/message.json +7 -6
- package/dist/mcp-data/registry/modal.json +154 -24
- package/dist/mcp-data/registry/panel-nav.json +1 -1
- package/dist/mcp-data/registry/panel-sub-nav.json +2 -2
- package/dist/mcp-data/registry/panel-tool-header.json +1 -1
- package/dist/mcp-data/registry/panel-tool-search.json +1 -1
- package/dist/mcp-data/registry/panel-tools.json +1 -1
- package/dist/mcp-data/registry/radio.json +1 -1
- package/dist/mcp-data/registry/registry.json +387 -141
- package/dist/mcp-data/registry/select-multi.json +1 -1
- package/dist/mcp-data/registry/select.json +1 -1
- package/dist/mcp-data/registry/shell-gradient-picker.json +1 -1
- package/dist/mcp-data/registry/shell-gradient-swatch.json +1 -1
- package/dist/mcp-data/registry/skeleton.json +2 -2
- package/dist/mcp-data/registry/slider.json +1 -1
- package/dist/mcp-data/registry/swatch-picker.json +1 -1
- package/dist/mcp-data/registry/switch.json +1 -1
- package/dist/mcp-data/registry/tab-group.json +1 -1
- package/dist/mcp-data/registry/tag.json +2 -2
- package/dist/mcp-data/registry/text.json +2 -2
- package/dist/mcp-data/registry/toast.json +318 -0
- package/dist/mcp-data/registry/tooltip-data-viz.json +1 -1
- package/dist/mcp-data/registry/tooltip.json +1 -1
- package/dist/react/components.d.ts +1 -2
- package/dist/react/components.js +1 -2
- package/dist/react/ds-card-setting.d.ts +2 -2
- package/dist/react/ds-card-setting.js +1 -1
- package/dist/react/ds-modal.d.ts +3 -2
- package/dist/react/ds-modal.js +4 -1
- package/dist/react/ds-toast.d.ts +14 -0
- package/dist/react/ds-toast.js +16 -0
- package/dist/types/components/CardSetting/CardSetting.d.ts +9 -6
- package/dist/types/components/CardSetting/index.d.ts +1 -1
- package/dist/types/components/MessageBubble/MessageBubble.d.ts +1 -1
- package/dist/types/components/Modal/Modal.d.ts +21 -18
- package/dist/types/components/Toast/Toast.d.ts +106 -0
- package/dist/types/components/Toast/index.d.ts +2 -0
- package/dist/types/components.d.ts +136 -180
- package/dist/types/toast/index.d.ts +3 -0
- package/dist/types/toast/toast-manager.d.ts +4 -0
- package/dist/types/toast/toast-types.d.ts +86 -0
- package/package.json +12 -8
- package/dist/angular/ds-banner.d.ts +0 -15
- package/dist/angular/ds-card.d.ts +0 -12
- package/dist/angular/ds-card.js +0 -38
- package/dist/components/ds-banner.d.ts +0 -11
- package/dist/components/ds-banner.js +0 -2
- package/dist/components/ds-banner.js.map +0 -1
- package/dist/components/ds-card.js +0 -2
- package/dist/components/ds-card.js.map +0 -1
- package/dist/components/p-BO6C8abO.js +0 -2
- package/dist/components/p-BO6C8abO.js.map +0 -1
- package/dist/components/p-CBYuvZKM.js +0 -2
- package/dist/components/p-CBYuvZKM.js.map +0 -1
- package/dist/components/p-CJlgONwR.js +0 -2
- package/dist/components/p-CWNdl52Y.js +0 -2
- package/dist/components/p-CWNdl52Y.js.map +0 -1
- package/dist/components/p-CiKGqsA2.js +0 -2
- package/dist/components/p-CiKGqsA2.js.map +0 -1
- package/dist/components/p-DFxqk71w.js +0 -2
- package/dist/components/p-DFxqk71w.js.map +0 -1
- package/dist/components/p-drBA73M_.js +0 -2
- package/dist/components/p-drBA73M_.js.map +0 -1
- package/dist/mcp-data/registry/banner.json +0 -206
- package/dist/mcp-data/registry/card.json +0 -126
- package/dist/react/ds-banner.d.ts +0 -12
- package/dist/react/ds-banner.js +0 -12
- package/dist/react/ds-card.d.ts +0 -9
- package/dist/react/ds-card.js +0 -12
- package/dist/types/components/Banner/Banner.d.ts +0 -31
- package/dist/types/components/Card/Card.d.ts +0 -21
- package/dist/types/components/Card/index.d.ts +0 -2
- /package/dist/components/{p-DnMCRAwx.js.map → p-0kEg-Z4f.js.map} +0 -0
- /package/dist/components/{p-Cijzn3YQ.js.map → p-B4RQoNmL.js.map} +0 -0
- /package/dist/components/{p-BHpWYKtP.js.map → p-BJUcsBHt.js.map} +0 -0
- /package/dist/components/{p-DaQ0ZE_V.js.map → p-BTo4pNdp.js.map} +0 -0
- /package/dist/components/{p-Ci_nVk5P.js.map → p-BkwBtZs3.js.map} +0 -0
- /package/dist/components/{p-Dst-OliP.js.map → p-CKnoWZd9.js.map} +0 -0
- /package/dist/components/{p-BRfOCc_h.js.map → p-CLn7QnE0.js.map} +0 -0
- /package/dist/components/{p-kezp2_Xu.js.map → p-CPPAndX2.js.map} +0 -0
- /package/dist/components/{p-xB0GPG3-.js.map → p-CS12e52R.js.map} +0 -0
- /package/dist/components/{p-BSOZXagj.js.map → p-CZZYGqKz.js.map} +0 -0
- /package/dist/components/{p-DiooIO2B.js.map → p-CxyjoTN1.js.map} +0 -0
- /package/dist/components/{p-T0Mzhv3-.js.map → p-DZAtgSZo.js.map} +0 -0
- /package/dist/components/{p-CeFBA7Dx.js.map → p-Dh4q5TSS.js.map} +0 -0
- /package/dist/components/{p-Dj5MejHv.js.map → p-DhsO0939.js.map} +0 -0
- /package/dist/components/{p-CiwdnKKp.js.map → p-DrDHC7V6.js.map} +0 -0
- /package/dist/components/{p-CblAABEo.js.map → p-DsbhBb5F.js.map} +0 -0
- /package/dist/components/{p-B1pWGQn1.js.map → p-P_4vE1ub.js.map} +0 -0
package/dist/agent.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
3
|
"package": "@ds-mo/ui",
|
|
4
|
-
"packageVersion": "
|
|
4
|
+
"packageVersion": "10.0.0",
|
|
5
5
|
"kind": "components",
|
|
6
6
|
"entries": [
|
|
7
7
|
{
|
|
@@ -724,66 +724,6 @@
|
|
|
724
724
|
"text"
|
|
725
725
|
]
|
|
726
726
|
},
|
|
727
|
-
{
|
|
728
|
-
"id": "component:ds-banner",
|
|
729
|
-
"tag": "ds-banner",
|
|
730
|
-
"name": "banner",
|
|
731
|
-
"title": "Banner",
|
|
732
|
-
"summary": "Intent-colored message bar. Supports floating toast mode with auto-dismiss and fade-out animation.",
|
|
733
|
-
"intentStatus": "migration-pending",
|
|
734
|
-
"intent": null,
|
|
735
|
-
"api": {
|
|
736
|
-
"props": {
|
|
737
|
-
"contrast": {
|
|
738
|
-
"type": "BannerContrast",
|
|
739
|
-
"required": false
|
|
740
|
-
},
|
|
741
|
-
"dismissLabel": {
|
|
742
|
-
"type": "string",
|
|
743
|
-
"required": false
|
|
744
|
-
},
|
|
745
|
-
"floating": {
|
|
746
|
-
"type": "boolean",
|
|
747
|
-
"required": false
|
|
748
|
-
},
|
|
749
|
-
"header": {
|
|
750
|
-
"type": "boolean",
|
|
751
|
-
"required": false
|
|
752
|
-
},
|
|
753
|
-
"intent": {
|
|
754
|
-
"type": "BannerIntent",
|
|
755
|
-
"required": false
|
|
756
|
-
},
|
|
757
|
-
"message": {
|
|
758
|
-
"type": "string",
|
|
759
|
-
"required": false
|
|
760
|
-
},
|
|
761
|
-
"showDismiss": {
|
|
762
|
-
"type": "boolean",
|
|
763
|
-
"required": false
|
|
764
|
-
}
|
|
765
|
-
},
|
|
766
|
-
"events": [
|
|
767
|
-
{
|
|
768
|
-
"name": "dsDismiss",
|
|
769
|
-
"detail": "void"
|
|
770
|
-
}
|
|
771
|
-
],
|
|
772
|
-
"slots": []
|
|
773
|
-
},
|
|
774
|
-
"exports": {
|
|
775
|
-
"customElement": "ds-banner",
|
|
776
|
-
"react": "DsBanner",
|
|
777
|
-
"angular": "DsBanner"
|
|
778
|
-
},
|
|
779
|
-
"dependencies": [
|
|
780
|
-
"@ds-mo/ui",
|
|
781
|
-
"@ds-mo/tokens"
|
|
782
|
-
],
|
|
783
|
-
"componentDependencies": [
|
|
784
|
-
"text"
|
|
785
|
-
]
|
|
786
|
-
},
|
|
787
727
|
{
|
|
788
728
|
"id": "component:ds-bar-nav",
|
|
789
729
|
"tag": "ds-bar-nav",
|
|
@@ -1292,45 +1232,6 @@
|
|
|
1292
1232
|
"text"
|
|
1293
1233
|
]
|
|
1294
1234
|
},
|
|
1295
|
-
{
|
|
1296
|
-
"id": "component:ds-card",
|
|
1297
|
-
"tag": "ds-card",
|
|
1298
|
-
"name": "card",
|
|
1299
|
-
"title": "Card",
|
|
1300
|
-
"summary": "General and settings-compatible card chrome — width + matching min-height tokens, header (title + actions slot), and a flex body that fills leftover space.",
|
|
1301
|
-
"intentStatus": "migration-pending",
|
|
1302
|
-
"intent": null,
|
|
1303
|
-
"api": {
|
|
1304
|
-
"props": {
|
|
1305
|
-
"appearance": {
|
|
1306
|
-
"type": "CardAppearance",
|
|
1307
|
-
"required": false
|
|
1308
|
-
},
|
|
1309
|
-
"cardWidth": {
|
|
1310
|
-
"type": "CardWidth",
|
|
1311
|
-
"required": false
|
|
1312
|
-
},
|
|
1313
|
-
"heading": {
|
|
1314
|
-
"type": "string",
|
|
1315
|
-
"required": true
|
|
1316
|
-
}
|
|
1317
|
-
},
|
|
1318
|
-
"events": [],
|
|
1319
|
-
"slots": []
|
|
1320
|
-
},
|
|
1321
|
-
"exports": {
|
|
1322
|
-
"customElement": "ds-card",
|
|
1323
|
-
"react": "DsCard",
|
|
1324
|
-
"angular": "DsCard"
|
|
1325
|
-
},
|
|
1326
|
-
"dependencies": [
|
|
1327
|
-
"@ds-mo/ui",
|
|
1328
|
-
"@ds-mo/tokens"
|
|
1329
|
-
],
|
|
1330
|
-
"componentDependencies": [
|
|
1331
|
-
"text"
|
|
1332
|
-
]
|
|
1333
|
-
},
|
|
1334
1235
|
{
|
|
1335
1236
|
"id": "component:ds-card-data-viz-donut",
|
|
1336
1237
|
"tag": "ds-card-data-viz-donut",
|
|
@@ -1381,9 +1282,95 @@
|
|
|
1381
1282
|
"tag": "ds-card-setting",
|
|
1382
1283
|
"name": "card-setting",
|
|
1383
1284
|
"title": "CardSetting",
|
|
1384
|
-
"summary": "
|
|
1385
|
-
"intentStatus": "
|
|
1386
|
-
"intent":
|
|
1285
|
+
"summary": "Persistent settings-section surface with a heading, controlled view/edit chrome, fixed edit-save-cancel actions, and application-owned body content.",
|
|
1286
|
+
"intentStatus": "complete",
|
|
1287
|
+
"intent": {
|
|
1288
|
+
"audience": "general",
|
|
1289
|
+
"status": "stable",
|
|
1290
|
+
"summary": "Persistent settings-section surface with a heading, controlled view/edit chrome, fixed edit-save-cancel actions, and application-owned body content.",
|
|
1291
|
+
"useWhen": [
|
|
1292
|
+
"A settings page needs a persistent section that switches between read-only and editable content.",
|
|
1293
|
+
"The parent can control one active editing section and owns validation, persistence, cancellation, and body content.",
|
|
1294
|
+
"The section uses the standard Pencil, Save, and Cancel header workflow."
|
|
1295
|
+
],
|
|
1296
|
+
"avoidWhen": [
|
|
1297
|
+
"The surface contains a chart, legend, metric visualization, or other data-visualization composition.",
|
|
1298
|
+
"The content is a general-purpose read-only card with no settings edit workflow.",
|
|
1299
|
+
"The task must block the rest of the interface or requires confirmation in a modal.",
|
|
1300
|
+
"Several sections must remain editable at the same time.",
|
|
1301
|
+
"The header requires custom actions beyond the fixed edit-save-cancel workflow."
|
|
1302
|
+
],
|
|
1303
|
+
"alternatives": [
|
|
1304
|
+
{
|
|
1305
|
+
"when": "The surface contains a chart or specialized data-visualization composition.",
|
|
1306
|
+
"component": "component:ds-card-shell-data-viz",
|
|
1307
|
+
"reason": "CardShellDataViz owns the independently evolving data-visualization shell contract."
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"when": "The task must block the interface for one focused decision or short workflow.",
|
|
1311
|
+
"component": "component:ds-modal",
|
|
1312
|
+
"reason": "Modal provides top-layer focus containment and explicit blocking-task dismissal."
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
"when": "Only one labeled form control is needed without a section surface.",
|
|
1316
|
+
"component": "component:ds-field",
|
|
1317
|
+
"reason": "Field provides the control label, supporting copy, and validation relationship without card chrome."
|
|
1318
|
+
}
|
|
1319
|
+
],
|
|
1320
|
+
"commonlyComposedWith": [
|
|
1321
|
+
"component:ds-field",
|
|
1322
|
+
"component:ds-input",
|
|
1323
|
+
"component:ds-select",
|
|
1324
|
+
"component:ds-switch",
|
|
1325
|
+
"component:ds-text"
|
|
1326
|
+
],
|
|
1327
|
+
"accessibility": [
|
|
1328
|
+
"Provide a concise heading that identifies the settings section; CardSetting renders it as an h2.",
|
|
1329
|
+
"Edit, Save, and Cancel are icon-only controls with localized accessible labels supplied by the matching label props. When several sections share a page, include the section name in each label.",
|
|
1330
|
+
"The owner must expose persistent field labels, descriptions, and validation messages inside the body.",
|
|
1331
|
+
"Save must not remove validation errors or exit editing until the parent accepts the action and updates the controlled editing state.",
|
|
1332
|
+
"Cancel must restore or retain the last persisted values according to product policy before the parent exits editing.",
|
|
1333
|
+
"Keep only one CardSetting in edit mode so keyboard and screen-reader users have one unambiguous set of Save and Cancel actions.",
|
|
1334
|
+
"When another section requests editing, resolve dirty changes in the current section before switching; never silently discard user input."
|
|
1335
|
+
],
|
|
1336
|
+
"states": [
|
|
1337
|
+
"The editing property is controlled; CardSetting never changes it internally.",
|
|
1338
|
+
"dsAction emits edit, save, or cancel with the original pointer event. The parent decides whether and when editing changes.",
|
|
1339
|
+
"When another section requests edit, the parent keeps one active section and resolves any dirty current section before switching.",
|
|
1340
|
+
"The parent owns read-only versus editable body composition, dirty state, validation, persistence, loading, success, and error consequences.",
|
|
1341
|
+
"A save request keeps the section editing while validation or persistence is pending; the parent exits only after success.",
|
|
1342
|
+
"A cancel request does not persist changes; the parent restores its chosen value snapshot and exits editing."
|
|
1343
|
+
],
|
|
1344
|
+
"responsiveBehavior": [
|
|
1345
|
+
"Choose sm, md, or lg from the parent layout; each width uses its matching token-based minimum height.",
|
|
1346
|
+
"The surface never exceeds its parent width, while the parent owns wrapping, columns, stacking, and breakpoint changes.",
|
|
1347
|
+
"At narrow widths, keep the fixed header actions visible and let application-owned body layouts collapse before allowing horizontal overflow."
|
|
1348
|
+
],
|
|
1349
|
+
"frameworkCaveats": {
|
|
1350
|
+
"customElements": [
|
|
1351
|
+
"Set editing as a JavaScript property and inspect dsAction.detail.action before updating the controlled state.",
|
|
1352
|
+
"When one section emits edit, update every sibling CardSetting so only the requested section remains editing."
|
|
1353
|
+
],
|
|
1354
|
+
"react": [
|
|
1355
|
+
"Pass editing from parent state and inspect onDsAction event detail; do not treat Save as successful until validation and persistence complete.",
|
|
1356
|
+
"Store one active section id and derive each CardSetting editing prop from that id."
|
|
1357
|
+
],
|
|
1358
|
+
"angular": [
|
|
1359
|
+
"Bind [editing] and inspect $event.detail.action from (dsAction); do not treat Save as successful until validation and persistence complete.",
|
|
1360
|
+
"Store one active section id and derive each CardSetting editing binding from that id."
|
|
1361
|
+
]
|
|
1362
|
+
},
|
|
1363
|
+
"references": [
|
|
1364
|
+
{
|
|
1365
|
+
"label": "Storybook controlled and single-edit examples",
|
|
1366
|
+
"path": "src/wc/components/CardSetting/CardSetting.stories.ts"
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
"label": "Cross-browser shell and action coverage",
|
|
1370
|
+
"path": "tests/e2e/card-setting.spec.ts"
|
|
1371
|
+
}
|
|
1372
|
+
]
|
|
1373
|
+
},
|
|
1387
1374
|
"api": {
|
|
1388
1375
|
"props": {
|
|
1389
1376
|
"cancelLabel": {
|
|
@@ -1413,8 +1400,8 @@
|
|
|
1413
1400
|
},
|
|
1414
1401
|
"events": [
|
|
1415
1402
|
{
|
|
1416
|
-
"name": "
|
|
1417
|
-
"detail": "
|
|
1403
|
+
"name": "dsAction",
|
|
1404
|
+
"detail": "CardSettingActionDetail"
|
|
1418
1405
|
}
|
|
1419
1406
|
],
|
|
1420
1407
|
"slots": []
|
|
@@ -1431,7 +1418,7 @@
|
|
|
1431
1418
|
"componentDependencies": [
|
|
1432
1419
|
"button-filled",
|
|
1433
1420
|
"button-unfilled",
|
|
1434
|
-
"
|
|
1421
|
+
"text"
|
|
1435
1422
|
]
|
|
1436
1423
|
},
|
|
1437
1424
|
{
|
|
@@ -1439,27 +1426,27 @@
|
|
|
1439
1426
|
"tag": "ds-card-shell-data-viz",
|
|
1440
1427
|
"name": "card-shell-data-viz",
|
|
1441
1428
|
"title": "CardShellDataViz",
|
|
1442
|
-
"summary": "Dedicated header, action, sizing, and body chrome for data-visualization cards whose layouts
|
|
1429
|
+
"summary": "Dedicated header, action, sizing, and body chrome for data-visualization cards whose layouts evolve independently from settings sections.",
|
|
1443
1430
|
"intentStatus": "complete",
|
|
1444
1431
|
"intent": {
|
|
1445
1432
|
"audience": "specialized",
|
|
1446
1433
|
"status": "experimental",
|
|
1447
|
-
"summary": "Dedicated header, action, sizing, and body chrome for data-visualization cards whose layouts
|
|
1434
|
+
"summary": "Dedicated header, action, sizing, and body chrome for data-visualization cards whose layouts evolve independently from settings sections.",
|
|
1448
1435
|
"useWhen": [
|
|
1449
1436
|
"A card contains a chart, data-visualization legend, metric visualization, or a specialized data-viz composition.",
|
|
1450
1437
|
"A data-visualization card needs a heading and optional header actions while retaining a flexible body for its composing component.",
|
|
1451
|
-
"Several chart-specific cards need one shell boundary that can evolve without changing
|
|
1438
|
+
"Several chart-specific cards need one shell boundary that can evolve without changing settings sections."
|
|
1452
1439
|
],
|
|
1453
1440
|
"avoidWhen": [
|
|
1454
1441
|
"The card contains settings or editable form content; use the settings card composition.",
|
|
1455
|
-
"The surface is ordinary content without data visualization; use
|
|
1442
|
+
"The surface is ordinary content without data visualization; use a product-owned layout rather than data-viz card chrome.",
|
|
1456
1443
|
"The shell would own chart-specific layout, hover synchronization, legends, or empty-state policy; keep those in the composing data-viz card."
|
|
1457
1444
|
],
|
|
1458
1445
|
"alternatives": [
|
|
1459
1446
|
{
|
|
1460
|
-
"when": "The
|
|
1461
|
-
"component": "component:ds-card",
|
|
1462
|
-
"reason": "
|
|
1447
|
+
"when": "The surface contains editable settings rather than data visualization.",
|
|
1448
|
+
"component": "component:ds-card-setting",
|
|
1449
|
+
"reason": "CardSetting owns the persistent controlled settings-section workflow."
|
|
1463
1450
|
},
|
|
1464
1451
|
{
|
|
1465
1452
|
"when": "The composition is the standard donut chart plus synchronized legend.",
|
|
@@ -2184,7 +2171,7 @@
|
|
|
2184
2171
|
],
|
|
2185
2172
|
"states": [
|
|
2186
2173
|
"Rows reuse the md choice-item label/subtext recipe used by Menu, including 6px row padding, 2px text inset, and the shared content gap. The enclosing conversation-list scroll region supplies the larger 8px outer container padding.",
|
|
2187
|
-
"Busy and error are generic channel-neutral states; the owning product supplies suitable status wording.",
|
|
2174
|
+
"Busy and error are generic channel-neutral states; the owning product supplies suitable status wording. A busy row pairs its body-small status with the sm 16px Loader at an 8px gap.",
|
|
2188
2175
|
"Any positive unreadCount renders one dot on the title row rather than a visible counter; the accessible row name may still announce the exact unread quantity.",
|
|
2189
2176
|
"Hover and press use the shared interaction hover and pressed overlays. Only the selected conversation uses the persistent active fill.",
|
|
2190
2177
|
"The title uses body-medium emphasis, not title-small, and the body-small preview truncates after one line. Unread titles use primary foreground; read titles use secondary foreground.",
|
|
@@ -2350,9 +2337,9 @@
|
|
|
2350
2337
|
],
|
|
2351
2338
|
"alternatives": [
|
|
2352
2339
|
{
|
|
2353
|
-
"when": "
|
|
2354
|
-
"component": "component:ds-card",
|
|
2355
|
-
"reason": "
|
|
2340
|
+
"when": "Editable settings need an enclosing section surface and outer boundary.",
|
|
2341
|
+
"component": "component:ds-card-setting",
|
|
2342
|
+
"reason": "CardSetting owns settings-section chrome, structure, and edge treatment."
|
|
2356
2343
|
},
|
|
2357
2344
|
{
|
|
2358
2345
|
"when": "A static compact label is being used to name a group.",
|
|
@@ -2361,7 +2348,7 @@
|
|
|
2361
2348
|
}
|
|
2362
2349
|
],
|
|
2363
2350
|
"commonlyComposedWith": [
|
|
2364
|
-
"component:ds-card",
|
|
2351
|
+
"component:ds-card-setting",
|
|
2365
2352
|
"component:ds-menu",
|
|
2366
2353
|
"component:ds-panel-sub-nav"
|
|
2367
2354
|
],
|
|
@@ -3374,12 +3361,12 @@
|
|
|
3374
3361
|
"tag": "ds-message",
|
|
3375
3362
|
"name": "message",
|
|
3376
3363
|
"title": "Message",
|
|
3377
|
-
"summary": "Channel-neutral message row owning direction, grouping, author, time, delivery metadata, and accessory regions.",
|
|
3364
|
+
"summary": "Channel-neutral message row owning direction, grouping, author, time, delivery metadata, and header, footer, or action accessory regions.",
|
|
3378
3365
|
"intentStatus": "complete",
|
|
3379
3366
|
"intent": {
|
|
3380
3367
|
"audience": "general",
|
|
3381
3368
|
"status": "experimental",
|
|
3382
|
-
"summary": "Channel-neutral message row owning direction, grouping, author, time, delivery metadata, and accessory regions.",
|
|
3369
|
+
"summary": "Channel-neutral message row owning direction, grouping, author, time, delivery metadata, and header, footer, or action accessory regions.",
|
|
3383
3370
|
"useWhen": [
|
|
3384
3371
|
"A transcript contains messages that need consistent incoming, outgoing, or system layout."
|
|
3385
3372
|
],
|
|
@@ -3395,10 +3382,11 @@
|
|
|
3395
3382
|
],
|
|
3396
3383
|
"accessibility": [
|
|
3397
3384
|
"Author and time metadata remain textual when they are necessary to interpret the transcript.",
|
|
3398
|
-
"Delivery failure
|
|
3385
|
+
"Delivery failure uses negative Failed to send text in the footer while the message bubble keeps its normal outgoing treatment."
|
|
3399
3386
|
],
|
|
3400
3387
|
"states": [
|
|
3401
3388
|
"Pass an ISO timestamp. Message keeps the full value in dateTime and formats the visible value as a localized time; applications must not render a raw ISO string as visible transcript metadata.",
|
|
3389
|
+
"Visible author, bubble content, and timestamp or delivery footer use consistent 4px vertical gaps.",
|
|
3402
3390
|
"Grouping joins adjacent bubble corners, shows the incoming author only at the start, and shows delivery/time metadata only at the end. Outgoing author remains in the accessible message label without repeating a visible You label.",
|
|
3403
3391
|
"Set showAuthor false only when the product makes participant and assistant roles visually self-evident; continue passing author so the accessible message label remains specific."
|
|
3404
3392
|
],
|
|
@@ -3479,7 +3467,7 @@
|
|
|
3479
3467
|
"status": "experimental",
|
|
3480
3468
|
"summary": "Visible message content surface with a body-medium default, separated from message-row direction and metadata.",
|
|
3481
3469
|
"useWhen": [
|
|
3482
|
-
"Message content needs a primary, secondary,
|
|
3470
|
+
"Message content needs a primary, secondary, or ghost surface within a Message row.",
|
|
3483
3471
|
"Plain incoming or outgoing message copy should use the shared body-medium regular typography recipe without application styling."
|
|
3484
3472
|
],
|
|
3485
3473
|
"avoidWhen": [
|
|
@@ -3494,7 +3482,7 @@
|
|
|
3494
3482
|
"pattern:conversation"
|
|
3495
3483
|
],
|
|
3496
3484
|
"accessibility": [
|
|
3497
|
-
"Surface styling does not add semantics;
|
|
3485
|
+
"Surface styling does not add semantics; failed delivery belongs in Message metadata below the unchanged bubble rather than in an error bubble treatment."
|
|
3498
3486
|
],
|
|
3499
3487
|
"responsiveBehavior": [
|
|
3500
3488
|
"The bubble wraps content and allows wide ghost responses to use more transcript width."
|
|
@@ -3722,11 +3710,112 @@
|
|
|
3722
3710
|
"tag": "ds-modal",
|
|
3723
3711
|
"name": "modal",
|
|
3724
3712
|
"title": "Modal",
|
|
3725
|
-
"summary": "
|
|
3726
|
-
"intentStatus": "
|
|
3727
|
-
"intent":
|
|
3713
|
+
"summary": "Dismissible native top-layer dialog for a focused confirmation or short blocking task, with a fixed title-and-close header, composable content, and an optional two-action footer.",
|
|
3714
|
+
"intentStatus": "complete",
|
|
3715
|
+
"intent": {
|
|
3716
|
+
"audience": "general",
|
|
3717
|
+
"status": "stable",
|
|
3718
|
+
"summary": "Dismissible native top-layer dialog for a focused confirmation or short blocking task, with a fixed title-and-close header, composable content, and an optional two-action footer.",
|
|
3719
|
+
"useWhen": [
|
|
3720
|
+
"The user must confirm or cancel one focused decision before returning to the underlying interface.",
|
|
3721
|
+
"A short blocking task or compact form needs dialog semantics, focus containment, and explicit completion actions.",
|
|
3722
|
+
"The content can be safely dismissed through Close, Escape, or the backdrop."
|
|
3723
|
+
],
|
|
3724
|
+
"avoidWhen": [
|
|
3725
|
+
"The message is non-blocking feedback or a transient status update.",
|
|
3726
|
+
"The interaction is a contextual list of commands anchored to a trigger.",
|
|
3727
|
+
"The workflow is multi-step, long-form, or requires substantial navigation.",
|
|
3728
|
+
"Dismissal would lose work or leave an irreversible operation in an unsafe state.",
|
|
3729
|
+
"A second modal would be opened over an existing modal."
|
|
3730
|
+
],
|
|
3731
|
+
"alternatives": [
|
|
3732
|
+
{
|
|
3733
|
+
"when": "The user needs non-blocking feedback or a transient status message.",
|
|
3734
|
+
"component": "component:ds-toast",
|
|
3735
|
+
"reason": "Toast communicates transient status without trapping focus or blocking the page."
|
|
3736
|
+
},
|
|
3737
|
+
{
|
|
3738
|
+
"when": "A trigger reveals a short contextual list of commands.",
|
|
3739
|
+
"component": "component:ds-menu",
|
|
3740
|
+
"reason": "Menu provides anchored command semantics without creating a blocking dialog."
|
|
3741
|
+
},
|
|
3742
|
+
{
|
|
3743
|
+
"when": "Editable settings should remain visible without blocking the rest of the interface.",
|
|
3744
|
+
"component": "component:ds-card-setting",
|
|
3745
|
+
"reason": "CardSetting provides a persistent controlled settings workflow without modal focus containment."
|
|
3746
|
+
}
|
|
3747
|
+
],
|
|
3748
|
+
"commonlyComposedWith": [
|
|
3749
|
+
"component:ds-button-filled",
|
|
3750
|
+
"component:ds-button-unfilled",
|
|
3751
|
+
"component:ds-field",
|
|
3752
|
+
"component:ds-text"
|
|
3753
|
+
],
|
|
3754
|
+
"accessibility": [
|
|
3755
|
+
"Provide a concise visible heading; the component uses it as the dialog's accessible name.",
|
|
3756
|
+
"Give the primary explanatory copy a stable id and pass it through aria-describedby so assistive technology receives the decision context.",
|
|
3757
|
+
"Opening the native modal dialog moves focus to the header Close action, traps Tab navigation inside the top layer, and makes outside content inert.",
|
|
3758
|
+
"Close, Escape, and backdrop activation emit dsClose with close-button, escape, or backdrop reason before beginning dismissal; use the component only when every dismissal path is safe.",
|
|
3759
|
+
"After exit motion completes, the native dialog leaves the top layer, focus returns to the previously focused element, and dsAfterClose emits.",
|
|
3760
|
+
"Use visible label-only footer buttons. Keep at most two actions: one bold filled primary action followed by one bordered unfilled action, or two bordered unfilled actions.",
|
|
3761
|
+
"Use negative intent for a filled destructive action and state the irreversible consequence in the content.",
|
|
3762
|
+
"Do not open a modal from another modal; keep one blocking decision in focus at a time."
|
|
3763
|
+
],
|
|
3764
|
+
"states": [
|
|
3765
|
+
"The owner opens the modal through the open property and responds to the typed dsClose detail for application state synchronization or dismissal analytics.",
|
|
3766
|
+
"The component mutates open to false for Close, Escape, and backdrop dismissal while retaining its rendered surface through exit motion.",
|
|
3767
|
+
"The default slot owns task content; the named footer slot is optional and is hidden when no actions are assigned.",
|
|
3768
|
+
"Primary actions use a bold filled button with semantic intent. Secondary and cancel actions use bordered label-only unfilled buttons.",
|
|
3769
|
+
"The owner performs save, delete, cancel, and other product consequences before or while closing the modal."
|
|
3770
|
+
],
|
|
3771
|
+
"responsiveBehavior": [
|
|
3772
|
+
"Choose the smallest sm, md, or lg width that fits the focused task; the top-layer dialog clamps to the viewport with token-based outer space.",
|
|
3773
|
+
"Content scrolls independently when needed while the 64px header and optional 64px footer remain fixed.",
|
|
3774
|
+
"Avoid layouts whose minimum content width exceeds the narrow viewport clamp.",
|
|
3775
|
+
"The native top layer escapes transformed ancestors, clipping containers, and application stacking contexts without moving slotted content."
|
|
3776
|
+
],
|
|
3777
|
+
"frameworkCaveats": {
|
|
3778
|
+
"customElements": [
|
|
3779
|
+
"Set open as a JavaScript property when controlling the modal; inspect dsClose.detail.reason and use dsAfterClose for cleanup that must wait for exit motion and focus restoration.",
|
|
3780
|
+
"Connect the most relevant slotted explanatory text through aria-describedby.",
|
|
3781
|
+
"Footer actions are slotted application-owned controls and must implement their own product consequence."
|
|
3782
|
+
],
|
|
3783
|
+
"react": [
|
|
3784
|
+
"Pass open to DsModal, inspect onDsClose event detail, and use onDsAfterClose only for cleanup after exit motion and focus restoration.",
|
|
3785
|
+
"Connect the most relevant slotted explanatory text through aria-describedby.",
|
|
3786
|
+
"Assign footer controls with slot=\"footer\" and handle each action before updating open."
|
|
3787
|
+
],
|
|
3788
|
+
"angular": [
|
|
3789
|
+
"Bind [open], inspect $event.detail from (dsClose), and use (dsAfterClose) only for cleanup after exit motion and focus restoration.",
|
|
3790
|
+
"Connect the most relevant slotted explanatory text through aria-describedby.",
|
|
3791
|
+
"Assign footer controls with slot=\"footer\" and handle each action before updating open."
|
|
3792
|
+
]
|
|
3793
|
+
},
|
|
3794
|
+
"references": [
|
|
3795
|
+
{
|
|
3796
|
+
"label": "Storybook confirmation and footer examples",
|
|
3797
|
+
"path": "src/wc/components/Modal/Modal.stories.ts"
|
|
3798
|
+
},
|
|
3799
|
+
{
|
|
3800
|
+
"label": "Cross-browser focus, dismissal, geometry, and accessibility coverage",
|
|
3801
|
+
"path": "tests/e2e/accessibility-overlays.spec.ts"
|
|
3802
|
+
},
|
|
3803
|
+
{
|
|
3804
|
+
"label": "Reduced-motion overlay coverage",
|
|
3805
|
+
"path": "tests/e2e/reduced-motion.spec.ts"
|
|
3806
|
+
}
|
|
3807
|
+
]
|
|
3808
|
+
},
|
|
3728
3809
|
"api": {
|
|
3729
3810
|
"props": {
|
|
3811
|
+
"ariaDescribedby": {
|
|
3812
|
+
"type": "string | undefined",
|
|
3813
|
+
"required": false
|
|
3814
|
+
},
|
|
3815
|
+
"closeAriaLabel": {
|
|
3816
|
+
"type": "string",
|
|
3817
|
+
"required": false
|
|
3818
|
+
},
|
|
3730
3819
|
"heading": {
|
|
3731
3820
|
"type": "string",
|
|
3732
3821
|
"required": true
|
|
@@ -3738,16 +3827,16 @@
|
|
|
3738
3827
|
"open": {
|
|
3739
3828
|
"type": "boolean",
|
|
3740
3829
|
"required": false
|
|
3741
|
-
},
|
|
3742
|
-
"subtitle": {
|
|
3743
|
-
"type": "string | undefined",
|
|
3744
|
-
"required": false
|
|
3745
3830
|
}
|
|
3746
3831
|
},
|
|
3747
3832
|
"events": [
|
|
3748
3833
|
{
|
|
3749
|
-
"name": "
|
|
3834
|
+
"name": "dsAfterClose",
|
|
3750
3835
|
"detail": "void"
|
|
3836
|
+
},
|
|
3837
|
+
{
|
|
3838
|
+
"name": "dsClose",
|
|
3839
|
+
"detail": "ModalCloseDetail"
|
|
3751
3840
|
}
|
|
3752
3841
|
],
|
|
3753
3842
|
"slots": []
|
|
@@ -3762,6 +3851,7 @@
|
|
|
3762
3851
|
"@ds-mo/tokens"
|
|
3763
3852
|
],
|
|
3764
3853
|
"componentDependencies": [
|
|
3854
|
+
"button-unfilled",
|
|
3765
3855
|
"text"
|
|
3766
3856
|
]
|
|
3767
3857
|
},
|
|
@@ -4044,7 +4134,7 @@
|
|
|
4044
4134
|
}
|
|
4045
4135
|
],
|
|
4046
4136
|
"commonlyComposedWith": [
|
|
4047
|
-
"component:ds-card",
|
|
4137
|
+
"component:ds-card-setting",
|
|
4048
4138
|
"component:ds-text"
|
|
4049
4139
|
],
|
|
4050
4140
|
"accessibility": [
|
|
@@ -5510,7 +5600,7 @@
|
|
|
5510
5600
|
}
|
|
5511
5601
|
],
|
|
5512
5602
|
"commonlyComposedWith": [
|
|
5513
|
-
"component:ds-card",
|
|
5603
|
+
"component:ds-card-setting",
|
|
5514
5604
|
"component:ds-text",
|
|
5515
5605
|
"component:ds-icon"
|
|
5516
5606
|
],
|
|
@@ -6276,7 +6366,7 @@
|
|
|
6276
6366
|
}
|
|
6277
6367
|
],
|
|
6278
6368
|
"commonlyComposedWith": [
|
|
6279
|
-
"component:ds-card",
|
|
6369
|
+
"component:ds-card-setting",
|
|
6280
6370
|
"component:ds-text",
|
|
6281
6371
|
"component:ds-icon",
|
|
6282
6372
|
"component:ds-menu"
|
|
@@ -6427,7 +6517,7 @@
|
|
|
6427
6517
|
],
|
|
6428
6518
|
"commonlyComposedWith": [
|
|
6429
6519
|
"component:ds-icon",
|
|
6430
|
-
"component:ds-card",
|
|
6520
|
+
"component:ds-card-setting",
|
|
6431
6521
|
"component:ds-field",
|
|
6432
6522
|
"component:ds-button-filled"
|
|
6433
6523
|
],
|
|
@@ -6546,6 +6636,165 @@
|
|
|
6546
6636
|
],
|
|
6547
6637
|
"componentDependencies": []
|
|
6548
6638
|
},
|
|
6639
|
+
{
|
|
6640
|
+
"id": "component:ds-toast",
|
|
6641
|
+
"tag": "ds-toast",
|
|
6642
|
+
"name": "toast",
|
|
6643
|
+
"title": "Toast",
|
|
6644
|
+
"summary": "Application-level floating notification system with a global manager, queued bottom-end stack, anchored feedback, actions, promise states, priority announcements, pauseable timers, keyboard access, and swipe dismissal.",
|
|
6645
|
+
"intentStatus": "complete",
|
|
6646
|
+
"intent": {
|
|
6647
|
+
"audience": "general",
|
|
6648
|
+
"status": "stable",
|
|
6649
|
+
"summary": "Application-level floating notification system with a global manager, queued bottom-end stack, anchored feedback, actions, promise states, priority announcements, pauseable timers, keyboard access, and swipe dismissal.",
|
|
6650
|
+
"useWhen": [
|
|
6651
|
+
"A completed or failed operation needs brief non-blocking feedback without moving page content.",
|
|
6652
|
+
"An application needs one coordinated notification queue that can be triggered outside the current component tree.",
|
|
6653
|
+
"A short-lived undo or recovery action belongs directly with transient feedback.",
|
|
6654
|
+
"Contextual feedback such as Copy confirmation should appear near the control that caused it."
|
|
6655
|
+
],
|
|
6656
|
+
"avoidWhen": [
|
|
6657
|
+
"The message must remain visible as part of page content or contains information users need later.",
|
|
6658
|
+
"The user must make a decision before continuing; use Modal for a blocking workflow.",
|
|
6659
|
+
"Validation belongs to a specific field or form section; keep the error adjacent to that content.",
|
|
6660
|
+
"The notification would contain long prose, several actions, navigation, or a complete workflow.",
|
|
6661
|
+
"Repeated background events would create a noisy stream instead of one updated or deduplicated toast."
|
|
6662
|
+
],
|
|
6663
|
+
"alternatives": [
|
|
6664
|
+
{
|
|
6665
|
+
"when": "The user must respond before continuing or an irreversible action needs confirmation.",
|
|
6666
|
+
"component": "component:ds-modal",
|
|
6667
|
+
"reason": "Modal owns blocking focus containment and explicit decision actions."
|
|
6668
|
+
},
|
|
6669
|
+
{
|
|
6670
|
+
"when": "A form control needs persistent validation or supporting guidance.",
|
|
6671
|
+
"component": "component:ds-field",
|
|
6672
|
+
"reason": "Field keeps actionable feedback associated with the control that needs correction."
|
|
6673
|
+
},
|
|
6674
|
+
{
|
|
6675
|
+
"when": "A compact status must remain visible in the page hierarchy.",
|
|
6676
|
+
"component": "component:ds-tag",
|
|
6677
|
+
"reason": "Tag represents persistent static metadata rather than transient feedback."
|
|
6678
|
+
}
|
|
6679
|
+
],
|
|
6680
|
+
"commonlyComposedWith": [
|
|
6681
|
+
"component:ds-button-filled",
|
|
6682
|
+
"component:ds-button-unfilled",
|
|
6683
|
+
"component:ds-modal",
|
|
6684
|
+
"component:ds-field"
|
|
6685
|
+
],
|
|
6686
|
+
"accessibility": [
|
|
6687
|
+
"Mount one ds-toast near the application root. New notifications never move focus.",
|
|
6688
|
+
"Provide a concise title, description, or both. Do not place the only recovery instructions in an automatically expiring toast.",
|
|
6689
|
+
"Use low priority for ordinary feedback. Reserve high priority for urgent interruptions that warrant assertive announcement.",
|
|
6690
|
+
"F6 moves focus into the Notifications region; Escape dismisses the focused toast and focus returns to a surviving toast or the previous control.",
|
|
6691
|
+
"Timers pause while users hover, focus, swipe, or leave the document, preserving the remaining reading time.",
|
|
6692
|
+
"Use timeout 0 for feedback that must remain until explicitly dismissed. Keep action labels concise and uniquely understandable.",
|
|
6693
|
+
"Anchored feedback supplements the triggering control but does not replace its accessible name, state, or persistent result.",
|
|
6694
|
+
"Do not include secrets, customer PII, or sensitive operational details in transient notification text."
|
|
6695
|
+
],
|
|
6696
|
+
"states": [
|
|
6697
|
+
"The manager owns add, ID-based upsert, update, close, closeAll, and promise transitions. The component renders the manager snapshot.",
|
|
6698
|
+
"Loading promise records remain persistent until the same id updates to success or error and begins its resulting timeout.",
|
|
6699
|
+
"Only the newest records up to the limit are visible in the global stack. The collapsed trail insets each successive toast by 8px per side; hover or keyboard focus expands all visible records to full width. Older records remain mounted and inert until promoted.",
|
|
6700
|
+
"All timers pause together on hover, focus, touch swipe, window blur, or hidden-document state and resume from their exact remainder.",
|
|
6701
|
+
"Closing records remain rendered through exit motion before removal callbacks and dsToastRemove.",
|
|
6702
|
+
"One optional bordered unfilled action sits below the text at bottom-left, emits dsToastAction, and runs the supplied callback without dismissing automatically.",
|
|
6703
|
+
"Swipe state exposes movement and direction hooks; down and right are the default dismissal directions.",
|
|
6704
|
+
"Anchored records use trigger-relative positioning and do not consume the global stack limit."
|
|
6705
|
+
],
|
|
6706
|
+
"responsiveBehavior": [
|
|
6707
|
+
"The global stack stays at the viewport bottom-end with token-based inset and never exceeds the available viewport width.",
|
|
6708
|
+
"Anchored toasts flip on their placement axis and clamp to viewport padding when the preferred side does not fit.",
|
|
6709
|
+
"The owner does not create separate mobile and desktop managers; one queue preserves ordering across responsive layouts.",
|
|
6710
|
+
"Pointer swipe remains optional input. Close and action controls retain keyboard access through the notification region."
|
|
6711
|
+
],
|
|
6712
|
+
"frameworkCaveats": {
|
|
6713
|
+
"customElements": [
|
|
6714
|
+
"Import ds-toast once and call toastManager from @ds-mo/ui/toast. Assign a custom manager and swipeDirections through JavaScript properties.",
|
|
6715
|
+
"Mount one ds-toast per manager; a second connected viewport for the same manager remains inactive."
|
|
6716
|
+
],
|
|
6717
|
+
"react": [
|
|
6718
|
+
"Render one DsToast near the application root and import toastManager or createToastManager from @ds-mo/ui/toast.",
|
|
6719
|
+
"Pass custom manager, action callbacks, data, positioner anchors, and swipe directions as properties rather than string attributes."
|
|
6720
|
+
],
|
|
6721
|
+
"angular": [
|
|
6722
|
+
"Import DsToast once near the application root and import toastManager or createToastManager from @ds-mo/ui/toast.",
|
|
6723
|
+
"Use property binding for manager, action callbacks, data, positioner anchors, and swipeDirections."
|
|
6724
|
+
]
|
|
6725
|
+
},
|
|
6726
|
+
"references": [
|
|
6727
|
+
{
|
|
6728
|
+
"label": "Storybook examples",
|
|
6729
|
+
"path": "src/wc/components/Toast/Toast.stories.ts"
|
|
6730
|
+
},
|
|
6731
|
+
{
|
|
6732
|
+
"label": "Manager unit coverage",
|
|
6733
|
+
"path": "tests/toast-manager.test.ts"
|
|
6734
|
+
},
|
|
6735
|
+
{
|
|
6736
|
+
"label": "Cross-browser behavior coverage",
|
|
6737
|
+
"path": "tests/e2e/toast.spec.ts"
|
|
6738
|
+
}
|
|
6739
|
+
]
|
|
6740
|
+
},
|
|
6741
|
+
"api": {
|
|
6742
|
+
"props": {
|
|
6743
|
+
"closeLabel": {
|
|
6744
|
+
"type": "string",
|
|
6745
|
+
"required": false
|
|
6746
|
+
},
|
|
6747
|
+
"label": {
|
|
6748
|
+
"type": "string",
|
|
6749
|
+
"required": false
|
|
6750
|
+
},
|
|
6751
|
+
"limit": {
|
|
6752
|
+
"type": "number",
|
|
6753
|
+
"required": false
|
|
6754
|
+
},
|
|
6755
|
+
"manager": {
|
|
6756
|
+
"type": "ToastManager",
|
|
6757
|
+
"required": false
|
|
6758
|
+
},
|
|
6759
|
+
"swipeDirections": {
|
|
6760
|
+
"type": "ToastSwipeDirection[]",
|
|
6761
|
+
"required": false
|
|
6762
|
+
},
|
|
6763
|
+
"timeout": {
|
|
6764
|
+
"type": "number | string",
|
|
6765
|
+
"required": false
|
|
6766
|
+
}
|
|
6767
|
+
},
|
|
6768
|
+
"events": [
|
|
6769
|
+
{
|
|
6770
|
+
"name": "dsToastAction",
|
|
6771
|
+
"detail": "ToastActionEventDetail"
|
|
6772
|
+
},
|
|
6773
|
+
{
|
|
6774
|
+
"name": "dsToastClose",
|
|
6775
|
+
"detail": "ToastCloseEventDetail"
|
|
6776
|
+
},
|
|
6777
|
+
{
|
|
6778
|
+
"name": "dsToastRemove",
|
|
6779
|
+
"detail": "ToastEventDetail"
|
|
6780
|
+
}
|
|
6781
|
+
],
|
|
6782
|
+
"slots": []
|
|
6783
|
+
},
|
|
6784
|
+
"exports": {
|
|
6785
|
+
"customElement": "ds-toast",
|
|
6786
|
+
"react": "DsToast",
|
|
6787
|
+
"angular": "DsToast"
|
|
6788
|
+
},
|
|
6789
|
+
"dependencies": [
|
|
6790
|
+
"@ds-mo/ui",
|
|
6791
|
+
"@ds-mo/tokens"
|
|
6792
|
+
],
|
|
6793
|
+
"componentDependencies": [
|
|
6794
|
+
"button-unfilled",
|
|
6795
|
+
"text"
|
|
6796
|
+
]
|
|
6797
|
+
},
|
|
6549
6798
|
{
|
|
6550
6799
|
"id": "component:ds-tooltip",
|
|
6551
6800
|
"tag": "ds-tooltip",
|