@xyo-network/react-appbar 2.64.8 → 2.64.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/docs.json +25953 -12945
- package/package.json +13 -13
- package/dist/browser/components/AppBar/Application.cjs +0 -286
- package/dist/browser/components/AppBar/Application.cjs.map +0 -1
- package/dist/browser/components/AppBar/Application.js +0 -265
- package/dist/browser/components/AppBar/Application.js.map +0 -1
- package/dist/browser/components/AppBar/index.cjs +0 -288
- package/dist/browser/components/AppBar/index.cjs.map +0 -1
- package/dist/browser/components/AppBar/index.js +0 -265
- package/dist/browser/components/AppBar/index.js.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.cjs +0 -61
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.cjs.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.js +0 -40
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.js.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.cjs +0 -66
- package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.cjs.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.js +0 -45
- package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.js.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/index.cjs +0 -96
- package/dist/browser/components/CollapsibleDrawer/index.cjs.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/index.js +0 -73
- package/dist/browser/components/CollapsibleDrawer/index.js.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.cjs +0 -92
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.cjs.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.js +0 -84
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControls.cjs +0 -143
- package/dist/browser/components/MobileSystemControls/SystemControls.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControls.js +0 -122
- package/dist/browser/components/MobileSystemControls/SystemControls.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsRoot.cjs +0 -134
- package/dist/browser/components/MobileSystemControls/SystemControlsRoot.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsRoot.js +0 -113
- package/dist/browser/components/MobileSystemControls/SystemControlsRoot.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsType.cjs +0 -32
- package/dist/browser/components/MobileSystemControls/SystemControlsType.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsType.js +0 -11
- package/dist/browser/components/MobileSystemControls/SystemControlsType.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.cjs +0 -75
- package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.js +0 -54
- package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/controls/SystemControl.cjs +0 -49
- package/dist/browser/components/MobileSystemControls/controls/SystemControl.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/controls/SystemControl.js +0 -28
- package/dist/browser/components/MobileSystemControls/controls/SystemControl.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/controls/SystemControlText.cjs +0 -32
- package/dist/browser/components/MobileSystemControls/controls/SystemControlText.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/controls/SystemControlText.js +0 -11
- package/dist/browser/components/MobileSystemControls/controls/SystemControlText.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/controls/index.cjs +0 -60
- package/dist/browser/components/MobileSystemControls/controls/index.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/controls/index.js +0 -37
- package/dist/browser/components/MobileSystemControls/controls/index.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/index.cjs +0 -155
- package/dist/browser/components/MobileSystemControls/index.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/index.js +0 -132
- package/dist/browser/components/MobileSystemControls/index.js.map +0 -1
- package/dist/browser/components/SearchBar/SearchBar.cjs +0 -53
- package/dist/browser/components/SearchBar/SearchBar.cjs.map +0 -1
- package/dist/browser/components/SearchBar/SearchBar.js +0 -32
- package/dist/browser/components/SearchBar/SearchBar.js.map +0 -1
- package/dist/browser/components/SearchBar/index.cjs +0 -55
- package/dist/browser/components/SearchBar/index.cjs.map +0 -1
- package/dist/browser/components/SearchBar/index.js +0 -32
- package/dist/browser/components/SearchBar/index.js.map +0 -1
- package/dist/browser/components/SiteMenu/Menu.cjs +0 -193
- package/dist/browser/components/SiteMenu/Menu.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/Menu.js +0 -172
- package/dist/browser/components/SiteMenu/Menu.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs +0 -153
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.js +0 -132
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/index.cjs +0 -155
- package/dist/browser/components/SiteMenu/MenuListItem/index.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/index.js +0 -132
- package/dist/browser/components/SiteMenu/MenuListItem/index.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs +0 -33
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js +0 -12
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs +0 -31
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js +0 -10
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs +0 -34
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js +0 -13
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.cjs +0 -54
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.js +0 -31
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs +0 -31
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js +0 -10
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs +0 -43
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js +0 -22
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.cjs +0 -53
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.js +0 -30
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuSection.cjs +0 -166
- package/dist/browser/components/SiteMenu/MenuSection.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuSection.js +0 -145
- package/dist/browser/components/SiteMenu/MenuSection.js.map +0 -1
- package/dist/browser/components/SiteMenu/hooks/index.cjs +0 -58
- package/dist/browser/components/SiteMenu/hooks/index.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/hooks/index.js +0 -35
- package/dist/browser/components/SiteMenu/hooks/index.js.map +0 -1
- package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.cjs +0 -56
- package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.js +0 -35
- package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.js.map +0 -1
- package/dist/browser/components/SiteMenu/index.cjs +0 -233
- package/dist/browser/components/SiteMenu/index.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/index.js +0 -210
- package/dist/browser/components/SiteMenu/index.js.map +0 -1
- package/dist/browser/components/SiteMenu/lib/MenuListItemBase.cjs +0 -19
- package/dist/browser/components/SiteMenu/lib/MenuListItemBase.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/lib/MenuListItemBase.js +0 -1
- package/dist/browser/components/SiteMenu/lib/MenuListItemBase.js.map +0 -1
- package/dist/browser/components/SiteMenu/lib/NavListItemProps.cjs +0 -19
- package/dist/browser/components/SiteMenu/lib/NavListItemProps.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/lib/NavListItemProps.js +0 -1
- package/dist/browser/components/SiteMenu/lib/NavListItemProps.js.map +0 -1
- package/dist/browser/components/SiteMenu/lib/index.cjs +0 -19
- package/dist/browser/components/SiteMenu/lib/index.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/lib/index.js +0 -1
- package/dist/browser/components/SiteMenu/lib/index.js.map +0 -1
- package/dist/browser/components/Toolbar/Context/ContextToolbar.cjs +0 -72
- package/dist/browser/components/Toolbar/Context/ContextToolbar.cjs.map +0 -1
- package/dist/browser/components/Toolbar/Context/ContextToolbar.js +0 -51
- package/dist/browser/components/Toolbar/Context/ContextToolbar.js.map +0 -1
- package/dist/browser/components/Toolbar/Context/Logo.cjs +0 -33
- package/dist/browser/components/Toolbar/Context/Logo.cjs.map +0 -1
- package/dist/browser/components/Toolbar/Context/Logo.js +0 -12
- package/dist/browser/components/Toolbar/Context/Logo.js.map +0 -1
- package/dist/browser/components/Toolbar/Context/LogoLinkEx.cjs +0 -63
- package/dist/browser/components/Toolbar/Context/LogoLinkEx.cjs.map +0 -1
- package/dist/browser/components/Toolbar/Context/LogoLinkEx.js +0 -42
- package/dist/browser/components/Toolbar/Context/LogoLinkEx.js.map +0 -1
- package/dist/browser/components/Toolbar/Context/index.cjs +0 -74
- package/dist/browser/components/Toolbar/Context/index.cjs.map +0 -1
- package/dist/browser/components/Toolbar/Context/index.js +0 -51
- package/dist/browser/components/Toolbar/Context/index.js.map +0 -1
- package/dist/browser/components/Toolbar/System/SystemToolbar.cjs +0 -220
- package/dist/browser/components/Toolbar/System/SystemToolbar.cjs.map +0 -1
- package/dist/browser/components/Toolbar/System/SystemToolbar.js +0 -199
- package/dist/browser/components/Toolbar/System/SystemToolbar.js.map +0 -1
- package/dist/browser/components/Toolbar/System/index.cjs +0 -222
- package/dist/browser/components/Toolbar/System/index.cjs.map +0 -1
- package/dist/browser/components/Toolbar/System/index.js +0 -199
- package/dist/browser/components/Toolbar/System/index.js.map +0 -1
- package/dist/browser/components/Toolbar/index.cjs +0 -271
- package/dist/browser/components/Toolbar/index.cjs.map +0 -1
- package/dist/browser/components/Toolbar/index.js +0 -248
- package/dist/browser/components/Toolbar/index.js.map +0 -1
- package/dist/browser/components/index.cjs +0 -550
- package/dist/browser/components/index.cjs.map +0 -1
- package/dist/browser/components/index.js +0 -527
- package/dist/browser/components/index.js.map +0 -1
- package/dist/browser/contexts/Collapsible/State.cjs +0 -19
- package/dist/browser/contexts/Collapsible/State.cjs.map +0 -1
- package/dist/browser/contexts/Collapsible/State.js +0 -1
- package/dist/browser/contexts/Collapsible/State.js.map +0 -1
- package/dist/browser/contexts/Collapsible/context.cjs +0 -28
- package/dist/browser/contexts/Collapsible/context.cjs.map +0 -1
- package/dist/browser/contexts/Collapsible/context.js +0 -7
- package/dist/browser/contexts/Collapsible/context.js.map +0 -1
- package/dist/browser/contexts/Collapsible/index.cjs +0 -52
- package/dist/browser/contexts/Collapsible/index.cjs.map +0 -1
- package/dist/browser/contexts/Collapsible/index.js +0 -29
- package/dist/browser/contexts/Collapsible/index.js.map +0 -1
- package/dist/browser/contexts/Collapsible/provider.cjs +0 -45
- package/dist/browser/contexts/Collapsible/provider.cjs.map +0 -1
- package/dist/browser/contexts/Collapsible/provider.js +0 -24
- package/dist/browser/contexts/Collapsible/provider.js.map +0 -1
- package/dist/browser/contexts/Collapsible/use.cjs +0 -34
- package/dist/browser/contexts/Collapsible/use.cjs.map +0 -1
- package/dist/browser/contexts/Collapsible/use.js +0 -13
- package/dist/browser/contexts/Collapsible/use.js.map +0 -1
- package/dist/browser/contexts/index.cjs +0 -52
- package/dist/browser/contexts/index.cjs.map +0 -1
- package/dist/browser/contexts/index.js +0 -29
- package/dist/browser/contexts/index.js.map +0 -1
- package/dist/node/components/AppBar/Application.cjs +0 -290
- package/dist/node/components/AppBar/Application.cjs.map +0 -1
- package/dist/node/components/AppBar/Application.js +0 -265
- package/dist/node/components/AppBar/Application.js.map +0 -1
- package/dist/node/components/AppBar/index.cjs +0 -292
- package/dist/node/components/AppBar/index.cjs.map +0 -1
- package/dist/node/components/AppBar/index.js +0 -265
- package/dist/node/components/AppBar/index.js.map +0 -1
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.cjs +0 -65
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.cjs.map +0 -1
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.js +0 -40
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.js.map +0 -1
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.cjs +0 -70
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.cjs.map +0 -1
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.js +0 -45
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.js.map +0 -1
- package/dist/node/components/CollapsibleDrawer/index.cjs +0 -101
- package/dist/node/components/CollapsibleDrawer/index.cjs.map +0 -1
- package/dist/node/components/CollapsibleDrawer/index.js +0 -73
- package/dist/node/components/CollapsibleDrawer/index.js.map +0 -1
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.cjs +0 -97
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.cjs.map +0 -1
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.js +0 -84
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.js.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControls.cjs +0 -147
- package/dist/node/components/MobileSystemControls/SystemControls.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControls.js +0 -122
- package/dist/node/components/MobileSystemControls/SystemControls.js.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.cjs +0 -138
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.js +0 -113
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.js.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsType.cjs +0 -36
- package/dist/node/components/MobileSystemControls/SystemControlsType.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsType.js +0 -11
- package/dist/node/components/MobileSystemControls/SystemControlsType.js.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.cjs +0 -79
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.js +0 -54
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.js.map +0 -1
- package/dist/node/components/MobileSystemControls/controls/SystemControl.cjs +0 -53
- package/dist/node/components/MobileSystemControls/controls/SystemControl.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/controls/SystemControl.js +0 -28
- package/dist/node/components/MobileSystemControls/controls/SystemControl.js.map +0 -1
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.cjs +0 -36
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.js +0 -11
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.js.map +0 -1
- package/dist/node/components/MobileSystemControls/controls/index.cjs +0 -65
- package/dist/node/components/MobileSystemControls/controls/index.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/controls/index.js +0 -37
- package/dist/node/components/MobileSystemControls/controls/index.js.map +0 -1
- package/dist/node/components/MobileSystemControls/index.cjs +0 -161
- package/dist/node/components/MobileSystemControls/index.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/index.js +0 -132
- package/dist/node/components/MobileSystemControls/index.js.map +0 -1
- package/dist/node/components/SearchBar/SearchBar.cjs +0 -57
- package/dist/node/components/SearchBar/SearchBar.cjs.map +0 -1
- package/dist/node/components/SearchBar/SearchBar.js +0 -32
- package/dist/node/components/SearchBar/SearchBar.js.map +0 -1
- package/dist/node/components/SearchBar/index.cjs +0 -59
- package/dist/node/components/SearchBar/index.cjs.map +0 -1
- package/dist/node/components/SearchBar/index.js +0 -32
- package/dist/node/components/SearchBar/index.js.map +0 -1
- package/dist/node/components/SiteMenu/Menu.cjs +0 -197
- package/dist/node/components/SiteMenu/Menu.cjs.map +0 -1
- package/dist/node/components/SiteMenu/Menu.js +0 -172
- package/dist/node/components/SiteMenu/Menu.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs +0 -157
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.js +0 -132
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/index.cjs +0 -159
- package/dist/node/components/SiteMenu/MenuListItem/index.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/index.js +0 -132
- package/dist/node/components/SiteMenu/MenuListItem/index.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs +0 -37
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js +0 -12
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs +0 -35
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js +0 -10
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs +0 -38
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js +0 -13
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.cjs +0 -60
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.js +0 -31
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs +0 -35
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js +0 -10
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs +0 -47
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js +0 -22
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.cjs +0 -58
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.js +0 -30
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuSection.cjs +0 -170
- package/dist/node/components/SiteMenu/MenuSection.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuSection.js +0 -145
- package/dist/node/components/SiteMenu/MenuSection.js.map +0 -1
- package/dist/node/components/SiteMenu/hooks/index.cjs +0 -62
- package/dist/node/components/SiteMenu/hooks/index.cjs.map +0 -1
- package/dist/node/components/SiteMenu/hooks/index.js +0 -35
- package/dist/node/components/SiteMenu/hooks/index.js.map +0 -1
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.cjs +0 -60
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.cjs.map +0 -1
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.js +0 -35
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.js.map +0 -1
- package/dist/node/components/SiteMenu/index.cjs +0 -240
- package/dist/node/components/SiteMenu/index.cjs.map +0 -1
- package/dist/node/components/SiteMenu/index.js +0 -210
- package/dist/node/components/SiteMenu/index.js.map +0 -1
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.cjs +0 -19
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.cjs.map +0 -1
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.js +0 -1
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.js.map +0 -1
- package/dist/node/components/SiteMenu/lib/NavListItemProps.cjs +0 -19
- package/dist/node/components/SiteMenu/lib/NavListItemProps.cjs.map +0 -1
- package/dist/node/components/SiteMenu/lib/NavListItemProps.js +0 -1
- package/dist/node/components/SiteMenu/lib/NavListItemProps.js.map +0 -1
- package/dist/node/components/SiteMenu/lib/index.cjs +0 -19
- package/dist/node/components/SiteMenu/lib/index.cjs.map +0 -1
- package/dist/node/components/SiteMenu/lib/index.js +0 -1
- package/dist/node/components/SiteMenu/lib/index.js.map +0 -1
- package/dist/node/components/Toolbar/Context/ContextToolbar.cjs +0 -76
- package/dist/node/components/Toolbar/Context/ContextToolbar.cjs.map +0 -1
- package/dist/node/components/Toolbar/Context/ContextToolbar.js +0 -51
- package/dist/node/components/Toolbar/Context/ContextToolbar.js.map +0 -1
- package/dist/node/components/Toolbar/Context/Logo.cjs +0 -37
- package/dist/node/components/Toolbar/Context/Logo.cjs.map +0 -1
- package/dist/node/components/Toolbar/Context/Logo.js +0 -12
- package/dist/node/components/Toolbar/Context/Logo.js.map +0 -1
- package/dist/node/components/Toolbar/Context/LogoLinkEx.cjs +0 -67
- package/dist/node/components/Toolbar/Context/LogoLinkEx.cjs.map +0 -1
- package/dist/node/components/Toolbar/Context/LogoLinkEx.js +0 -42
- package/dist/node/components/Toolbar/Context/LogoLinkEx.js.map +0 -1
- package/dist/node/components/Toolbar/Context/index.cjs +0 -78
- package/dist/node/components/Toolbar/Context/index.cjs.map +0 -1
- package/dist/node/components/Toolbar/Context/index.js +0 -51
- package/dist/node/components/Toolbar/Context/index.js.map +0 -1
- package/dist/node/components/Toolbar/System/SystemToolbar.cjs +0 -224
- package/dist/node/components/Toolbar/System/SystemToolbar.cjs.map +0 -1
- package/dist/node/components/Toolbar/System/SystemToolbar.js +0 -199
- package/dist/node/components/Toolbar/System/SystemToolbar.js.map +0 -1
- package/dist/node/components/Toolbar/System/index.cjs +0 -226
- package/dist/node/components/Toolbar/System/index.cjs.map +0 -1
- package/dist/node/components/Toolbar/System/index.js +0 -199
- package/dist/node/components/Toolbar/System/index.js.map +0 -1
- package/dist/node/components/Toolbar/index.cjs +0 -276
- package/dist/node/components/Toolbar/index.cjs.map +0 -1
- package/dist/node/components/Toolbar/index.js +0 -248
- package/dist/node/components/Toolbar/index.js.map +0 -1
- package/dist/node/components/index.cjs +0 -566
- package/dist/node/components/index.cjs.map +0 -1
- package/dist/node/components/index.js +0 -527
- package/dist/node/components/index.js.map +0 -1
- package/dist/node/contexts/Collapsible/State.cjs +0 -19
- package/dist/node/contexts/Collapsible/State.cjs.map +0 -1
- package/dist/node/contexts/Collapsible/State.js +0 -1
- package/dist/node/contexts/Collapsible/State.js.map +0 -1
- package/dist/node/contexts/Collapsible/context.cjs +0 -32
- package/dist/node/contexts/Collapsible/context.cjs.map +0 -1
- package/dist/node/contexts/Collapsible/context.js +0 -7
- package/dist/node/contexts/Collapsible/context.js.map +0 -1
- package/dist/node/contexts/Collapsible/index.cjs +0 -57
- package/dist/node/contexts/Collapsible/index.cjs.map +0 -1
- package/dist/node/contexts/Collapsible/index.js +0 -29
- package/dist/node/contexts/Collapsible/index.js.map +0 -1
- package/dist/node/contexts/Collapsible/provider.cjs +0 -49
- package/dist/node/contexts/Collapsible/provider.cjs.map +0 -1
- package/dist/node/contexts/Collapsible/provider.js +0 -24
- package/dist/node/contexts/Collapsible/provider.js.map +0 -1
- package/dist/node/contexts/Collapsible/use.cjs +0 -38
- package/dist/node/contexts/Collapsible/use.cjs.map +0 -1
- package/dist/node/contexts/Collapsible/use.js +0 -13
- package/dist/node/contexts/Collapsible/use.js.map +0 -1
- package/dist/node/contexts/index.cjs +0 -57
- package/dist/node/contexts/index.cjs.map +0 -1
- package/dist/node/contexts/index.js +0 -29
- package/dist/node/contexts/index.js.map +0 -1
@@ -1,210 +0,0 @@
|
|
1
|
-
// src/components/SiteMenu/hooks/useMenuItemsShared.tsx
|
2
|
-
import { useMemo } from "react";
|
3
|
-
|
4
|
-
// src/contexts/Collapsible/context.ts
|
5
|
-
import { createContextEx } from "@xyo-network/react-shared";
|
6
|
-
var CollapsibleContext = createContextEx();
|
7
|
-
|
8
|
-
// src/contexts/Collapsible/use.tsx
|
9
|
-
import { useContextEx } from "@xyo-network/react-shared";
|
10
|
-
var useCollapsible = () => useContextEx(CollapsibleContext, "Collapsible", false);
|
11
|
-
|
12
|
-
// src/components/SiteMenu/hooks/useMenuItemsShared.tsx
|
13
|
-
var useMenuItemsShared = () => {
|
14
|
-
const { collapse, collapseEnd, setCollapse, setCollapseEnd } = useCollapsible();
|
15
|
-
const onMenuItemToggle = (open) => {
|
16
|
-
setCollapse == null ? void 0 : setCollapse((previous) => open ? false : previous);
|
17
|
-
setCollapseEnd == null ? void 0 : setCollapseEnd((previous) => open ? false : previous);
|
18
|
-
};
|
19
|
-
const defaultSiteMenuListItemProps = useMemo(
|
20
|
-
() => ({
|
21
|
-
collapseEnd,
|
22
|
-
dense: true,
|
23
|
-
iconOnly: collapse,
|
24
|
-
sx: {
|
25
|
-
px: "8px"
|
26
|
-
}
|
27
|
-
}),
|
28
|
-
[collapse, collapseEnd]
|
29
|
-
);
|
30
|
-
return { defaultSiteMenuListItemProps, onMenuItemToggle };
|
31
|
-
};
|
32
|
-
|
33
|
-
// src/components/SiteMenu/Menu.tsx
|
34
|
-
import { Menu as MenuIcon2, Settings as SettingsIcon } from "@mui/icons-material";
|
35
|
-
import { IconButton as IconButton2, List as List2, SwipeableDrawer } from "@mui/material";
|
36
|
-
import { FlexRow as FlexRow2 } from "@xylabs/react-flexbox";
|
37
|
-
import { useEffect, useState as useState2 } from "react";
|
38
|
-
|
39
|
-
// src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx
|
40
|
-
import { ListItemText, useTheme as useTheme2 } from "@mui/material";
|
41
|
-
import { FlexRow } from "@xylabs/react-flexbox";
|
42
|
-
import { LinkEx } from "@xylabs/react-link";
|
43
|
-
import { useState } from "react";
|
44
|
-
|
45
|
-
// src/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.tsx
|
46
|
-
import { Tooltip } from "@mui/material";
|
47
|
-
import { FlexCol } from "@xylabs/react-flexbox";
|
48
|
-
import { VscInfo } from "react-icons/vsc/index.js";
|
49
|
-
import { jsx } from "react/jsx-runtime";
|
50
|
-
var ListItemTooltip = ({ title, ...props }) => {
|
51
|
-
return /* @__PURE__ */ jsx(Tooltip, { title, placement: "right", ...props, children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(FlexCol, { justifyContent: "center", children: /* @__PURE__ */ jsx(VscInfo, { color: "grey" }) }) }) });
|
52
|
-
};
|
53
|
-
|
54
|
-
// src/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.tsx
|
55
|
-
import { Typography } from "@mui/material";
|
56
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
57
|
-
var MenuIcon = ({ icon, ...props }) => {
|
58
|
-
return /* @__PURE__ */ jsx2(Typography, { display: "flex", ...props, children: icon });
|
59
|
-
};
|
60
|
-
|
61
|
-
// src/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.tsx
|
62
|
-
import { ListItem } from "@mui/material";
|
63
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
64
|
-
var MenuListItem = ({ iconOnly, collapseEnd, sx, children, dense, ...props }) => {
|
65
|
-
const listItemSx = iconOnly ? { borderRadius: "50%", display: "inline-flex", flexGrow: 0, width: "auto" } : { width: "100%" };
|
66
|
-
const spacingSx = collapseEnd ? { columnGap: 0 } : { columnGap: 1.5 };
|
67
|
-
const paddingSx = dense ? { px: "8px" } : { px: "12px" };
|
68
|
-
return /* @__PURE__ */ jsx3(ListItem, { sx: { ...listItemSx, ...spacingSx, ...paddingSx, ...sx }, ...props, children });
|
69
|
-
};
|
70
|
-
|
71
|
-
// src/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.tsx
|
72
|
-
import { Collapse, List } from "@mui/material";
|
73
|
-
import { jsx as jsx4 } from "react/jsx-runtime";
|
74
|
-
var SubNavListItemsCollapse = ({ collapse, openSubNav, children, ...props }) => {
|
75
|
-
return /* @__PURE__ */ jsx4(Collapse, { in: collapse == true ? false : openSubNav, ...props, children: /* @__PURE__ */ jsx4(List, { children }) });
|
76
|
-
};
|
77
|
-
|
78
|
-
// src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx
|
79
|
-
import { IconButton, useTheme } from "@mui/material";
|
80
|
-
import { VscChevronDown } from "react-icons/vsc/index.js";
|
81
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
82
|
-
var SubNavToggleIconButton = ({ setOpenSubNav, openSubNav }) => {
|
83
|
-
const theme = useTheme();
|
84
|
-
return /* @__PURE__ */ jsx5(
|
85
|
-
IconButton,
|
86
|
-
{
|
87
|
-
onClick: (event) => {
|
88
|
-
event.stopPropagation();
|
89
|
-
setOpenSubNav == null ? void 0 : setOpenSubNav(!openSubNav);
|
90
|
-
},
|
91
|
-
sx: { marginRight: theme.spacing(0.5) },
|
92
|
-
children: /* @__PURE__ */ jsx5(VscChevronDown, { fontSize: "16px" })
|
93
|
-
}
|
94
|
-
);
|
95
|
-
};
|
96
|
-
|
97
|
-
// src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx
|
98
|
-
import { Fragment, jsx as jsx6, jsxs } from "react/jsx-runtime";
|
99
|
-
var MenuListItemContainer = ({
|
100
|
-
style,
|
101
|
-
icon,
|
102
|
-
iconMenuTextSpacing,
|
103
|
-
iconOnly,
|
104
|
-
onButtonClick,
|
105
|
-
primary,
|
106
|
-
subNavListItems,
|
107
|
-
sx,
|
108
|
-
tooltip,
|
109
|
-
to,
|
110
|
-
...props
|
111
|
-
}) => {
|
112
|
-
const { dense } = props;
|
113
|
-
const theme = useTheme2();
|
114
|
-
const { collapse } = useCollapsible();
|
115
|
-
const [openSubNav, setOpenSubNav] = useState(false);
|
116
|
-
const [hovered, setHovered] = useState(false);
|
117
|
-
const resolvedIconMenuTextSpacing = iconMenuTextSpacing ? iconMenuTextSpacing : theme.spacing(1);
|
118
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
119
|
-
/* @__PURE__ */ jsxs(
|
120
|
-
MenuListItem,
|
121
|
-
{
|
122
|
-
disableGutters: true,
|
123
|
-
iconOnly,
|
124
|
-
onClick: onButtonClick,
|
125
|
-
dense,
|
126
|
-
sx: { justifyContent: "space-between", ...sx },
|
127
|
-
style: { whiteSpace: "nowrap", ...style },
|
128
|
-
...props,
|
129
|
-
children: [
|
130
|
-
/* @__PURE__ */ jsx6(
|
131
|
-
LinkEx,
|
132
|
-
{
|
133
|
-
onMouseEnter: () => setHovered(true),
|
134
|
-
onMouseLeave: () => setHovered(false),
|
135
|
-
color: "inherit",
|
136
|
-
to,
|
137
|
-
sx: {
|
138
|
-
"& :hover": {
|
139
|
-
cursor: "pointer",
|
140
|
-
textDecoration: "underline"
|
141
|
-
}
|
142
|
-
},
|
143
|
-
children: /* @__PURE__ */ jsxs(FlexRow, { children: [
|
144
|
-
/* @__PURE__ */ jsx6(MenuIcon, { icon, paddingRight: resolvedIconMenuTextSpacing, color: hovered ? "secondary" : "inherit" }),
|
145
|
-
/* @__PURE__ */ jsx6(ListItemText, { primary })
|
146
|
-
] })
|
147
|
-
}
|
148
|
-
),
|
149
|
-
/* @__PURE__ */ jsxs(FlexRow, { style: { marginLeft: theme.spacing(1) }, children: [
|
150
|
-
subNavListItems ? /* @__PURE__ */ jsx6(SubNavToggleIconButton, { setOpenSubNav, openSubNav }) : null,
|
151
|
-
tooltip ? /* @__PURE__ */ jsx6(ListItemTooltip, { title: tooltip }) : null
|
152
|
-
] })
|
153
|
-
]
|
154
|
-
}
|
155
|
-
),
|
156
|
-
subNavListItems ? /* @__PURE__ */ jsx6(SubNavListItemsCollapse, { openSubNav, collapse, children: subNavListItems == null ? void 0 : subNavListItems.map((item, index) => /* @__PURE__ */ jsx6(MenuListItemContainer, { dense, sx: { pl: theme.spacing(1) }, ...item }, index)) }) : null
|
157
|
-
] });
|
158
|
-
};
|
159
|
-
|
160
|
-
// src/components/SiteMenu/Menu.tsx
|
161
|
-
import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
|
162
|
-
var SiteMenu = ({ children, onMenuToggle, side = "right", ...props }) => {
|
163
|
-
const [open, setOpen] = useState2(false);
|
164
|
-
useEffect(() => {
|
165
|
-
onMenuToggle == null ? void 0 : onMenuToggle(open);
|
166
|
-
}, [onMenuToggle, open]);
|
167
|
-
return /* @__PURE__ */ jsxs2(FlexRow2, { alignItems: "stretch", ...props, children: [
|
168
|
-
/* @__PURE__ */ jsx7(
|
169
|
-
IconButton2,
|
170
|
-
{
|
171
|
-
size: "small",
|
172
|
-
color: "inherit",
|
173
|
-
onClick: () => {
|
174
|
-
setOpen(!open);
|
175
|
-
},
|
176
|
-
children: /* @__PURE__ */ jsx7(MenuIcon2, { fontSize: "large" })
|
177
|
-
}
|
178
|
-
),
|
179
|
-
/* @__PURE__ */ jsx7(
|
180
|
-
SwipeableDrawer,
|
181
|
-
{
|
182
|
-
anchor: side,
|
183
|
-
open,
|
184
|
-
onClick: () => setOpen(false),
|
185
|
-
onKeyDown: () => setOpen(false),
|
186
|
-
onClose: () => setOpen(false),
|
187
|
-
onOpen: () => setOpen(true),
|
188
|
-
children: children ?? /* @__PURE__ */ jsx7(List2, { children: /* @__PURE__ */ jsx7(MenuListItemContainer, { primary: "Settings", icon: /* @__PURE__ */ jsx7(SettingsIcon, {}), to: "/settings" }) })
|
189
|
-
}
|
190
|
-
)
|
191
|
-
] });
|
192
|
-
};
|
193
|
-
|
194
|
-
// src/components/SiteMenu/MenuSection.tsx
|
195
|
-
import { Collapse as Collapse2, ListSubheader } from "@mui/material";
|
196
|
-
import { FlexCol as FlexCol2 } from "@xylabs/react-flexbox";
|
197
|
-
import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
|
198
|
-
var MenuSection = ({ iconMenuTextSpacing, listItems, showTitle = true, title, ...props }) => {
|
199
|
-
return /* @__PURE__ */ jsxs3(FlexCol2, { alignItems: "stretch", ...props, children: [
|
200
|
-
/* @__PURE__ */ jsx8(Collapse2, { in: showTitle, timeout: 700, children: /* @__PURE__ */ jsx8(ListSubheader, { children: title }) }),
|
201
|
-
listItems.map((item, index) => /* @__PURE__ */ jsx8(MenuListItemContainer, { iconMenuTextSpacing, ...item }, index))
|
202
|
-
] });
|
203
|
-
};
|
204
|
-
export {
|
205
|
-
MenuListItemContainer,
|
206
|
-
MenuSection,
|
207
|
-
SiteMenu,
|
208
|
-
useMenuItemsShared
|
209
|
-
};
|
210
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/SiteMenu/hooks/useMenuItemsShared.tsx","../../../../src/contexts/Collapsible/context.ts","../../../../src/contexts/Collapsible/use.tsx","../../../../src/components/SiteMenu/Menu.tsx","../../../../src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx","../../../../src/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.tsx","../../../../src/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.tsx","../../../../src/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.tsx","../../../../src/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.tsx","../../../../src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx","../../../../src/components/SiteMenu/MenuSection.tsx"],"sourcesContent":["import { useMemo } from 'react'\n\nimport { useCollapsible } from '../../../contexts'\nimport { MenuListItemProps } from '../MenuListItem'\n\nexport type DefaultSiteMenuListItemProps = Pick<MenuListItemProps, 'collapseEnd' | 'dense' | 'iconOnly' | 'sx'>\n\nexport const useMenuItemsShared = () => {\n const { collapse, collapseEnd, setCollapse, setCollapseEnd } = useCollapsible()\n\n const onMenuItemToggle = (open?: boolean) => {\n setCollapse?.((previous) => (open ? false : previous))\n setCollapseEnd?.((previous) => (open ? false : previous))\n }\n\n const defaultSiteMenuListItemProps: DefaultSiteMenuListItemProps = useMemo(\n () => ({\n collapseEnd,\n dense: true,\n iconOnly: collapse,\n sx: {\n px: '8px',\n },\n }),\n [collapse, collapseEnd],\n )\n\n return { defaultSiteMenuListItemProps, onMenuItemToggle }\n}\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { CollapsibleState } from './State'\n\nexport const CollapsibleContext = createContextEx<CollapsibleState>()\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { CollapsibleContext } from './context'\n\nexport const useCollapsible = () => useContextEx(CollapsibleContext, 'Collapsible', false)\n","import { Menu as MenuIcon, Settings as SettingsIcon } from '@mui/icons-material'\nimport { IconButton, List, SwipeableDrawer } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { useEffect, useState } from 'react'\n\nimport { MenuListItemContainer } from './MenuListItem'\n\nexport interface SiteMenuProps extends FlexBoxProps {\n hideSettingsMenuItem?: boolean\n onMenuToggle?: (state?: boolean) => void\n side?: 'left' | 'right' | 'top' | 'bottom'\n}\n\nexport const SiteMenu: React.FC<SiteMenuProps> = ({ children, onMenuToggle, side = 'right', ...props }) => {\n const [open, setOpen] = useState(false)\n\n useEffect(() => {\n onMenuToggle?.(open)\n }, [onMenuToggle, open])\n\n return (\n <FlexRow alignItems=\"stretch\" {...props}>\n <IconButton\n size=\"small\"\n color=\"inherit\"\n onClick={() => {\n setOpen(!open)\n }}\n >\n <MenuIcon fontSize=\"large\" />\n </IconButton>\n <SwipeableDrawer\n anchor={side}\n open={open}\n onClick={() => setOpen(false)}\n onKeyDown={() => setOpen(false)}\n onClose={() => setOpen(false)}\n onOpen={() => setOpen(true)}\n >\n {children ?? (\n <List>\n <MenuListItemContainer primary=\"Settings\" icon={<SettingsIcon />} to=\"/settings\" />\n </List>\n )}\n </SwipeableDrawer>\n </FlexRow>\n )\n}\n","import { ListItemProps, ListItemText, useTheme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { LinkEx } from '@xylabs/react-link'\nimport { useState } from 'react'\n\nimport { useCollapsible } from '../../../contexts'\nimport { MenuListItemBase, NavListItemProps } from '../lib'\nimport { ListItemTooltip, MenuIcon, MenuListItem } from './list-item-components'\nimport { SubNavListItemsCollapse, SubNavToggleIconButton } from './sub-nav'\n\nexport interface MenuListItemProps extends NavListItemProps, MenuListItemBase, ListItemProps {\n iconMenuTextSpacing?: string\n iconOnly?: boolean\n subNavListItems?: NavListItemProps[]\n subNavOpen?: boolean\n}\n\nexport const MenuListItemContainer: React.FC<MenuListItemProps> = ({\n style,\n icon,\n iconMenuTextSpacing,\n iconOnly,\n onButtonClick,\n primary,\n subNavListItems,\n sx,\n tooltip,\n to,\n ...props\n}) => {\n const { dense } = props\n const theme = useTheme()\n const { collapse } = useCollapsible()\n const [openSubNav, setOpenSubNav] = useState(false)\n const [hovered, setHovered] = useState(false)\n const resolvedIconMenuTextSpacing = iconMenuTextSpacing ? iconMenuTextSpacing : theme.spacing(1)\n\n return (\n <>\n <MenuListItem\n disableGutters\n iconOnly={iconOnly}\n onClick={onButtonClick}\n dense={dense}\n sx={{ justifyContent: 'space-between', ...sx }}\n style={{ whiteSpace: 'nowrap', ...style }}\n {...props}\n >\n <LinkEx\n onMouseEnter={() => setHovered(true)}\n onMouseLeave={() => setHovered(false)}\n color=\"inherit\"\n to={to}\n sx={{\n '& :hover': {\n cursor: 'pointer',\n textDecoration: 'underline',\n },\n }}\n >\n <FlexRow>\n <MenuIcon icon={icon} paddingRight={resolvedIconMenuTextSpacing} color={hovered ? 'secondary' : 'inherit'} />\n <ListItemText primary={primary} />\n </FlexRow>\n </LinkEx>\n <FlexRow style={{ marginLeft: theme.spacing(1) }}>\n {subNavListItems ? <SubNavToggleIconButton setOpenSubNav={setOpenSubNav} openSubNav={openSubNav} /> : null}\n {tooltip ? <ListItemTooltip title={tooltip} /> : null}\n </FlexRow>\n </MenuListItem>\n {subNavListItems ? (\n <SubNavListItemsCollapse openSubNav={openSubNav} collapse={collapse}>\n {subNavListItems?.map((item, index) => <MenuListItemContainer dense={dense} sx={{ pl: theme.spacing(1) }} key={index} {...item} />)}\n </SubNavListItemsCollapse>\n ) : null}\n </>\n )\n}\n","import { Tooltip, TooltipProps } from '@mui/material'\nimport { FlexCol } from '@xylabs/react-flexbox'\n// eslint-disable-next-line import/no-internal-modules\nimport { VscInfo } from 'react-icons/vsc/index.js'\n\nexport interface ListItemTooltipProps extends Omit<TooltipProps, 'children'> {\n title: string\n}\n\nexport const ListItemTooltip: React.FC<ListItemTooltipProps> = ({ title, ...props }) => {\n return (\n <Tooltip title={title} placement=\"right\" {...props}>\n {/* Needs div so it can work, the hovering doesn't work with a FlexCol */}\n <div>\n <FlexCol justifyContent=\"center\">\n <VscInfo color=\"grey\" />\n </FlexCol>\n </div>\n </Tooltip>\n )\n}\n","import { Typography, TypographyProps } from '@mui/material'\nimport { ReactNode } from 'react'\n\nexport interface MenuIconProps extends TypographyProps {\n icon?: ReactNode\n}\n\nexport const MenuIcon: React.FC<MenuIconProps> = ({ icon, ...props }) => {\n return (\n <Typography display=\"flex\" {...props}>\n {icon}\n </Typography>\n )\n}\n","import { ListItem, ListItemProps } from '@mui/material'\n\nimport { MenuListItemBase } from '../../lib'\n\nexport interface ListItemExProps extends MenuListItemBase, ListItemProps {}\n\nexport const MenuListItem: React.FC<ListItemExProps> = ({ iconOnly, collapseEnd, sx, children, dense, ...props }) => {\n const listItemSx = iconOnly ? { borderRadius: '50%', display: 'inline-flex', flexGrow: 0, width: 'auto' } : { width: '100%' }\n // wait till collapseEnds to remove the spacing between items\n const spacingSx = collapseEnd ? { columnGap: 0 } : { columnGap: 1.5 }\n // adjusts to the paddingY value which does NOT scale along the theme.spacing\n const paddingSx = dense ? { px: '8px' } : { px: '12px' }\n return (\n <ListItem sx={{ ...listItemSx, ...spacingSx, ...paddingSx, ...sx }} {...props}>\n {children}\n </ListItem>\n )\n}\n","import { Collapse, CollapseProps, List } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { NavListItemProps } from '../../lib'\n\nexport interface SubNavListItemsCollapseProps extends WithChildren, CollapseProps {\n collapse?: boolean\n openSubNav?: boolean\n subNavListItems?: NavListItemProps[]\n}\n\nexport const SubNavListItemsCollapse: React.FC<SubNavListItemsCollapseProps> = ({ collapse, openSubNav, children, ...props }) => {\n return (\n <Collapse in={collapse == true ? false : openSubNav} {...props}>\n <List>{children}</List>\n </Collapse>\n )\n}\n","import { IconButton, IconButtonProps, useTheme } from '@mui/material'\nimport { Dispatch, SetStateAction, SyntheticEvent } from 'react'\n// eslint-disable-next-line import/no-internal-modules\nimport { VscChevronDown } from 'react-icons/vsc/index.js'\n\nexport interface SubNavToggleIconButtonProps extends IconButtonProps {\n openSubNav?: boolean\n setOpenSubNav?: Dispatch<SetStateAction<boolean>>\n}\n\nexport const SubNavToggleIconButton: React.FC<SubNavToggleIconButtonProps> = ({ setOpenSubNav, openSubNav }) => {\n const theme = useTheme()\n return (\n <IconButton\n onClick={(event: SyntheticEvent) => {\n event.stopPropagation()\n setOpenSubNav?.(!openSubNav)\n }}\n sx={{ marginRight: theme.spacing(0.5) }}\n >\n <VscChevronDown fontSize=\"16px\" />\n </IconButton>\n )\n}\n","import { Collapse, ListSubheader } from '@mui/material'\nimport { FlexBoxProps, FlexCol } from '@xylabs/react-flexbox'\n\nimport { MenuListItemContainer, MenuListItemProps } from './MenuListItem'\n\nexport interface MenuSectionProps extends FlexBoxProps {\n iconMenuTextSpacing?: string\n listItems: MenuListItemProps[]\n showTitle?: boolean\n title: string\n}\n\nexport const MenuSection: React.FC<MenuSectionProps> = ({ iconMenuTextSpacing, listItems, showTitle = true, title, ...props }) => {\n return (\n <FlexCol alignItems=\"stretch\" {...props}>\n <Collapse in={showTitle} timeout={700}>\n <ListSubheader>{title}</ListSubheader>\n </Collapse>\n\n {listItems.map((item, index) => (\n <MenuListItemContainer key={index} iconMenuTextSpacing={iconMenuTextSpacing} {...item}></MenuListItemContainer>\n ))}\n </FlexCol>\n )\n}\n"],"mappings":"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","names":["MenuIcon","IconButton","List","FlexRow","useState","useTheme","jsx","jsx","jsx","jsx","jsx","useTheme","jsx","jsxs","useState","FlexRow","IconButton","MenuIcon","List","Collapse","FlexCol","jsx","jsxs","FlexCol","Collapse"]}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
8
|
-
for (let key of __getOwnPropNames(from))
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
11
|
-
}
|
12
|
-
return to;
|
13
|
-
};
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
15
|
-
|
16
|
-
// src/components/SiteMenu/lib/MenuListItemBase.tsx
|
17
|
-
var MenuListItemBase_exports = {};
|
18
|
-
module.exports = __toCommonJS(MenuListItemBase_exports);
|
19
|
-
//# sourceMappingURL=MenuListItemBase.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/SiteMenu/lib/MenuListItemBase.tsx"],"sourcesContent":["export interface MenuListItemBase {\n collapseEnd?: boolean\n iconOnly?: boolean\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
//# sourceMappingURL=MenuListItemBase.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
8
|
-
for (let key of __getOwnPropNames(from))
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
11
|
-
}
|
12
|
-
return to;
|
13
|
-
};
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
15
|
-
|
16
|
-
// src/components/SiteMenu/lib/NavListItemProps.ts
|
17
|
-
var NavListItemProps_exports = {};
|
18
|
-
module.exports = __toCommonJS(NavListItemProps_exports);
|
19
|
-
//# sourceMappingURL=NavListItemProps.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/SiteMenu/lib/NavListItemProps.ts"],"sourcesContent":["import { ListItemProps, ListItemTextProps } from '@mui/material'\nimport { ReactNode } from 'react'\nimport { To } from 'react-router-dom'\n\nexport interface NavListItemProps {\n href?: string\n icon?: ReactNode\n onButtonClick?: ListItemProps['onClick']\n primary: ListItemTextProps['primary']\n to?: To\n tooltip?: string\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
//# sourceMappingURL=NavListItemProps.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
8
|
-
for (let key of __getOwnPropNames(from))
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
11
|
-
}
|
12
|
-
return to;
|
13
|
-
};
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
15
|
-
|
16
|
-
// src/components/SiteMenu/lib/index.ts
|
17
|
-
var lib_exports = {};
|
18
|
-
module.exports = __toCommonJS(lib_exports);
|
19
|
-
//# sourceMappingURL=index.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/SiteMenu/lib/index.ts"],"sourcesContent":["export * from './MenuListItemBase'\nexport * from './NavListItemProps'\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
@@ -1,76 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
-
};
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
|
20
|
-
// src/components/Toolbar/Context/ContextToolbar.tsx
|
21
|
-
var ContextToolbar_exports = {};
|
22
|
-
__export(ContextToolbar_exports, {
|
23
|
-
ContextToolbar: () => ContextToolbar
|
24
|
-
});
|
25
|
-
module.exports = __toCommonJS(ContextToolbar_exports);
|
26
|
-
var import_material3 = require("@mui/material");
|
27
|
-
|
28
|
-
// src/components/Toolbar/Context/LogoLinkEx.tsx
|
29
|
-
var import_material2 = require("@mui/material");
|
30
|
-
var import_react_flexbox = require("@xylabs/react-flexbox");
|
31
|
-
var import_react_link = require("@xylabs/react-link");
|
32
|
-
|
33
|
-
// src/components/Toolbar/Context/Logo.tsx
|
34
|
-
var import_material = require("@mui/material");
|
35
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
36
|
-
var Logo = (props) => {
|
37
|
-
const theme = (0, import_material.useTheme)();
|
38
|
-
const logoUrl = theme.palette.mode === "dark" ? "https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg" : "https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg";
|
39
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: logoUrl, ...props });
|
40
|
-
};
|
41
|
-
|
42
|
-
// src/components/Toolbar/Context/LogoLinkEx.tsx
|
43
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
44
|
-
var LogoLinkEx = ({ to = "/", version = false, ...props }) => {
|
45
|
-
const theme = (0, import_material2.useTheme)();
|
46
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_link.LinkEx, { to, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react_flexbox.FlexRow, { paddingX: "4px", children: [
|
47
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Logo, { height: "40", width: "43" }),
|
48
|
-
version ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
49
|
-
import_material2.Typography,
|
50
|
-
{
|
51
|
-
position: "absolute",
|
52
|
-
borderRadius: 1,
|
53
|
-
right: 6,
|
54
|
-
color: theme.palette.getContrastText(theme.palette.text.primary),
|
55
|
-
bottom: 0,
|
56
|
-
bgcolor: theme.palette.text.primary,
|
57
|
-
paddingX: "2px",
|
58
|
-
lineHeight: 1,
|
59
|
-
variant: "caption",
|
60
|
-
border: `1px ${theme.palette.getContrastText(theme.palette.primary.main)} solid`,
|
61
|
-
children: typeof version === "string" ? version : "2.1"
|
62
|
-
}
|
63
|
-
) : null
|
64
|
-
] }) });
|
65
|
-
};
|
66
|
-
|
67
|
-
// src/components/Toolbar/Context/ContextToolbar.tsx
|
68
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
69
|
-
var ContextToolbar = ({ logoTo = "/", version = false, ...props }) => {
|
70
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Toolbar, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(LogoLinkEx, { version, to: logoTo }) });
|
71
|
-
};
|
72
|
-
// Annotate the CommonJS export names for ESM import in node:
|
73
|
-
0 && (module.exports = {
|
74
|
-
ContextToolbar
|
75
|
-
});
|
76
|
-
//# sourceMappingURL=ContextToolbar.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/Toolbar/Context/ContextToolbar.tsx","../../../../../src/components/Toolbar/Context/LogoLinkEx.tsx","../../../../../src/components/Toolbar/Context/Logo.tsx"],"sourcesContent":["import { Toolbar, ToolbarProps } from '@mui/material'\nimport { To } from 'react-router-dom'\n\nimport { LogoLinkEx } from './LogoLinkEx'\n\nexport interface ContextToolbarProps extends ToolbarProps {\n logoTo?: To\n version?: boolean\n}\n\nexport const ContextToolbar: React.FC<ContextToolbarProps> = ({ logoTo = '/', version = false, ...props }) => {\n return (\n <Toolbar {...props}>\n <LogoLinkEx version={version} to={logoTo} />\n </Toolbar>\n )\n}\n","import { Typography, useTheme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { LinkEx, LinkExProps } from '@xylabs/react-link'\n\nimport { Logo } from './Logo'\n\nexport interface LogoLinkExProps extends LinkExProps {\n version?: boolean | string\n}\n\nexport const LogoLinkEx: React.FC<LogoLinkExProps> = ({ to = '/', version = false, ...props }) => {\n const theme = useTheme()\n return (\n <LinkEx to={to} {...props}>\n <FlexRow paddingX=\"4px\">\n <Logo height=\"40\" width=\"43\" />\n {version ? (\n <Typography\n position=\"absolute\"\n borderRadius={1}\n right={6}\n color={theme.palette.getContrastText(theme.palette.text.primary)}\n bottom={0}\n bgcolor={theme.palette.text.primary}\n paddingX=\"2px\"\n lineHeight={1}\n variant=\"caption\"\n border={`1px ${theme.palette.getContrastText(theme.palette.primary.main)} solid`}\n >\n {typeof version === 'string' ? version : '2.1'}\n </Typography>\n ) : null}\n </FlexRow>\n </LinkEx>\n )\n}\n","import { useTheme } from '@mui/material'\n\nexport const Logo: React.FC<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>> = (props) => {\n const theme = useTheme()\n const logoUrl =\n theme.palette.mode === 'dark'\n ? 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'\n : 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'\n return <img src={logoUrl} {...props} />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,mBAAsC;;;ACAtC,IAAAC,mBAAqC;AACrC,2BAAwB;AACxB,wBAAoC;;;ACFpC,sBAAyB;AAQhB;AANF,IAAM,OAAuG,CAAC,UAAU;AAC7H,QAAM,YAAQ,0BAAS;AACvB,QAAM,UACJ,MAAM,QAAQ,SAAS,SACnB,4DACA;AACN,SAAO,4CAAC,SAAI,KAAK,SAAU,GAAG,OAAO;AACvC;;;ADKM,IAAAC,sBAAA;AAJC,IAAM,aAAwC,CAAC,EAAE,KAAK,KAAK,UAAU,OAAO,GAAG,MAAM,MAAM;AAChG,QAAM,YAAQ,2BAAS;AACvB,SACE,6CAAC,4BAAO,IAAS,GAAG,OAClB,wDAAC,gCAAQ,UAAS,OAChB;AAAA,iDAAC,QAAK,QAAO,MAAK,OAAM,MAAK;AAAA,IAC5B,UACC;AAAA,MAAC;AAAA;AAAA,QACC,UAAS;AAAA,QACT,cAAc;AAAA,QACd,OAAO;AAAA,QACP,OAAO,MAAM,QAAQ,gBAAgB,MAAM,QAAQ,KAAK,OAAO;AAAA,QAC/D,QAAQ;AAAA,QACR,SAAS,MAAM,QAAQ,KAAK;AAAA,QAC5B,UAAS;AAAA,QACT,YAAY;AAAA,QACZ,SAAQ;AAAA,QACR,QAAQ,OAAO,MAAM,QAAQ,gBAAgB,MAAM,QAAQ,QAAQ,IAAI,CAAC;AAAA,QAEvE,iBAAO,YAAY,WAAW,UAAU;AAAA;AAAA,IAC3C,IACE;AAAA,KACN,GACF;AAEJ;;;ADtBM,IAAAC,sBAAA;AAHC,IAAM,iBAAgD,CAAC,EAAE,SAAS,KAAK,UAAU,OAAO,GAAG,MAAM,MAAM;AAC5G,SACE,6CAAC,4BAAS,GAAG,OACX,uDAAC,cAAW,SAAkB,IAAI,QAAQ,GAC5C;AAEJ;","names":["import_material","import_material","import_jsx_runtime","import_jsx_runtime"]}
|
@@ -1,51 +0,0 @@
|
|
1
|
-
// src/components/Toolbar/Context/ContextToolbar.tsx
|
2
|
-
import { Toolbar } from "@mui/material";
|
3
|
-
|
4
|
-
// src/components/Toolbar/Context/LogoLinkEx.tsx
|
5
|
-
import { Typography, useTheme as useTheme2 } from "@mui/material";
|
6
|
-
import { FlexRow } from "@xylabs/react-flexbox";
|
7
|
-
import { LinkEx } from "@xylabs/react-link";
|
8
|
-
|
9
|
-
// src/components/Toolbar/Context/Logo.tsx
|
10
|
-
import { useTheme } from "@mui/material";
|
11
|
-
import { jsx } from "react/jsx-runtime";
|
12
|
-
var Logo = (props) => {
|
13
|
-
const theme = useTheme();
|
14
|
-
const logoUrl = theme.palette.mode === "dark" ? "https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg" : "https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg";
|
15
|
-
return /* @__PURE__ */ jsx("img", { src: logoUrl, ...props });
|
16
|
-
};
|
17
|
-
|
18
|
-
// src/components/Toolbar/Context/LogoLinkEx.tsx
|
19
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
20
|
-
var LogoLinkEx = ({ to = "/", version = false, ...props }) => {
|
21
|
-
const theme = useTheme2();
|
22
|
-
return /* @__PURE__ */ jsx2(LinkEx, { to, ...props, children: /* @__PURE__ */ jsxs(FlexRow, { paddingX: "4px", children: [
|
23
|
-
/* @__PURE__ */ jsx2(Logo, { height: "40", width: "43" }),
|
24
|
-
version ? /* @__PURE__ */ jsx2(
|
25
|
-
Typography,
|
26
|
-
{
|
27
|
-
position: "absolute",
|
28
|
-
borderRadius: 1,
|
29
|
-
right: 6,
|
30
|
-
color: theme.palette.getContrastText(theme.palette.text.primary),
|
31
|
-
bottom: 0,
|
32
|
-
bgcolor: theme.palette.text.primary,
|
33
|
-
paddingX: "2px",
|
34
|
-
lineHeight: 1,
|
35
|
-
variant: "caption",
|
36
|
-
border: `1px ${theme.palette.getContrastText(theme.palette.primary.main)} solid`,
|
37
|
-
children: typeof version === "string" ? version : "2.1"
|
38
|
-
}
|
39
|
-
) : null
|
40
|
-
] }) });
|
41
|
-
};
|
42
|
-
|
43
|
-
// src/components/Toolbar/Context/ContextToolbar.tsx
|
44
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
45
|
-
var ContextToolbar = ({ logoTo = "/", version = false, ...props }) => {
|
46
|
-
return /* @__PURE__ */ jsx3(Toolbar, { ...props, children: /* @__PURE__ */ jsx3(LogoLinkEx, { version, to: logoTo }) });
|
47
|
-
};
|
48
|
-
export {
|
49
|
-
ContextToolbar
|
50
|
-
};
|
51
|
-
//# sourceMappingURL=ContextToolbar.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/Toolbar/Context/ContextToolbar.tsx","../../../../../src/components/Toolbar/Context/LogoLinkEx.tsx","../../../../../src/components/Toolbar/Context/Logo.tsx"],"sourcesContent":["import { Toolbar, ToolbarProps } from '@mui/material'\nimport { To } from 'react-router-dom'\n\nimport { LogoLinkEx } from './LogoLinkEx'\n\nexport interface ContextToolbarProps extends ToolbarProps {\n logoTo?: To\n version?: boolean\n}\n\nexport const ContextToolbar: React.FC<ContextToolbarProps> = ({ logoTo = '/', version = false, ...props }) => {\n return (\n <Toolbar {...props}>\n <LogoLinkEx version={version} to={logoTo} />\n </Toolbar>\n )\n}\n","import { Typography, useTheme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { LinkEx, LinkExProps } from '@xylabs/react-link'\n\nimport { Logo } from './Logo'\n\nexport interface LogoLinkExProps extends LinkExProps {\n version?: boolean | string\n}\n\nexport const LogoLinkEx: React.FC<LogoLinkExProps> = ({ to = '/', version = false, ...props }) => {\n const theme = useTheme()\n return (\n <LinkEx to={to} {...props}>\n <FlexRow paddingX=\"4px\">\n <Logo height=\"40\" width=\"43\" />\n {version ? (\n <Typography\n position=\"absolute\"\n borderRadius={1}\n right={6}\n color={theme.palette.getContrastText(theme.palette.text.primary)}\n bottom={0}\n bgcolor={theme.palette.text.primary}\n paddingX=\"2px\"\n lineHeight={1}\n variant=\"caption\"\n border={`1px ${theme.palette.getContrastText(theme.palette.primary.main)} solid`}\n >\n {typeof version === 'string' ? version : '2.1'}\n </Typography>\n ) : null}\n </FlexRow>\n </LinkEx>\n )\n}\n","import { useTheme } from '@mui/material'\n\nexport const Logo: React.FC<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>> = (props) => {\n const theme = useTheme()\n const logoUrl =\n theme.palette.mode === 'dark'\n ? 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'\n : 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'\n return <img src={logoUrl} {...props} />\n}\n"],"mappings":";AAAA,SAAS,eAA6B;;;ACAtC,SAAS,YAAY,YAAAA,iBAAgB;AACrC,SAAS,eAAe;AACxB,SAAS,cAA2B;;;ACFpC,SAAS,gBAAgB;AAQhB;AANF,IAAM,OAAuG,CAAC,UAAU;AAC7H,QAAM,QAAQ,SAAS;AACvB,QAAM,UACJ,MAAM,QAAQ,SAAS,SACnB,4DACA;AACN,SAAO,oBAAC,SAAI,KAAK,SAAU,GAAG,OAAO;AACvC;;;ADKM,SACE,OAAAC,MADF;AAJC,IAAM,aAAwC,CAAC,EAAE,KAAK,KAAK,UAAU,OAAO,GAAG,MAAM,MAAM;AAChG,QAAM,QAAQC,UAAS;AACvB,SACE,gBAAAD,KAAC,UAAO,IAAS,GAAG,OAClB,+BAAC,WAAQ,UAAS,OAChB;AAAA,oBAAAA,KAAC,QAAK,QAAO,MAAK,OAAM,MAAK;AAAA,IAC5B,UACC,gBAAAA;AAAA,MAAC;AAAA;AAAA,QACC,UAAS;AAAA,QACT,cAAc;AAAA,QACd,OAAO;AAAA,QACP,OAAO,MAAM,QAAQ,gBAAgB,MAAM,QAAQ,KAAK,OAAO;AAAA,QAC/D,QAAQ;AAAA,QACR,SAAS,MAAM,QAAQ,KAAK;AAAA,QAC5B,UAAS;AAAA,QACT,YAAY;AAAA,QACZ,SAAQ;AAAA,QACR,QAAQ,OAAO,MAAM,QAAQ,gBAAgB,MAAM,QAAQ,QAAQ,IAAI,CAAC;AAAA,QAEvE,iBAAO,YAAY,WAAW,UAAU;AAAA;AAAA,IAC3C,IACE;AAAA,KACN,GACF;AAEJ;;;ADtBM,gBAAAE,YAAA;AAHC,IAAM,iBAAgD,CAAC,EAAE,SAAS,KAAK,UAAU,OAAO,GAAG,MAAM,MAAM;AAC5G,SACE,gBAAAA,KAAC,WAAS,GAAG,OACX,0BAAAA,KAAC,cAAW,SAAkB,IAAI,QAAQ,GAC5C;AAEJ;","names":["useTheme","jsx","useTheme","jsx"]}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
-
};
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
|
20
|
-
// src/components/Toolbar/Context/Logo.tsx
|
21
|
-
var Logo_exports = {};
|
22
|
-
__export(Logo_exports, {
|
23
|
-
Logo: () => Logo
|
24
|
-
});
|
25
|
-
module.exports = __toCommonJS(Logo_exports);
|
26
|
-
var import_material = require("@mui/material");
|
27
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
28
|
-
var Logo = (props) => {
|
29
|
-
const theme = (0, import_material.useTheme)();
|
30
|
-
const logoUrl = theme.palette.mode === "dark" ? "https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg" : "https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg";
|
31
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: logoUrl, ...props });
|
32
|
-
};
|
33
|
-
// Annotate the CommonJS export names for ESM import in node:
|
34
|
-
0 && (module.exports = {
|
35
|
-
Logo
|
36
|
-
});
|
37
|
-
//# sourceMappingURL=Logo.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/Toolbar/Context/Logo.tsx"],"sourcesContent":["import { useTheme } from '@mui/material'\n\nexport const Logo: React.FC<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>> = (props) => {\n const theme = useTheme()\n const logoUrl =\n theme.palette.mode === 'dark'\n ? 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'\n : 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'\n return <img src={logoUrl} {...props} />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAyB;AAQhB;AANF,IAAM,OAAuG,CAAC,UAAU;AAC7H,QAAM,YAAQ,0BAAS;AACvB,QAAM,UACJ,MAAM,QAAQ,SAAS,SACnB,4DACA;AACN,SAAO,4CAAC,SAAI,KAAK,SAAU,GAAG,OAAO;AACvC;","names":[]}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
// src/components/Toolbar/Context/Logo.tsx
|
2
|
-
import { useTheme } from "@mui/material";
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
4
|
-
var Logo = (props) => {
|
5
|
-
const theme = useTheme();
|
6
|
-
const logoUrl = theme.palette.mode === "dark" ? "https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg" : "https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg";
|
7
|
-
return /* @__PURE__ */ jsx("img", { src: logoUrl, ...props });
|
8
|
-
};
|
9
|
-
export {
|
10
|
-
Logo
|
11
|
-
};
|
12
|
-
//# sourceMappingURL=Logo.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/Toolbar/Context/Logo.tsx"],"sourcesContent":["import { useTheme } from '@mui/material'\n\nexport const Logo: React.FC<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>> = (props) => {\n const theme = useTheme()\n const logoUrl =\n theme.palette.mode === 'dark'\n ? 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'\n : 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'\n return <img src={logoUrl} {...props} />\n}\n"],"mappings":";AAAA,SAAS,gBAAgB;AAQhB;AANF,IAAM,OAAuG,CAAC,UAAU;AAC7H,QAAM,QAAQ,SAAS;AACvB,QAAM,UACJ,MAAM,QAAQ,SAAS,SACnB,4DACA;AACN,SAAO,oBAAC,SAAI,KAAK,SAAU,GAAG,OAAO;AACvC;","names":[]}
|
@@ -1,67 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
-
};
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
|
20
|
-
// src/components/Toolbar/Context/LogoLinkEx.tsx
|
21
|
-
var LogoLinkEx_exports = {};
|
22
|
-
__export(LogoLinkEx_exports, {
|
23
|
-
LogoLinkEx: () => LogoLinkEx
|
24
|
-
});
|
25
|
-
module.exports = __toCommonJS(LogoLinkEx_exports);
|
26
|
-
var import_material2 = require("@mui/material");
|
27
|
-
var import_react_flexbox = require("@xylabs/react-flexbox");
|
28
|
-
var import_react_link = require("@xylabs/react-link");
|
29
|
-
|
30
|
-
// src/components/Toolbar/Context/Logo.tsx
|
31
|
-
var import_material = require("@mui/material");
|
32
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
33
|
-
var Logo = (props) => {
|
34
|
-
const theme = (0, import_material.useTheme)();
|
35
|
-
const logoUrl = theme.palette.mode === "dark" ? "https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg" : "https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg";
|
36
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: logoUrl, ...props });
|
37
|
-
};
|
38
|
-
|
39
|
-
// src/components/Toolbar/Context/LogoLinkEx.tsx
|
40
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
41
|
-
var LogoLinkEx = ({ to = "/", version = false, ...props }) => {
|
42
|
-
const theme = (0, import_material2.useTheme)();
|
43
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_link.LinkEx, { to, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react_flexbox.FlexRow, { paddingX: "4px", children: [
|
44
|
-
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Logo, { height: "40", width: "43" }),
|
45
|
-
version ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
46
|
-
import_material2.Typography,
|
47
|
-
{
|
48
|
-
position: "absolute",
|
49
|
-
borderRadius: 1,
|
50
|
-
right: 6,
|
51
|
-
color: theme.palette.getContrastText(theme.palette.text.primary),
|
52
|
-
bottom: 0,
|
53
|
-
bgcolor: theme.palette.text.primary,
|
54
|
-
paddingX: "2px",
|
55
|
-
lineHeight: 1,
|
56
|
-
variant: "caption",
|
57
|
-
border: `1px ${theme.palette.getContrastText(theme.palette.primary.main)} solid`,
|
58
|
-
children: typeof version === "string" ? version : "2.1"
|
59
|
-
}
|
60
|
-
) : null
|
61
|
-
] }) });
|
62
|
-
};
|
63
|
-
// Annotate the CommonJS export names for ESM import in node:
|
64
|
-
0 && (module.exports = {
|
65
|
-
LogoLinkEx
|
66
|
-
});
|
67
|
-
//# sourceMappingURL=LogoLinkEx.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/Toolbar/Context/LogoLinkEx.tsx","../../../../../src/components/Toolbar/Context/Logo.tsx"],"sourcesContent":["import { Typography, useTheme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { LinkEx, LinkExProps } from '@xylabs/react-link'\n\nimport { Logo } from './Logo'\n\nexport interface LogoLinkExProps extends LinkExProps {\n version?: boolean | string\n}\n\nexport const LogoLinkEx: React.FC<LogoLinkExProps> = ({ to = '/', version = false, ...props }) => {\n const theme = useTheme()\n return (\n <LinkEx to={to} {...props}>\n <FlexRow paddingX=\"4px\">\n <Logo height=\"40\" width=\"43\" />\n {version ? (\n <Typography\n position=\"absolute\"\n borderRadius={1}\n right={6}\n color={theme.palette.getContrastText(theme.palette.text.primary)}\n bottom={0}\n bgcolor={theme.palette.text.primary}\n paddingX=\"2px\"\n lineHeight={1}\n variant=\"caption\"\n border={`1px ${theme.palette.getContrastText(theme.palette.primary.main)} solid`}\n >\n {typeof version === 'string' ? version : '2.1'}\n </Typography>\n ) : null}\n </FlexRow>\n </LinkEx>\n )\n}\n","import { useTheme } from '@mui/material'\n\nexport const Logo: React.FC<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>> = (props) => {\n const theme = useTheme()\n const logoUrl =\n theme.palette.mode === 'dark'\n ? 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'\n : 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'\n return <img src={logoUrl} {...props} />\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,mBAAqC;AACrC,2BAAwB;AACxB,wBAAoC;;;ACFpC,sBAAyB;AAQhB;AANF,IAAM,OAAuG,CAAC,UAAU;AAC7H,QAAM,YAAQ,0BAAS;AACvB,QAAM,UACJ,MAAM,QAAQ,SAAS,SACnB,4DACA;AACN,SAAO,4CAAC,SAAI,KAAK,SAAU,GAAG,OAAO;AACvC;;;ADKM,IAAAC,sBAAA;AAJC,IAAM,aAAwC,CAAC,EAAE,KAAK,KAAK,UAAU,OAAO,GAAG,MAAM,MAAM;AAChG,QAAM,YAAQ,2BAAS;AACvB,SACE,6CAAC,4BAAO,IAAS,GAAG,OAClB,wDAAC,gCAAQ,UAAS,OAChB;AAAA,iDAAC,QAAK,QAAO,MAAK,OAAM,MAAK;AAAA,IAC5B,UACC;AAAA,MAAC;AAAA;AAAA,QACC,UAAS;AAAA,QACT,cAAc;AAAA,QACd,OAAO;AAAA,QACP,OAAO,MAAM,QAAQ,gBAAgB,MAAM,QAAQ,KAAK,OAAO;AAAA,QAC/D,QAAQ;AAAA,QACR,SAAS,MAAM,QAAQ,KAAK;AAAA,QAC5B,UAAS;AAAA,QACT,YAAY;AAAA,QACZ,SAAQ;AAAA,QACR,QAAQ,OAAO,MAAM,QAAQ,gBAAgB,MAAM,QAAQ,QAAQ,IAAI,CAAC;AAAA,QAEvE,iBAAO,YAAY,WAAW,UAAU;AAAA;AAAA,IAC3C,IACE;AAAA,KACN,GACF;AAEJ;","names":["import_material","import_jsx_runtime"]}
|