@ds-mo/ui 12.5.0 → 12.6.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/dist/.build-stamp +1 -1
- package/dist/agent-patterns.json +21 -12
- package/dist/agent.json +1540 -1427
- package/dist/angular/ds-bar-workflow.d.ts +1 -1
- package/dist/angular/ds-bar-workflow.js +3 -3
- package/dist/angular/ds-mobile-bar-nav.d.ts +18 -0
- package/dist/angular/{ds-shell-mobile-bar.js → ds-mobile-bar-nav.js} +15 -15
- package/dist/angular/ds-mobile-header.d.ts +23 -0
- package/dist/angular/ds-mobile-header.js +45 -0
- package/dist/angular/ds-mobile-section-switcher.d.ts +18 -0
- package/dist/angular/{ds-shell-mobile-section-nav.js → ds-mobile-section-switcher.js} +15 -15
- package/dist/angular/ds-mobile-sheet-nav.d.ts +20 -0
- package/dist/angular/{ds-shell-mobile-nav.js → ds-mobile-sheet-nav.js} +13 -16
- package/dist/angular/ds-shell-app.d.ts +1 -1
- package/dist/angular/ds-shell-app.js +3 -3
- package/dist/angular/ds-shell-page.d.ts +1 -1
- package/dist/angular/ds-shell-page.js +3 -3
- package/dist/angular/index.d.ts +1 -1
- package/dist/angular/index.js +4 -3
- package/dist/angular/proxies.d.ts +4 -3
- package/dist/angular/proxies.js +4 -3
- package/dist/components/ds-agent-activity.js +1 -1
- package/dist/components/ds-agent-response.js +1 -1
- package/dist/components/ds-agent-tool-call.js +1 -1
- package/dist/components/ds-avatar.js +1 -1
- package/dist/components/ds-avatar.js.map +1 -1
- package/dist/components/ds-badge.js +1 -1
- package/dist/components/ds-bar-nav.js +1 -1
- package/dist/components/ds-bar-nav.js.map +1 -1
- package/dist/components/ds-bar-title.js +1 -1
- package/dist/components/ds-bar-title.js.map +1 -1
- package/dist/components/ds-bar-workflow.js +1 -1
- package/dist/components/ds-bar-workflow.js.map +1 -1
- package/dist/components/ds-breadcrumb.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-bar.js +1 -1
- package/dist/components/ds-card-data-viz-donut.js +1 -1
- package/dist/components/ds-card-data-viz-line.js +1 -1
- package/dist/components/ds-card-setting.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-legend.js.map +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-chip.js.map +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-empty-state.js +1 -1
- package/dist/components/ds-field.js +1 -1
- package/dist/components/ds-input.js +1 -1
- package/dist/components/ds-input.js.map +1 -1
- package/dist/components/ds-loader.js +1 -1
- package/dist/components/ds-markdown.js +1 -1
- package/dist/components/ds-menu.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.js +1 -1
- package/dist/components/{ds-shell-mobile-nav.d.ts → ds-mobile-bar-nav.d.ts} +4 -4
- package/dist/components/ds-mobile-bar-nav.js +2 -0
- package/dist/components/ds-mobile-bar-nav.js.map +1 -0
- package/dist/components/ds-mobile-header.d.ts +11 -0
- package/dist/components/ds-mobile-header.js +2 -0
- package/dist/components/ds-mobile-header.js.map +1 -0
- package/dist/components/ds-mobile-section-switcher.d.ts +11 -0
- package/dist/components/ds-mobile-section-switcher.js +2 -0
- package/dist/components/ds-mobile-section-switcher.js.map +1 -0
- package/dist/components/{ds-shell-mobile-bar.d.ts → ds-mobile-sheet-nav.d.ts} +4 -4
- package/dist/components/ds-mobile-sheet-nav.js +2 -0
- package/dist/components/ds-mobile-sheet-nav.js.map +1 -0
- 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-nav.js.map +1 -1
- package/dist/components/ds-panel-sub-nav.js +1 -1
- package/dist/components/ds-panel-sub-nav.js.map +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-tool-search.js.map +1 -1
- package/dist/components/ds-panel-tools.js +1 -1
- package/dist/components/ds-radio.js +1 -1
- package/dist/components/ds-radio.js.map +1 -1
- package/dist/components/ds-select-multi.js +1 -1
- package/dist/components/ds-select-multi.js.map +1 -1
- package/dist/components/ds-select.js +1 -1
- package/dist/components/ds-select.js.map +1 -1
- package/dist/components/ds-shell-app.js +1 -1
- package/dist/components/ds-shell-app.js.map +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-shell-gradient-swatch.js.map +1 -1
- package/dist/components/ds-shell-page.js +1 -1
- package/dist/components/ds-shell-page.js.map +1 -1
- package/dist/components/ds-shell-tools.js +1 -1
- package/dist/components/ds-shell-tools.js.map +1 -1
- package/dist/components/ds-skeleton.js +1 -1
- package/dist/components/ds-skeleton.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-tag.js.map +1 -1
- package/dist/components/ds-toast.js +1 -1
- package/dist/components/ds-toast.js.map +1 -1
- package/dist/components/ds-tooltip-data-viz.js +1 -1
- package/dist/components/ds-tooltip.js +1 -1
- package/dist/components/ds-typing-indicator.js +1 -1
- package/dist/components/p-4h7vAqyJ.js +2 -0
- package/dist/components/p-4h7vAqyJ.js.map +1 -0
- package/dist/components/p-6WdUnsGC.js +2 -0
- package/dist/components/p-6WdUnsGC.js.map +1 -0
- package/dist/components/{p-9dQQSgwT.js → p-BHYrsGBw.js} +2 -2
- package/dist/components/p-BY0PzkUp.js +2 -0
- package/dist/components/p-BdPaDhDe.js +2 -0
- package/dist/components/p-BdPaDhDe.js.map +1 -0
- package/dist/components/p-BgGP65Nn.js +2 -0
- package/dist/components/p-BgGP65Nn.js.map +1 -0
- package/dist/components/p-BkAMkjIR.js +2 -0
- package/dist/components/{p-Co8hD3P-.js.map → p-BkAMkjIR.js.map} +1 -1
- package/dist/components/p-BqPLwCrR.js +2 -0
- package/dist/components/{p-CtD24EyI.js.map → p-BqPLwCrR.js.map} +1 -1
- package/dist/components/p-BrusnEYP.js.map +1 -1
- package/dist/components/p-C2ym_Ich.js +2 -0
- package/dist/components/p-CKGlB6Ow.js +2 -0
- package/dist/components/p-CKGlB6Ow.js.map +1 -0
- package/dist/components/p-CLzlL3G4.js +2 -0
- package/dist/components/p-CLzlL3G4.js.map +1 -0
- package/dist/components/p-CPK5Tgae.js +2 -0
- package/dist/components/p-CPK5Tgae.js.map +1 -0
- package/dist/components/p-CUWxI1u0.js +2 -0
- package/dist/components/{p-BhxwpOH8.js.map → p-CUWxI1u0.js.map} +1 -1
- package/dist/components/p-Ca-I2UnB.js +2 -0
- package/dist/components/p-Ca-I2UnB.js.map +1 -0
- package/dist/components/p-CaRyxTMz.js +2 -0
- package/dist/components/p-CaRyxTMz.js.map +1 -0
- package/dist/components/p-D65itwnc.js +2 -0
- package/dist/components/p-D65itwnc.js.map +1 -0
- package/dist/components/{p-DjPZxzIG.js → p-DQDpDYyF.js} +2 -2
- package/dist/components/p-DWdRSOBV.js +2 -0
- package/dist/components/{p-BPS9VExm.js.map → p-DWdRSOBV.js.map} +1 -1
- package/dist/components/p-Dg3xLna0.js +2 -0
- package/dist/components/{p-C_0Q8Cnp.js.map → p-Dg3xLna0.js.map} +1 -1
- package/dist/components/p-DikRzG5f.js +2 -0
- package/dist/components/{p-PZ6R_nGI.js.map → p-DikRzG5f.js.map} +1 -1
- package/dist/components/p-Dq1vMuJb.js +2 -0
- package/dist/components/p-Dq1vMuJb.js.map +1 -0
- package/dist/components/{p-g40DTeV8.js → p-DzRBKJ2L.js} +2 -2
- package/dist/components/p-P5BMmQAc.js +2 -0
- package/dist/components/{p-Biz6xo-z.js.map → p-P5BMmQAc.js.map} +1 -1
- package/dist/components/{p-DXnFhmZF.js → p-hLPTSGdo.js} +2 -2
- package/dist/components/p-rsIOpkzV.js +2 -0
- package/dist/components/p-rsIOpkzV.js.map +1 -0
- package/dist/docs/components.json +3587 -3065
- package/dist/lib/shell/index.d.ts +1 -1
- package/dist/lib/shell/index.js +2 -1
- package/dist/lib/shell/index.js.map +2 -2
- package/dist/lib/shell/shell-responsive.d.ts +3 -3
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/lib/utils/index.js +8 -0
- package/dist/lib/utils/index.js.map +3 -3
- package/dist/lib/utils/required-validity.d.ts +14 -0
- package/dist/mcp-data/registry/agent-activity.json +2 -2
- package/dist/mcp-data/registry/badge.json +2 -2
- package/dist/mcp-data/registry/bar-nav.json +2 -2
- package/dist/mcp-data/registry/bar-title.json +2 -2
- package/dist/mcp-data/registry/bar-workflow.json +25 -4
- package/dist/mcp-data/registry/breadcrumb.json +2 -2
- package/dist/mcp-data/registry/button-unfilled.json +3 -3
- package/dist/mcp-data/registry/chart-legend.json +1 -1
- package/dist/mcp-data/registry/checkbox.json +1 -1
- package/dist/mcp-data/registry/conversation-list-item.json +2 -2
- package/dist/mcp-data/registry/input.json +1 -1
- package/dist/mcp-data/registry/loader.json +2 -2
- package/dist/mcp-data/registry/menu.json +7 -7
- package/dist/mcp-data/registry/mobile-bar-nav.json +333 -0
- package/dist/mcp-data/registry/mobile-header.json +351 -0
- package/dist/mcp-data/registry/mobile-section-switcher.json +211 -0
- package/dist/mcp-data/registry/mobile-sheet-nav.json +317 -0
- package/dist/mcp-data/registry/panel-nav.json +2 -2
- package/dist/mcp-data/registry/panel-tools.json +2 -2
- package/dist/mcp-data/registry/radio.json +1 -1
- package/dist/mcp-data/registry/registry.json +1548 -1432
- package/dist/mcp-data/registry/select-multi.json +1 -1
- package/dist/mcp-data/registry/select.json +2 -2
- package/dist/mcp-data/registry/shell-app.json +17 -17
- package/dist/mcp-data/registry/shell-page.json +26 -7
- package/dist/mcp-data/registry/shell-tools.json +10 -7
- package/dist/mcp-data/registry/switch.json +1 -1
- package/dist/mcp-data/registry/toast.json +2 -2
- package/dist/react/components.d.ts +4 -3
- package/dist/react/components.js +4 -3
- package/dist/react/ds-mobile-bar-nav.d.ts +13 -0
- package/dist/react/ds-mobile-bar-nav.js +15 -0
- package/dist/react/ds-mobile-header.d.ts +13 -0
- package/dist/react/ds-mobile-header.js +15 -0
- package/dist/react/ds-mobile-section-switcher.d.ts +12 -0
- package/dist/react/ds-mobile-section-switcher.js +12 -0
- package/dist/react/ds-mobile-sheet-nav.d.ts +14 -0
- package/dist/react/ds-mobile-sheet-nav.js +16 -0
- package/dist/types/components/BarWorkflow/BarWorkflow.d.ts +6 -0
- package/dist/types/components/ButtonUnfilled/ButtonUnfilled.d.ts +1 -1
- package/dist/types/components/Menu/Menu.d.ts +1 -1
- package/dist/types/components/MobileBarNav/MobileBarNav.d.ts +26 -0
- package/dist/types/components/MobileBarNav/index.d.ts +4 -0
- package/dist/types/components/MobileBarNav/mobile-bar-nav-types.d.ts +5 -0
- package/dist/types/components/MobileHeader/MobileHeader.d.ts +39 -0
- package/dist/types/components/MobileHeader/index.d.ts +2 -0
- package/dist/types/components/MobileHeader/mobile-header-types.d.ts +5 -0
- package/dist/types/components/MobileSectionSwitcher/MobileSectionSwitcher.d.ts +35 -0
- package/dist/types/components/MobileSectionSwitcher/index.d.ts +3 -0
- package/dist/types/components/MobileSectionSwitcher/mobile-section-switcher-types.d.ts +4 -0
- package/dist/types/components/MobileSectionSwitcher/mobile-section-switcher-utils.d.ts +10 -0
- package/dist/types/components/{ShellMobileNav/ShellMobileNav.d.ts → MobileSheetNav/MobileSheetNav.d.ts} +5 -7
- package/dist/types/components/MobileSheetNav/index.d.ts +1 -0
- package/dist/types/components/ShellApp/ShellApp.d.ts +4 -4
- package/dist/types/components/ShellPage/ShellPage.d.ts +4 -0
- package/dist/types/components.d.ts +532 -383
- package/dist/types/shell/index.d.ts +1 -1
- package/dist/types/shell/shell-responsive.d.ts +3 -3
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/required-validity.d.ts +15 -0
- package/package.json +1 -1
- package/dist/angular/ds-shell-mobile-bar.d.ts +0 -18
- package/dist/angular/ds-shell-mobile-nav.d.ts +0 -23
- package/dist/angular/ds-shell-mobile-section-nav.d.ts +0 -18
- package/dist/components/ds-shell-mobile-bar.js +0 -2
- package/dist/components/ds-shell-mobile-bar.js.map +0 -1
- package/dist/components/ds-shell-mobile-nav.js +0 -2
- package/dist/components/ds-shell-mobile-nav.js.map +0 -1
- package/dist/components/ds-shell-mobile-section-nav.d.ts +0 -11
- package/dist/components/ds-shell-mobile-section-nav.js +0 -2
- package/dist/components/ds-shell-mobile-section-nav.js.map +0 -1
- package/dist/components/p-B6Vuayt6.js +0 -2
- package/dist/components/p-B6Vuayt6.js.map +0 -1
- package/dist/components/p-BPS9VExm.js +0 -2
- package/dist/components/p-BVV_rlIP.js +0 -2
- package/dist/components/p-BVV_rlIP.js.map +0 -1
- package/dist/components/p-BhxwpOH8.js +0 -2
- package/dist/components/p-Biz6xo-z.js +0 -2
- package/dist/components/p-BtEjlcB9.js +0 -2
- package/dist/components/p-BtEjlcB9.js.map +0 -1
- package/dist/components/p-CH6cNXXF.js +0 -2
- package/dist/components/p-CH6cNXXF.js.map +0 -1
- package/dist/components/p-C_0Q8Cnp.js +0 -2
- package/dist/components/p-Ce52yVXF.js +0 -2
- package/dist/components/p-Ce52yVXF.js.map +0 -1
- package/dist/components/p-CgHTNfC1.js +0 -2
- package/dist/components/p-CgHTNfC1.js.map +0 -1
- package/dist/components/p-Co8hD3P-.js +0 -2
- package/dist/components/p-CoYFJD-w.js +0 -2
- package/dist/components/p-CoYFJD-w.js.map +0 -1
- package/dist/components/p-Cpr3K41-.js +0 -2
- package/dist/components/p-Cpr3K41-.js.map +0 -1
- package/dist/components/p-CtD24EyI.js +0 -2
- package/dist/components/p-DYqReipj.js +0 -2
- package/dist/components/p-DYqReipj.js.map +0 -1
- package/dist/components/p-NUNsefU1.js +0 -2
- package/dist/components/p-NUNsefU1.js.map +0 -1
- package/dist/components/p-PZ6R_nGI.js +0 -2
- package/dist/components/p-jCWtxthA.js +0 -2
- package/dist/components/p-yhj1lIPx.js +0 -2
- package/dist/mcp-data/registry/shell-mobile-bar.json +0 -314
- package/dist/mcp-data/registry/shell-mobile-nav.json +0 -348
- package/dist/mcp-data/registry/shell-mobile-section-nav.json +0 -267
- package/dist/react/ds-shell-mobile-bar.d.ts +0 -13
- package/dist/react/ds-shell-mobile-bar.js +0 -15
- package/dist/react/ds-shell-mobile-nav.d.ts +0 -15
- package/dist/react/ds-shell-mobile-nav.js +0 -17
- package/dist/react/ds-shell-mobile-section-nav.d.ts +0 -12
- package/dist/react/ds-shell-mobile-section-nav.js +0 -12
- package/dist/types/components/ShellMobileBar/ShellMobileBar.d.ts +0 -25
- package/dist/types/components/ShellMobileBar/index.d.ts +0 -4
- package/dist/types/components/ShellMobileBar/shell-mobile-bar-types.d.ts +0 -5
- package/dist/types/components/ShellMobileNav/index.d.ts +0 -2
- package/dist/types/components/ShellMobileNav/shell-mobile-nav-types.d.ts +0 -6
- package/dist/types/components/ShellMobileSectionNav/ShellMobileSectionNav.d.ts +0 -30
- package/dist/types/components/ShellMobileSectionNav/index.d.ts +0 -2
- /package/dist/components/{p-9dQQSgwT.js.map → p-BHYrsGBw.js.map} +0 -0
- /package/dist/components/{p-jCWtxthA.js.map → p-BY0PzkUp.js.map} +0 -0
- /package/dist/components/{p-yhj1lIPx.js.map → p-C2ym_Ich.js.map} +0 -0
- /package/dist/components/{p-DjPZxzIG.js.map → p-DQDpDYyF.js.map} +0 -0
- /package/dist/components/{p-g40DTeV8.js.map → p-DzRBKJ2L.js.map} +0 -0
- /package/dist/components/{p-DXnFhmZF.js.map → p-hLPTSGdo.js.map} +0 -0
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
-
"name": "shell-mobile-bar",
|
|
4
|
-
"title": "ShellMobileBar",
|
|
5
|
-
"description": "Persistent mobile shell navigation for Menu, the router-derived current area, Search, Agents, and Inbox.",
|
|
6
|
-
"type": "registry:ui",
|
|
7
|
-
"meta": {
|
|
8
|
-
"library": "@ds-mo/ui",
|
|
9
|
-
"distribution": "npm",
|
|
10
|
-
"storybook": "https://zainadeel.github.io/compomo/?path=/story/shell-mobile-bar",
|
|
11
|
-
"source": "src/wc/components/ShellMobileBar/ShellMobileBar.tsx",
|
|
12
|
-
"intentStatus": "complete",
|
|
13
|
-
"intent": {
|
|
14
|
-
"audience": "specialized",
|
|
15
|
-
"status": "experimental",
|
|
16
|
-
"summary": "Persistent mobile shell navigation for Menu, the router-derived current area, Search, Agents, and Inbox.",
|
|
17
|
-
"useWhen": [
|
|
18
|
-
"ShellApp is rendering its dedicated below-768px application composition."
|
|
19
|
-
],
|
|
20
|
-
"avoidWhen": [
|
|
21
|
-
"Rendering desktop or tablet shell chrome.",
|
|
22
|
-
"An arbitrary set of product tabs is required."
|
|
23
|
-
],
|
|
24
|
-
"commonlyComposedWith": [
|
|
25
|
-
"component:ds-shell-app"
|
|
26
|
-
],
|
|
27
|
-
"patterns": [
|
|
28
|
-
"pattern:application-shell"
|
|
29
|
-
],
|
|
30
|
-
"accessibility": [
|
|
31
|
-
"Every item keeps a visible label and accessible name.",
|
|
32
|
-
"Only the active destination exposes aria-current; Menu exposes its controlled pane through aria-expanded."
|
|
33
|
-
],
|
|
34
|
-
"states": [
|
|
35
|
-
"The item order is fixed: Menu, current area, Search, Agents, Inbox.",
|
|
36
|
-
"Reselecting an active destination does not reset its nested state."
|
|
37
|
-
],
|
|
38
|
-
"responsiveBehavior": [
|
|
39
|
-
"Render only below the mobile breakpoint and preserve safe-area clearance."
|
|
40
|
-
],
|
|
41
|
-
"references": [
|
|
42
|
-
{
|
|
43
|
-
"label": "Storybook",
|
|
44
|
-
"path": "src/wc/components/ShellMobileBar/ShellMobileBar.stories.ts"
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
"api": {
|
|
49
|
-
"props": {
|
|
50
|
-
"activeDestination": {
|
|
51
|
-
"type": "ShellMobileDestination",
|
|
52
|
-
"resolvedType": "\"agents\" | \"area\" | \"inbox\" | \"search\"",
|
|
53
|
-
"attribute": "active-destination",
|
|
54
|
-
"default": "'area'",
|
|
55
|
-
"required": false,
|
|
56
|
-
"mutable": false
|
|
57
|
-
},
|
|
58
|
-
"agentsDot": {
|
|
59
|
-
"type": "boolean",
|
|
60
|
-
"resolvedType": "boolean",
|
|
61
|
-
"attribute": "agents-dot",
|
|
62
|
-
"default": "false",
|
|
63
|
-
"required": false,
|
|
64
|
-
"mutable": false
|
|
65
|
-
},
|
|
66
|
-
"agentsLabel": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"resolvedType": "string",
|
|
69
|
-
"attribute": "agents-label",
|
|
70
|
-
"default": "'Agents'",
|
|
71
|
-
"required": false,
|
|
72
|
-
"mutable": false
|
|
73
|
-
},
|
|
74
|
-
"currentArea": {
|
|
75
|
-
"type": "PanelNavItem",
|
|
76
|
-
"resolvedType": "PanelNavItem",
|
|
77
|
-
"default": "{\n id: 'tracking',\n icon: 'MapPage',\n label: 'Tracking',\n }",
|
|
78
|
-
"required": false,
|
|
79
|
-
"mutable": false
|
|
80
|
-
},
|
|
81
|
-
"inboxDot": {
|
|
82
|
-
"type": "boolean",
|
|
83
|
-
"resolvedType": "boolean",
|
|
84
|
-
"attribute": "inbox-dot",
|
|
85
|
-
"default": "false",
|
|
86
|
-
"required": false,
|
|
87
|
-
"mutable": false
|
|
88
|
-
},
|
|
89
|
-
"inboxLabel": {
|
|
90
|
-
"type": "string",
|
|
91
|
-
"resolvedType": "string",
|
|
92
|
-
"attribute": "inbox-label",
|
|
93
|
-
"default": "'Inbox'",
|
|
94
|
-
"required": false,
|
|
95
|
-
"mutable": false
|
|
96
|
-
},
|
|
97
|
-
"menuLabel": {
|
|
98
|
-
"type": "string",
|
|
99
|
-
"resolvedType": "string",
|
|
100
|
-
"attribute": "menu-label",
|
|
101
|
-
"default": "'Menu'",
|
|
102
|
-
"required": false,
|
|
103
|
-
"mutable": false
|
|
104
|
-
},
|
|
105
|
-
"navigationExpanded": {
|
|
106
|
-
"type": "boolean",
|
|
107
|
-
"resolvedType": "boolean",
|
|
108
|
-
"attribute": "navigation-expanded",
|
|
109
|
-
"default": "false",
|
|
110
|
-
"required": false,
|
|
111
|
-
"mutable": false
|
|
112
|
-
},
|
|
113
|
-
"searchDot": {
|
|
114
|
-
"type": "boolean",
|
|
115
|
-
"resolvedType": "boolean",
|
|
116
|
-
"attribute": "search-dot",
|
|
117
|
-
"default": "false",
|
|
118
|
-
"required": false,
|
|
119
|
-
"mutable": false
|
|
120
|
-
},
|
|
121
|
-
"searchLabel": {
|
|
122
|
-
"type": "string",
|
|
123
|
-
"resolvedType": "string",
|
|
124
|
-
"attribute": "search-label",
|
|
125
|
-
"default": "'Search'",
|
|
126
|
-
"required": false,
|
|
127
|
-
"mutable": false
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
"events": [
|
|
131
|
-
{
|
|
132
|
-
"name": "dsDestinationChange",
|
|
133
|
-
"detail": "ShellMobileBarDestinationDetail",
|
|
134
|
-
"bubbles": true,
|
|
135
|
-
"cancelable": true,
|
|
136
|
-
"composed": true
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"name": "dsNavigationToggle",
|
|
140
|
-
"detail": "boolean",
|
|
141
|
-
"bubbles": true,
|
|
142
|
-
"cancelable": true,
|
|
143
|
-
"composed": true
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
|
-
"methods": [
|
|
147
|
-
{
|
|
148
|
-
"name": "focusDestination",
|
|
149
|
-
"signature": "focusDestination(destination: ShellMobileDestination | \"navigation\") => Promise<void>"
|
|
150
|
-
}
|
|
151
|
-
],
|
|
152
|
-
"slots": []
|
|
153
|
-
},
|
|
154
|
-
"props": {
|
|
155
|
-
"activeDestination": {
|
|
156
|
-
"type": "ShellMobileDestination",
|
|
157
|
-
"resolvedType": "\"agents\" | \"area\" | \"inbox\" | \"search\"",
|
|
158
|
-
"attribute": "active-destination",
|
|
159
|
-
"default": "'area'",
|
|
160
|
-
"required": false,
|
|
161
|
-
"mutable": false
|
|
162
|
-
},
|
|
163
|
-
"agentsDot": {
|
|
164
|
-
"type": "boolean",
|
|
165
|
-
"resolvedType": "boolean",
|
|
166
|
-
"attribute": "agents-dot",
|
|
167
|
-
"default": "false",
|
|
168
|
-
"required": false,
|
|
169
|
-
"mutable": false
|
|
170
|
-
},
|
|
171
|
-
"agentsLabel": {
|
|
172
|
-
"type": "string",
|
|
173
|
-
"resolvedType": "string",
|
|
174
|
-
"attribute": "agents-label",
|
|
175
|
-
"default": "'Agents'",
|
|
176
|
-
"required": false,
|
|
177
|
-
"mutable": false
|
|
178
|
-
},
|
|
179
|
-
"currentArea": {
|
|
180
|
-
"type": "PanelNavItem",
|
|
181
|
-
"resolvedType": "PanelNavItem",
|
|
182
|
-
"default": "{\n id: 'tracking',\n icon: 'MapPage',\n label: 'Tracking',\n }",
|
|
183
|
-
"required": false,
|
|
184
|
-
"mutable": false
|
|
185
|
-
},
|
|
186
|
-
"inboxDot": {
|
|
187
|
-
"type": "boolean",
|
|
188
|
-
"resolvedType": "boolean",
|
|
189
|
-
"attribute": "inbox-dot",
|
|
190
|
-
"default": "false",
|
|
191
|
-
"required": false,
|
|
192
|
-
"mutable": false
|
|
193
|
-
},
|
|
194
|
-
"inboxLabel": {
|
|
195
|
-
"type": "string",
|
|
196
|
-
"resolvedType": "string",
|
|
197
|
-
"attribute": "inbox-label",
|
|
198
|
-
"default": "'Inbox'",
|
|
199
|
-
"required": false,
|
|
200
|
-
"mutable": false
|
|
201
|
-
},
|
|
202
|
-
"menuLabel": {
|
|
203
|
-
"type": "string",
|
|
204
|
-
"resolvedType": "string",
|
|
205
|
-
"attribute": "menu-label",
|
|
206
|
-
"default": "'Menu'",
|
|
207
|
-
"required": false,
|
|
208
|
-
"mutable": false
|
|
209
|
-
},
|
|
210
|
-
"navigationExpanded": {
|
|
211
|
-
"type": "boolean",
|
|
212
|
-
"resolvedType": "boolean",
|
|
213
|
-
"attribute": "navigation-expanded",
|
|
214
|
-
"default": "false",
|
|
215
|
-
"required": false,
|
|
216
|
-
"mutable": false
|
|
217
|
-
},
|
|
218
|
-
"searchDot": {
|
|
219
|
-
"type": "boolean",
|
|
220
|
-
"resolvedType": "boolean",
|
|
221
|
-
"attribute": "search-dot",
|
|
222
|
-
"default": "false",
|
|
223
|
-
"required": false,
|
|
224
|
-
"mutable": false
|
|
225
|
-
},
|
|
226
|
-
"searchLabel": {
|
|
227
|
-
"type": "string",
|
|
228
|
-
"resolvedType": "string",
|
|
229
|
-
"attribute": "search-label",
|
|
230
|
-
"default": "'Search'",
|
|
231
|
-
"required": false,
|
|
232
|
-
"mutable": false
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
"events": [
|
|
236
|
-
{
|
|
237
|
-
"name": "dsDestinationChange",
|
|
238
|
-
"detail": "ShellMobileBarDestinationDetail",
|
|
239
|
-
"bubbles": true,
|
|
240
|
-
"cancelable": true,
|
|
241
|
-
"composed": true
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"name": "dsNavigationToggle",
|
|
245
|
-
"detail": "boolean",
|
|
246
|
-
"bubbles": true,
|
|
247
|
-
"cancelable": true,
|
|
248
|
-
"composed": true
|
|
249
|
-
}
|
|
250
|
-
],
|
|
251
|
-
"methods": [
|
|
252
|
-
{
|
|
253
|
-
"name": "focusDestination",
|
|
254
|
-
"signature": "focusDestination(destination: ShellMobileDestination | \"navigation\") => Promise<void>"
|
|
255
|
-
}
|
|
256
|
-
],
|
|
257
|
-
"slots": [],
|
|
258
|
-
"exports": {
|
|
259
|
-
"customElement": "ds-shell-mobile-bar",
|
|
260
|
-
"react": "DsShellMobileBar",
|
|
261
|
-
"angular": "DsShellMobileBar"
|
|
262
|
-
},
|
|
263
|
-
"consumption": {
|
|
264
|
-
"install": "npm install @ds-mo/ui @ds-mo/tokens @ds-mo/icons",
|
|
265
|
-
"cssSetup": "import '@ds-mo/tokens';\nimport '@ds-mo/tokens/reset';\nimport '@ds-mo/tokens/globals';",
|
|
266
|
-
"customElements": {
|
|
267
|
-
"import": "import '@ds-mo/ui/dist/components/ds-shell-mobile-bar.js';",
|
|
268
|
-
"example": "<ds-shell-mobile-bar></ds-shell-mobile-bar>"
|
|
269
|
-
},
|
|
270
|
-
"react": {
|
|
271
|
-
"import": "import { DsShellMobileBar } from '@ds-mo/ui/react';",
|
|
272
|
-
"example": "<DsShellMobileBar />"
|
|
273
|
-
},
|
|
274
|
-
"angular": {
|
|
275
|
-
"import": "import { DsShellMobileBar } from '@ds-mo/ui/angular/ds-shell-mobile-bar';",
|
|
276
|
-
"example": "<ds-shell-mobile-bar></ds-shell-mobile-bar>"
|
|
277
|
-
},
|
|
278
|
-
"complexPropertyNote": "Assign these non-primitive values as JavaScript properties: currentArea.",
|
|
279
|
-
"peerDependencies": {
|
|
280
|
-
"required": [
|
|
281
|
-
"@ds-mo/tokens ^3.1.1",
|
|
282
|
-
"@ds-mo/icons ^6.4.0"
|
|
283
|
-
],
|
|
284
|
-
"frameworks": "Custom Elements; React 18/19 wrappers; Angular 19-22 standalone adapters."
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
"dependencies": [
|
|
289
|
-
"@ds-mo/ui",
|
|
290
|
-
"@ds-mo/tokens",
|
|
291
|
-
"@ds-mo/icons"
|
|
292
|
-
],
|
|
293
|
-
"registryDependencies": [
|
|
294
|
-
"icon",
|
|
295
|
-
"text"
|
|
296
|
-
],
|
|
297
|
-
"files": [
|
|
298
|
-
{
|
|
299
|
-
"path": "src/wc/components/ShellMobileBar/ShellMobileBar.css",
|
|
300
|
-
"content": "@import '../../utils/focus-ring.css';\n@import '../../utils/interaction-fill.css';\n\n:host {\n display: block;\n min-width: 0;\n background: var(--color-background-primary);\n color: var(--color-foreground-secondary);\n}\n\n.shell-mobile-bar {\n display: grid;\n grid-template-columns: repeat(5, minmax(0, 1fr));\n align-items: stretch;\n min-width: 0;\n padding: var(--dimension-space-050) var(--dimension-space-050)\n max(var(--dimension-space-050), env(safe-area-inset-bottom));\n border-top: var(--dimension-stroke-width-012) solid var(--color-border-tertiary);\n background: var(--color-background-primary);\n box-sizing: border-box;\n}\n\n.shell-mobile-bar__item {\n appearance: none;\n min-width: 0;\n min-height: var(--dimension-size-600);\n padding: var(--dimension-space-050) var(--dimension-space-025);\n border: 0;\n border-radius: var(--dimension-radius-100);\n background: transparent;\n color: inherit;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n gap: var(--dimension-space-025);\n cursor: pointer;\n}\n\n.shell-mobile-bar__item--selected {\n color: var(--color-foreground-primary);\n}\n\n.shell-mobile-bar__item ds-text {\n display: block;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.shell-mobile-bar__icon {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--dimension-iconography-md);\n height: var(--dimension-iconography-md);\n}\n\n.shell-mobile-bar__dot {\n position: absolute;\n inset-block-start: calc(var(--dimension-space-025) * -1);\n inset-inline-end: calc(var(--dimension-space-025) * -1);\n width: var(--dimension-size-075);\n height: var(--dimension-size-075);\n border-radius: var(--dimension-radius-half);\n background: var(--color-background-bold-brand);\n box-shadow: 0 0 0 var(--dimension-stroke-width-025) var(--color-background-primary);\n}\n",
|
|
301
|
-
"type": "registry:ui"
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
"path": "src/wc/components/ShellMobileBar/ShellMobileBar.tsx",
|
|
305
|
-
"content": "import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Method,\n Prop,\n} from '@stencil/core';\nimport {\n shouldEmitMobileDestinationChange,\n type ShellMobileDestination,\n} from '../../shell/shell-responsive';\nimport type { PanelNavItem } from '../PanelNav/panel-nav-types';\nimport type { ShellMobileBarDestinationDetail } from './shell-mobile-bar-types';\n\ninterface DestinationConfig {\n id: ShellMobileDestination;\n icon: string;\n label: string;\n dot: boolean;\n}\n\n@Component({\n tag: 'ds-shell-mobile-bar',\n styleUrl: 'ShellMobileBar.css',\n scoped: true,\n})\nexport class ShellMobileBar {\n @Element() el!: HTMLElement;\n\n @Prop() activeDestination: ShellMobileDestination = 'area';\n @Prop() currentArea: PanelNavItem = {\n id: 'tracking',\n icon: 'MapPage',\n label: 'Tracking',\n };\n @Prop() navigationExpanded: boolean = false;\n @Prop() menuLabel: string = 'Menu';\n @Prop() searchLabel: string = 'Search';\n @Prop() agentsLabel: string = 'Agents';\n @Prop() inboxLabel: string = 'Inbox';\n @Prop() searchDot: boolean = false;\n @Prop() agentsDot: boolean = false;\n @Prop() inboxDot: boolean = false;\n\n @Event() dsNavigationToggle!: EventEmitter<boolean>;\n @Event() dsDestinationChange!: EventEmitter<ShellMobileBarDestinationDetail>;\n\n private destinationConfig(): DestinationConfig[] {\n return [\n {\n id: 'area',\n icon: this.currentArea.icon || 'MapPage',\n label: this.currentArea.label || 'Area',\n dot: false,\n },\n { id: 'search', icon: 'MagnifyingGlass', label: this.searchLabel, dot: this.searchDot },\n { id: 'agents', icon: 'AI', label: this.agentsLabel, dot: this.agentsDot },\n { id: 'inbox', icon: 'Inbox', label: this.inboxLabel, dot: this.inboxDot },\n ];\n }\n\n private selectDestination(destination: ShellMobileDestination) {\n if (\n !shouldEmitMobileDestinationChange(\n this.activeDestination,\n destination,\n this.navigationExpanded\n )\n ) {\n return;\n }\n this.dsDestinationChange.emit({ destination });\n }\n\n @Method()\n async focusDestination(destination: ShellMobileDestination | 'navigation') {\n const target = this.el.querySelector<HTMLElement>(\n `#${\n destination === 'navigation'\n ? 'ds-shell-mobile-navigation-trigger'\n : `ds-shell-mobile-${destination}-trigger`\n }`\n );\n target?.focus({ preventScroll: true });\n }\n\n private renderDestination(item: DestinationConfig) {\n const selected = !this.navigationExpanded && item.id === this.activeDestination;\n return (\n <button\n id={`ds-shell-mobile-${item.id}-trigger`}\n type=\"button\"\n class={{\n 'shell-mobile-bar__item': true,\n 'shell-mobile-bar__item--selected': selected,\n 'ds-focus-ring-inset': true,\n 'ds-interaction-fill': true,\n 'ds-interaction-fill--selected': selected,\n }}\n aria-current={selected ? 'page' : undefined}\n onClick={() => this.selectDestination(item.id)}\n >\n <span class=\"shell-mobile-bar__icon\">\n <ds-icon name={item.icon} size=\"md\" color=\"inherit\" />\n {item.dot && (\n <span class=\"shell-mobile-bar__dot\" aria-hidden=\"true\" />\n )}\n </span>\n <ds-text as=\"span\" variant=\"text-caption\" color=\"inherit\">\n {item.label}\n </ds-text>\n </button>\n );\n }\n\n render() {\n return (\n <Host>\n <nav class=\"shell-mobile-bar\" aria-label=\"Primary\">\n <button\n id=\"ds-shell-mobile-navigation-trigger\"\n type=\"button\"\n class={{\n 'shell-mobile-bar__item': true,\n 'shell-mobile-bar__item--selected': this.navigationExpanded,\n 'ds-focus-ring-inset': true,\n 'ds-interaction-fill': true,\n 'ds-interaction-fill--selected': this.navigationExpanded,\n }}\n aria-expanded={String(this.navigationExpanded)}\n aria-controls=\"ds-shell-mobile-navigation\"\n onClick={() => this.dsNavigationToggle.emit(!this.navigationExpanded)}\n >\n <span class=\"shell-mobile-bar__icon\">\n <ds-icon name=\"Hamburger\" size=\"md\" color=\"inherit\" />\n </span>\n <ds-text\n as=\"span\"\n variant=\"text-caption\"\n color=\"inherit\"\n >\n {this.menuLabel}\n </ds-text>\n </button>\n {this.destinationConfig().map(item => this.renderDestination(item))}\n </nav>\n </Host>\n );\n }\n}\n",
|
|
306
|
-
"type": "registry:ui"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
"path": "src/wc/components/ShellMobileBar/shell-mobile-bar-types.ts",
|
|
310
|
-
"content": "import type { ShellMobileDestination } from '../../shell/shell-responsive';\n\nexport interface ShellMobileBarDestinationDetail {\n destination: ShellMobileDestination;\n}\n",
|
|
311
|
-
"type": "registry:ui"
|
|
312
|
-
}
|
|
313
|
-
]
|
|
314
|
-
}
|