@ds-mo/ui 12.4.1 → 12.6.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 +16 -0
- package/dist/.build-stamp +1 -1
- package/dist/agent-patterns.json +21 -12
- package/dist/agent.json +1541 -1426
- 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-conversation-list.js +1 -1
- package/dist/components/ds-conversation-list.js.map +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-scroller.js.map +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-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--bSkr_yn.js +2 -0
- package/dist/components/p--bSkr_yn.js.map +1 -0
- package/dist/components/p-46nk9-RO.js +2 -0
- package/dist/components/p-46nk9-RO.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-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-BrusnEYP.js.map +1 -1
- package/dist/components/p-C2ym_Ich.js +2 -0
- package/dist/components/{p-Biz6xo-z.js → p-CFpWrYAH.js} +2 -2
- package/dist/components/p-CICGtu7H.js +2 -0
- package/dist/components/{p-CtD24EyI.js.map → p-CICGtu7H.js.map} +1 -1
- package/dist/components/p-CLzlL3G4.js +2 -0
- package/dist/components/p-CLzlL3G4.js.map +1 -0
- package/dist/components/p-CXcjwduV.js +2 -0
- package/dist/components/{p-BhxwpOH8.js.map → p-CXcjwduV.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-g40DTeV8.js → p-CvKKmZJj.js} +2 -2
- package/dist/components/p-D4o2D1hk.js +2 -0
- package/dist/components/p-D4o2D1hk.js.map +1 -0
- package/dist/components/{p-DXnFhmZF.js → p-D9iN80yX.js} +2 -2
- package/dist/components/p-DD1Lgs7O.js +2 -0
- package/dist/components/p-DD1Lgs7O.js.map +1 -0
- package/dist/components/{p-DjPZxzIG.js → p-DQDpDYyF.js} +2 -2
- package/dist/components/p-DTea1Du7.js +2 -0
- package/dist/components/p-DTea1Du7.js.map +1 -0
- 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-DcFfilOX.js +2 -0
- package/dist/components/p-DcFfilOX.js.map +1 -0
- 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-DvVW0hxm.js +2 -0
- package/dist/components/p-DvVW0hxm.js.map +1 -0
- package/dist/components/p-YtgcuJYx.js +2 -0
- package/dist/components/{p-PZ6R_nGI.js.map → p-YtgcuJYx.js.map} +1 -1
- package/dist/components/p-loq_--ce.js +2 -0
- package/dist/components/{p-NUNsefU1.js.map → p-loq_--ce.js.map} +1 -1
- package/dist/docs/components.json +3586 -3064
- 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 +4 -3
- package/dist/mcp-data/registry/conversation-list.json +4 -3
- package/dist/mcp-data/registry/input.json +1 -1
- package/dist/mcp-data/registry/loader.json +2 -2
- package/dist/mcp-data/registry/message-scroller.json +3 -2
- 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 +210 -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 +1549 -1431
- 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/styles/control-elevation.css +40 -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/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 +530 -381
- 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 +2 -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-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-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-Biz6xo-z.js.map → p-CFpWrYAH.js.map} +0 -0
- /package/dist/components/{p-g40DTeV8.js.map → p-CvKKmZJj.js.map} +0 -0
- /package/dist/components/{p-DXnFhmZF.js.map → p-D9iN80yX.js.map} +0 -0
- /package/dist/components/{p-DjPZxzIG.js.map → p-DQDpDYyF.js.map} +0 -0
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "mobile-bar-nav",
|
|
4
|
+
"title": "MobileBarNav",
|
|
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/mobile-bar-nav",
|
|
11
|
+
"source": "src/wc/components/MobileBarNav/MobileBarNav.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 icon-only item keeps a localized accessible name.",
|
|
32
|
+
"Only the active destination exposes aria-current; Menu exposes its controlled pane through aria-expanded."
|
|
33
|
+
],
|
|
34
|
+
"states": [
|
|
35
|
+
"The fixed groups are Menu plus current area, followed by Search, Inbox, and Agents.",
|
|
36
|
+
"Selection promotes foreground to primary without painting a selected fill; unselected destinations use tertiary foreground.",
|
|
37
|
+
"Opening Mobile Sheet Nav replaces the Menu glyph with Cross while preserving its accessible name.",
|
|
38
|
+
"Reselecting an active destination does not reset its nested state."
|
|
39
|
+
],
|
|
40
|
+
"responsiveBehavior": [
|
|
41
|
+
"Render only below the mobile breakpoint and preserve safe-area clearance.",
|
|
42
|
+
"The two icon-only control groups remain centered with fixed 40px targets and a divider between Menu and current area."
|
|
43
|
+
],
|
|
44
|
+
"references": [
|
|
45
|
+
{
|
|
46
|
+
"label": "Storybook",
|
|
47
|
+
"path": "src/wc/components/MobileBarNav/MobileBarNav.stories.ts"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"api": {
|
|
52
|
+
"props": {
|
|
53
|
+
"activeDestination": {
|
|
54
|
+
"type": "MobileDestination",
|
|
55
|
+
"resolvedType": "\"agents\" | \"area\" | \"help\" | \"inbox\" | \"search\"",
|
|
56
|
+
"attribute": "active-destination",
|
|
57
|
+
"default": "'area'",
|
|
58
|
+
"required": false,
|
|
59
|
+
"mutable": false
|
|
60
|
+
},
|
|
61
|
+
"agentsDot": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"resolvedType": "boolean",
|
|
64
|
+
"attribute": "agents-dot",
|
|
65
|
+
"default": "false",
|
|
66
|
+
"required": false,
|
|
67
|
+
"mutable": false
|
|
68
|
+
},
|
|
69
|
+
"agentsLabel": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"resolvedType": "string",
|
|
72
|
+
"attribute": "agents-label",
|
|
73
|
+
"default": "'Agents'",
|
|
74
|
+
"required": false,
|
|
75
|
+
"mutable": false
|
|
76
|
+
},
|
|
77
|
+
"currentArea": {
|
|
78
|
+
"type": "PanelNavItem",
|
|
79
|
+
"resolvedType": "PanelNavItem",
|
|
80
|
+
"default": "{\n id: 'tracking',\n icon: 'MapPage',\n label: 'Tracking',\n }",
|
|
81
|
+
"required": false,
|
|
82
|
+
"mutable": false
|
|
83
|
+
},
|
|
84
|
+
"helpLabel": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"resolvedType": "string",
|
|
87
|
+
"attribute": "help-label",
|
|
88
|
+
"default": "'Help & Support'",
|
|
89
|
+
"required": false,
|
|
90
|
+
"mutable": false
|
|
91
|
+
},
|
|
92
|
+
"inboxDot": {
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"resolvedType": "boolean",
|
|
95
|
+
"attribute": "inbox-dot",
|
|
96
|
+
"default": "false",
|
|
97
|
+
"required": false,
|
|
98
|
+
"mutable": false
|
|
99
|
+
},
|
|
100
|
+
"inboxLabel": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"resolvedType": "string",
|
|
103
|
+
"attribute": "inbox-label",
|
|
104
|
+
"default": "'Inbox'",
|
|
105
|
+
"required": false,
|
|
106
|
+
"mutable": false
|
|
107
|
+
},
|
|
108
|
+
"menuLabel": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"resolvedType": "string",
|
|
111
|
+
"attribute": "menu-label",
|
|
112
|
+
"default": "'Menu'",
|
|
113
|
+
"required": false,
|
|
114
|
+
"mutable": false
|
|
115
|
+
},
|
|
116
|
+
"searchDot": {
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"resolvedType": "boolean",
|
|
119
|
+
"attribute": "search-dot",
|
|
120
|
+
"default": "false",
|
|
121
|
+
"required": false,
|
|
122
|
+
"mutable": false
|
|
123
|
+
},
|
|
124
|
+
"searchLabel": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"resolvedType": "string",
|
|
127
|
+
"attribute": "search-label",
|
|
128
|
+
"default": "'Search'",
|
|
129
|
+
"required": false,
|
|
130
|
+
"mutable": false
|
|
131
|
+
},
|
|
132
|
+
"sheetNavExpanded": {
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"resolvedType": "boolean",
|
|
135
|
+
"attribute": "sheet-nav-expanded",
|
|
136
|
+
"default": "false",
|
|
137
|
+
"required": false,
|
|
138
|
+
"mutable": false
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"events": [
|
|
142
|
+
{
|
|
143
|
+
"name": "dsDestinationChange",
|
|
144
|
+
"detail": "MobileBarNavDestinationDetail",
|
|
145
|
+
"bubbles": true,
|
|
146
|
+
"cancelable": true,
|
|
147
|
+
"composed": true
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "dsSheetNavToggle",
|
|
151
|
+
"detail": "boolean",
|
|
152
|
+
"bubbles": true,
|
|
153
|
+
"cancelable": true,
|
|
154
|
+
"composed": true
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"methods": [
|
|
158
|
+
{
|
|
159
|
+
"name": "focusDestination",
|
|
160
|
+
"signature": "focusDestination(destination: MobileDestination | \"sheet-nav\") => Promise<void>"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"slots": []
|
|
164
|
+
},
|
|
165
|
+
"props": {
|
|
166
|
+
"activeDestination": {
|
|
167
|
+
"type": "MobileDestination",
|
|
168
|
+
"resolvedType": "\"agents\" | \"area\" | \"help\" | \"inbox\" | \"search\"",
|
|
169
|
+
"attribute": "active-destination",
|
|
170
|
+
"default": "'area'",
|
|
171
|
+
"required": false,
|
|
172
|
+
"mutable": false
|
|
173
|
+
},
|
|
174
|
+
"agentsDot": {
|
|
175
|
+
"type": "boolean",
|
|
176
|
+
"resolvedType": "boolean",
|
|
177
|
+
"attribute": "agents-dot",
|
|
178
|
+
"default": "false",
|
|
179
|
+
"required": false,
|
|
180
|
+
"mutable": false
|
|
181
|
+
},
|
|
182
|
+
"agentsLabel": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"resolvedType": "string",
|
|
185
|
+
"attribute": "agents-label",
|
|
186
|
+
"default": "'Agents'",
|
|
187
|
+
"required": false,
|
|
188
|
+
"mutable": false
|
|
189
|
+
},
|
|
190
|
+
"currentArea": {
|
|
191
|
+
"type": "PanelNavItem",
|
|
192
|
+
"resolvedType": "PanelNavItem",
|
|
193
|
+
"default": "{\n id: 'tracking',\n icon: 'MapPage',\n label: 'Tracking',\n }",
|
|
194
|
+
"required": false,
|
|
195
|
+
"mutable": false
|
|
196
|
+
},
|
|
197
|
+
"helpLabel": {
|
|
198
|
+
"type": "string",
|
|
199
|
+
"resolvedType": "string",
|
|
200
|
+
"attribute": "help-label",
|
|
201
|
+
"default": "'Help & Support'",
|
|
202
|
+
"required": false,
|
|
203
|
+
"mutable": false
|
|
204
|
+
},
|
|
205
|
+
"inboxDot": {
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"resolvedType": "boolean",
|
|
208
|
+
"attribute": "inbox-dot",
|
|
209
|
+
"default": "false",
|
|
210
|
+
"required": false,
|
|
211
|
+
"mutable": false
|
|
212
|
+
},
|
|
213
|
+
"inboxLabel": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"resolvedType": "string",
|
|
216
|
+
"attribute": "inbox-label",
|
|
217
|
+
"default": "'Inbox'",
|
|
218
|
+
"required": false,
|
|
219
|
+
"mutable": false
|
|
220
|
+
},
|
|
221
|
+
"menuLabel": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"resolvedType": "string",
|
|
224
|
+
"attribute": "menu-label",
|
|
225
|
+
"default": "'Menu'",
|
|
226
|
+
"required": false,
|
|
227
|
+
"mutable": false
|
|
228
|
+
},
|
|
229
|
+
"searchDot": {
|
|
230
|
+
"type": "boolean",
|
|
231
|
+
"resolvedType": "boolean",
|
|
232
|
+
"attribute": "search-dot",
|
|
233
|
+
"default": "false",
|
|
234
|
+
"required": false,
|
|
235
|
+
"mutable": false
|
|
236
|
+
},
|
|
237
|
+
"searchLabel": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"resolvedType": "string",
|
|
240
|
+
"attribute": "search-label",
|
|
241
|
+
"default": "'Search'",
|
|
242
|
+
"required": false,
|
|
243
|
+
"mutable": false
|
|
244
|
+
},
|
|
245
|
+
"sheetNavExpanded": {
|
|
246
|
+
"type": "boolean",
|
|
247
|
+
"resolvedType": "boolean",
|
|
248
|
+
"attribute": "sheet-nav-expanded",
|
|
249
|
+
"default": "false",
|
|
250
|
+
"required": false,
|
|
251
|
+
"mutable": false
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"events": [
|
|
255
|
+
{
|
|
256
|
+
"name": "dsDestinationChange",
|
|
257
|
+
"detail": "MobileBarNavDestinationDetail",
|
|
258
|
+
"bubbles": true,
|
|
259
|
+
"cancelable": true,
|
|
260
|
+
"composed": true
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "dsSheetNavToggle",
|
|
264
|
+
"detail": "boolean",
|
|
265
|
+
"bubbles": true,
|
|
266
|
+
"cancelable": true,
|
|
267
|
+
"composed": true
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"methods": [
|
|
271
|
+
{
|
|
272
|
+
"name": "focusDestination",
|
|
273
|
+
"signature": "focusDestination(destination: MobileDestination | \"sheet-nav\") => Promise<void>"
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"slots": [],
|
|
277
|
+
"exports": {
|
|
278
|
+
"customElement": "ds-mobile-bar-nav",
|
|
279
|
+
"react": "DsMobileBarNav",
|
|
280
|
+
"angular": "DsMobileBarNav"
|
|
281
|
+
},
|
|
282
|
+
"consumption": {
|
|
283
|
+
"install": "npm install @ds-mo/ui @ds-mo/tokens @ds-mo/icons",
|
|
284
|
+
"cssSetup": "import '@ds-mo/tokens';\nimport '@ds-mo/tokens/reset';\nimport '@ds-mo/tokens/globals';",
|
|
285
|
+
"customElements": {
|
|
286
|
+
"import": "import '@ds-mo/ui/dist/components/ds-mobile-bar-nav.js';",
|
|
287
|
+
"example": "<ds-mobile-bar-nav></ds-mobile-bar-nav>"
|
|
288
|
+
},
|
|
289
|
+
"react": {
|
|
290
|
+
"import": "import { DsMobileBarNav } from '@ds-mo/ui/react';",
|
|
291
|
+
"example": "<DsMobileBarNav />"
|
|
292
|
+
},
|
|
293
|
+
"angular": {
|
|
294
|
+
"import": "import { DsMobileBarNav } from '@ds-mo/ui/angular/ds-mobile-bar-nav';",
|
|
295
|
+
"example": "<ds-mobile-bar-nav></ds-mobile-bar-nav>"
|
|
296
|
+
},
|
|
297
|
+
"complexPropertyNote": "Assign these non-primitive values as JavaScript properties: currentArea.",
|
|
298
|
+
"peerDependencies": {
|
|
299
|
+
"required": [
|
|
300
|
+
"@ds-mo/tokens ^3.1.1",
|
|
301
|
+
"@ds-mo/icons ^6.4.0"
|
|
302
|
+
],
|
|
303
|
+
"frameworks": "Custom Elements; React 18/19 wrappers; Angular 19-22 standalone adapters."
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"dependencies": [
|
|
308
|
+
"@ds-mo/ui",
|
|
309
|
+
"@ds-mo/tokens",
|
|
310
|
+
"@ds-mo/icons"
|
|
311
|
+
],
|
|
312
|
+
"registryDependencies": [
|
|
313
|
+
"badge",
|
|
314
|
+
"icon"
|
|
315
|
+
],
|
|
316
|
+
"files": [
|
|
317
|
+
{
|
|
318
|
+
"path": "src/wc/components/MobileBarNav/MobileBarNav.css",
|
|
319
|
+
"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-tertiary);\n}\n\n.mobile-bar-nav {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--dimension-space-200);\n min-width: 0;\n padding: var(--dimension-space-200) var(--dimension-space-200)\n max(var(--dimension-space-200), 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.mobile-bar-nav__group {\n display: flex;\n align-items: center;\n gap: var(--dimension-space-100);\n}\n\n.mobile-bar-nav__item {\n appearance: none;\n flex: 0 0 var(--dimension-size-500);\n width: var(--dimension-size-500);\n height: var(--dimension-size-500);\n padding: var(--dimension-space-100);\n border: 0;\n border-radius: var(--dimension-radius-025);\n background: transparent;\n color: inherit;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n\n.mobile-bar-nav__item--selected {\n color: var(--color-foreground-primary);\n}\n\n.mobile-bar-nav__divider {\n flex: 0 0 var(--dimension-stroke-width-012);\n width: var(--dimension-stroke-width-012);\n height: var(--dimension-iconography-lg);\n background: var(--color-border-tertiary);\n}\n\n.mobile-bar-nav__icon {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--dimension-iconography-lg);\n height: var(--dimension-iconography-lg);\n}\n\n.mobile-bar-nav__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}\n",
|
|
320
|
+
"type": "registry:ui"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"path": "src/wc/components/MobileBarNav/MobileBarNav.tsx",
|
|
324
|
+
"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 MobileDestination,\n} from '../../shell/shell-responsive';\nimport type { PanelNavItem } from '../PanelNav/panel-nav-types';\nimport type { MobileBarNavDestinationDetail } from './mobile-bar-nav-types';\n\ninterface DestinationConfig {\n id: MobileDestination;\n icon: string;\n label: string;\n dot: boolean;\n}\n\n@Component({\n tag: 'ds-mobile-bar-nav',\n styleUrl: 'MobileBarNav.css',\n scoped: true,\n})\nexport class MobileBarNav {\n @Element() el!: HTMLElement;\n\n @Prop() activeDestination: MobileDestination = 'area';\n @Prop() currentArea: PanelNavItem = {\n id: 'tracking',\n icon: 'MapPage',\n label: 'Tracking',\n };\n @Prop() sheetNavExpanded: boolean = false;\n @Prop() menuLabel: string = 'Menu';\n @Prop() searchLabel: string = 'Search';\n @Prop() agentsLabel: string = 'Agents';\n @Prop() inboxLabel: string = 'Inbox';\n @Prop() helpLabel: string = 'Help & Support';\n @Prop() searchDot: boolean = false;\n @Prop() agentsDot: boolean = false;\n @Prop() inboxDot: boolean = false;\n\n @Event() dsSheetNavToggle!: EventEmitter<boolean>;\n @Event() dsDestinationChange!: EventEmitter<MobileBarNavDestinationDetail>;\n\n private destinationConfig(): DestinationConfig[] {\n const currentArea =\n this.activeDestination === 'help'\n ? {\n id: 'help' as const,\n icon: 'CircleQuestion',\n label: this.helpLabel,\n dot: false,\n }\n : {\n id: 'area' as const,\n icon: this.currentArea.icon || 'MapPage',\n label: this.currentArea.label || 'Area',\n dot: false,\n };\n\n return [\n currentArea,\n { id: 'search', icon: 'MagnifyingGlass', label: this.searchLabel, dot: this.searchDot },\n { id: 'inbox', icon: 'Inbox', label: this.inboxLabel, dot: this.inboxDot },\n { id: 'agents', icon: 'AI', label: this.agentsLabel, dot: this.agentsDot },\n ];\n }\n\n private selectDestination(destination: MobileDestination) {\n if (\n !shouldEmitMobileDestinationChange(\n this.activeDestination,\n destination,\n this.sheetNavExpanded\n )\n ) {\n return;\n }\n this.dsDestinationChange.emit({ destination });\n }\n\n @Method()\n async focusDestination(destination: MobileDestination | 'sheet-nav') {\n const target = this.el.querySelector<HTMLElement>(\n `#${\n destination === 'sheet-nav'\n ? 'ds-mobile-sheet-nav-trigger'\n : `ds-mobile-bar-${destination}-trigger`\n }`\n );\n target?.focus({ preventScroll: true });\n }\n\n private renderDestination(item: DestinationConfig) {\n const selected = !this.sheetNavExpanded && item.id === this.activeDestination;\n return (\n <button\n id={`ds-mobile-bar-${item.id}-trigger`}\n type=\"button\"\n class={{\n 'mobile-bar-nav__item': true,\n 'mobile-bar-nav__item--selected': selected,\n 'ds-focus-ring-inset': true,\n 'ds-interaction-fill': true,\n }}\n aria-label={item.label}\n aria-current={selected ? 'page' : undefined}\n onClick={() => this.selectDestination(item.id)}\n >\n <span class=\"mobile-bar-nav__icon ds-interaction-fill__content\">\n <ds-icon name={item.icon} size=\"lg\" color=\"inherit\" />\n {item.dot && (\n <ds-badge class=\"mobile-bar-nav__dot\" variant=\"dot\" label=\"\" aria-hidden=\"true\" />\n )}\n </span>\n </button>\n );\n }\n\n render() {\n const [currentArea, ...tools] = this.destinationConfig();\n\n return (\n <Host>\n <nav class=\"mobile-bar-nav\" aria-label=\"Primary\">\n <div class=\"mobile-bar-nav__group mobile-bar-nav__group--context\">\n <button\n id=\"ds-mobile-sheet-nav-trigger\"\n type=\"button\"\n class={{\n 'mobile-bar-nav__item': true,\n 'mobile-bar-nav__item--selected': this.sheetNavExpanded,\n 'ds-focus-ring-inset': true,\n 'ds-interaction-fill': true,\n }}\n aria-label={this.menuLabel}\n aria-expanded={String(this.sheetNavExpanded)}\n aria-controls=\"ds-mobile-sheet-nav\"\n onClick={() => this.dsSheetNavToggle.emit(!this.sheetNavExpanded)}\n >\n <span class=\"mobile-bar-nav__icon ds-interaction-fill__content\">\n <ds-icon\n name={this.sheetNavExpanded ? 'Cross' : 'Hamburger'}\n size=\"lg\"\n color=\"inherit\"\n />\n </span>\n </button>\n <span class=\"mobile-bar-nav__divider\" aria-hidden=\"true\" />\n {this.renderDestination(currentArea)}\n </div>\n <div class=\"mobile-bar-nav__group mobile-bar-nav__group--tools\">\n {tools.map(item => this.renderDestination(item))}\n </div>\n </nav>\n </Host>\n );\n }\n}\n",
|
|
325
|
+
"type": "registry:ui"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"path": "src/wc/components/MobileBarNav/mobile-bar-nav-types.ts",
|
|
329
|
+
"content": "import type { MobileDestination } from '../../shell/shell-responsive';\n\nexport interface MobileBarNavDestinationDetail {\n destination: MobileDestination;\n}\n",
|
|
330
|
+
"type": "registry:ui"
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
}
|