@xyo-network/react-appbar 2.60.12 → 2.62.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/AppBar/Application.d.mts.map +1 -0
- package/dist/components/AppBar/Application.d.ts +10 -0
- package/dist/components/AppBar/Application.d.ts.map +1 -0
- package/dist/components/AppBar/Application.stories.d.mts +7 -0
- package/dist/components/AppBar/Application.stories.d.mts.map +1 -0
- package/dist/components/AppBar/Application.stories.d.ts +7 -0
- package/dist/components/AppBar/Application.stories.d.ts.map +1 -0
- package/dist/components/AppBar/index.d.mts.map +1 -0
- package/dist/components/AppBar/index.d.ts +2 -0
- package/dist/components/AppBar/index.d.ts.map +1 -0
- package/dist/components/CollapsibleDrawer/CollapseDrawer.stories.d.mts +10 -0
- package/dist/components/CollapsibleDrawer/CollapseDrawer.stories.d.mts.map +1 -0
- package/dist/components/CollapsibleDrawer/CollapseDrawer.stories.d.ts +10 -0
- package/dist/components/CollapsibleDrawer/CollapseDrawer.stories.d.ts.map +1 -0
- package/dist/components/CollapsibleDrawer/CollapseToggle.d.mts.map +1 -0
- package/dist/components/CollapsibleDrawer/CollapseToggle.d.ts +4 -0
- package/dist/components/CollapsibleDrawer/CollapseToggle.d.ts.map +1 -0
- package/dist/components/CollapsibleDrawer/CollapsibleDrawer.d.mts.map +1 -0
- package/dist/components/CollapsibleDrawer/CollapsibleDrawer.d.ts +5 -0
- package/dist/components/CollapsibleDrawer/CollapsibleDrawer.d.ts.map +1 -0
- package/dist/components/CollapsibleDrawer/index.d.mts.map +1 -0
- package/dist/{esm/components/CollapsibleDrawer/index.js → components/CollapsibleDrawer/index.d.ts} +1 -1
- package/dist/components/CollapsibleDrawer/index.d.ts.map +1 -0
- package/dist/components/CollapsibleDrawer/storyExampleMenuData.d.mts.map +1 -0
- package/dist/components/CollapsibleDrawer/storyExampleMenuData.d.ts +4 -0
- package/dist/components/CollapsibleDrawer/storyExampleMenuData.d.ts.map +1 -0
- package/dist/components/MobileSystemControls/SystemControls.d.mts.map +1 -0
- package/dist/components/MobileSystemControls/SystemControls.d.ts +5 -0
- package/dist/components/MobileSystemControls/SystemControls.d.ts.map +1 -0
- package/dist/components/MobileSystemControls/SystemControls.stories.d.mts +7 -0
- package/dist/components/MobileSystemControls/SystemControls.stories.d.mts.map +1 -0
- package/dist/components/MobileSystemControls/SystemControls.stories.d.ts +7 -0
- package/dist/components/MobileSystemControls/SystemControls.stories.d.ts.map +1 -0
- package/dist/components/MobileSystemControls/SystemControlsRoot.d.mts.map +1 -0
- package/dist/components/MobileSystemControls/SystemControlsRoot.d.ts +4 -0
- package/dist/components/MobileSystemControls/SystemControlsRoot.d.ts.map +1 -0
- package/dist/components/MobileSystemControls/SystemControlsType.d.mts.map +1 -0
- package/dist/components/MobileSystemControls/SystemControlsType.d.ts +6 -0
- package/dist/components/MobileSystemControls/SystemControlsType.d.ts.map +1 -0
- package/dist/components/MobileSystemControls/SystemControlsUnstyled.d.mts.map +1 -0
- package/dist/components/MobileSystemControls/SystemControlsUnstyled.d.ts +11 -0
- package/dist/components/MobileSystemControls/SystemControlsUnstyled.d.ts.map +1 -0
- package/dist/components/MobileSystemControls/controls/SystemControl.d.mts.map +1 -0
- package/dist/components/MobileSystemControls/controls/SystemControl.d.ts +11 -0
- package/dist/components/MobileSystemControls/controls/SystemControl.d.ts.map +1 -0
- package/dist/components/MobileSystemControls/controls/SystemControlText.d.mts.map +1 -0
- package/dist/components/MobileSystemControls/controls/SystemControlText.d.ts +8 -0
- package/dist/components/MobileSystemControls/controls/SystemControlText.d.ts.map +1 -0
- package/dist/components/MobileSystemControls/controls/index.d.mts.map +1 -0
- package/dist/{esm/components/MobileSystemControls/controls/index.js → components/MobileSystemControls/controls/index.d.ts} +1 -1
- package/dist/components/MobileSystemControls/controls/index.d.ts.map +1 -0
- package/dist/components/MobileSystemControls/index.d.mts.map +1 -0
- package/dist/{esm/components/MobileSystemControls/index.js → components/MobileSystemControls/index.d.ts} +1 -1
- package/dist/components/MobileSystemControls/index.d.ts.map +1 -0
- package/dist/components/SearchBar/SearchBar.d.mts.map +1 -0
- package/dist/components/SearchBar/SearchBar.d.ts +7 -0
- package/dist/components/SearchBar/SearchBar.d.ts.map +1 -0
- package/dist/components/SearchBar/index.d.mts.map +1 -0
- package/dist/components/SearchBar/index.d.ts +2 -0
- package/dist/components/SearchBar/index.d.ts.map +1 -0
- package/dist/components/SiteMenu/Menu.d.mts.map +1 -0
- package/dist/components/SiteMenu/Menu.d.ts +9 -0
- package/dist/components/SiteMenu/Menu.d.ts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/MenuListItemContainer.d.mts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/MenuListItemContainer.d.ts +11 -0
- package/dist/components/SiteMenu/MenuListItem/MenuListItemContainer.d.ts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.d.mts +7 -0
- package/dist/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.d.mts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.d.ts +7 -0
- package/dist/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.d.ts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/index.d.mts.map +1 -0
- package/dist/{esm/components/SiteMenu/MenuListItem/index.js → components/SiteMenu/MenuListItem/index.d.ts} +1 -1
- package/dist/components/SiteMenu/MenuListItem/index.d.ts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.mts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.ts +7 -0
- package/dist/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.ts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.mts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.ts +7 -0
- package/dist/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.ts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.mts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.ts +7 -0
- package/dist/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.ts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/list-item-components/index.d.mts.map +1 -0
- package/dist/{esm/components/SiteMenu/MenuListItem/list-item-components/index.js → components/SiteMenu/MenuListItem/list-item-components/index.d.ts} +1 -1
- package/dist/components/SiteMenu/MenuListItem/list-item-components/index.d.ts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.mts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.ts +11 -0
- package/dist/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.ts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.mts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.ts +8 -0
- package/dist/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.ts.map +1 -0
- package/dist/components/SiteMenu/MenuListItem/sub-nav/index.d.mts.map +1 -0
- package/dist/{esm/components/SiteMenu/MenuListItem/sub-nav/index.js → components/SiteMenu/MenuListItem/sub-nav/index.d.ts} +1 -1
- package/dist/components/SiteMenu/MenuListItem/sub-nav/index.d.ts.map +1 -0
- package/dist/components/SiteMenu/MenuSection.d.mts.map +1 -0
- package/dist/components/SiteMenu/MenuSection.d.ts +11 -0
- package/dist/components/SiteMenu/MenuSection.d.ts.map +1 -0
- package/dist/components/SiteMenu/hooks/index.d.mts.map +1 -0
- package/dist/{esm/components/SiteMenu/hooks/index.js → components/SiteMenu/hooks/index.d.ts} +1 -1
- package/dist/components/SiteMenu/hooks/index.d.ts.map +1 -0
- package/dist/components/SiteMenu/hooks/useMenuItemsShared.d.mts.map +1 -0
- package/dist/components/SiteMenu/hooks/useMenuItemsShared.d.ts +7 -0
- package/dist/components/SiteMenu/hooks/useMenuItemsShared.d.ts.map +1 -0
- package/dist/components/SiteMenu/index.d.mts.map +1 -0
- package/dist/{esm/components/SiteMenu/index.js → components/SiteMenu/index.d.ts} +1 -1
- package/dist/components/SiteMenu/index.d.ts.map +1 -0
- package/dist/components/SiteMenu/lib/MenuListItemBase.d.mts.map +1 -0
- package/dist/components/SiteMenu/lib/MenuListItemBase.d.ts +5 -0
- package/dist/components/SiteMenu/lib/MenuListItemBase.d.ts.map +1 -0
- package/dist/components/SiteMenu/lib/NavListItemProps.d.mts.map +1 -0
- package/dist/components/SiteMenu/lib/NavListItemProps.d.ts +12 -0
- package/dist/components/SiteMenu/lib/NavListItemProps.d.ts.map +1 -0
- package/dist/components/SiteMenu/lib/index.d.mts.map +1 -0
- package/dist/{esm/components/SiteMenu/lib/index.js → components/SiteMenu/lib/index.d.ts} +1 -1
- package/dist/components/SiteMenu/lib/index.d.ts.map +1 -0
- package/dist/components/Toolbar/Context/ContextToolbar.d.mts.map +1 -0
- package/dist/components/Toolbar/Context/ContextToolbar.d.ts +9 -0
- package/dist/components/Toolbar/Context/ContextToolbar.d.ts.map +1 -0
- package/dist/components/Toolbar/Context/ContextToolbar.stories.d.mts +6 -0
- package/dist/components/Toolbar/Context/ContextToolbar.stories.d.mts.map +1 -0
- package/dist/components/Toolbar/Context/ContextToolbar.stories.d.ts +6 -0
- package/dist/components/Toolbar/Context/ContextToolbar.stories.d.ts.map +1 -0
- package/dist/components/Toolbar/Context/Logo.d.mts.map +1 -0
- package/dist/components/Toolbar/Context/Logo.d.ts +3 -0
- package/dist/components/Toolbar/Context/Logo.d.ts.map +1 -0
- package/dist/components/Toolbar/Context/LogoLinkEx.d.mts.map +1 -0
- package/dist/components/Toolbar/Context/LogoLinkEx.d.ts +7 -0
- package/dist/components/Toolbar/Context/LogoLinkEx.d.ts.map +1 -0
- package/dist/components/Toolbar/Context/index.d.mts.map +1 -0
- package/dist/components/Toolbar/Context/index.d.ts +2 -0
- package/dist/components/Toolbar/Context/index.d.ts.map +1 -0
- package/dist/components/Toolbar/System/SystemToolbar.d.mts.map +1 -0
- package/dist/components/Toolbar/System/SystemToolbar.d.ts +15 -0
- package/dist/components/Toolbar/System/SystemToolbar.d.ts.map +1 -0
- package/dist/components/Toolbar/System/SystemToolbar.stories.d.mts +8 -0
- package/dist/components/Toolbar/System/SystemToolbar.stories.d.mts.map +1 -0
- package/dist/components/Toolbar/System/SystemToolbar.stories.d.ts +8 -0
- package/dist/components/Toolbar/System/SystemToolbar.stories.d.ts.map +1 -0
- package/dist/components/Toolbar/System/index.d.mts.map +1 -0
- package/dist/components/Toolbar/System/index.d.ts +2 -0
- package/dist/components/Toolbar/System/index.d.ts.map +1 -0
- package/dist/components/Toolbar/index.d.mts.map +1 -0
- package/dist/{esm/components/Toolbar/index.js → components/Toolbar/index.d.ts} +1 -1
- package/dist/components/Toolbar/index.d.ts.map +1 -0
- package/dist/components/index.d.mts.map +1 -0
- package/dist/{esm/components/index.js → components/index.d.ts} +1 -1
- package/dist/components/index.d.ts.map +1 -0
- package/dist/contexts/Collapsible/State.d.mts.map +1 -0
- package/dist/contexts/Collapsible/State.d.ts +9 -0
- package/dist/contexts/Collapsible/State.d.ts.map +1 -0
- package/dist/contexts/Collapsible/context.d.mts.map +1 -0
- package/dist/contexts/Collapsible/context.d.ts +4 -0
- package/dist/contexts/Collapsible/context.d.ts.map +1 -0
- package/dist/contexts/Collapsible/index.d.mts.map +1 -0
- package/dist/{esm/contexts/Collapsible/index.js → contexts/Collapsible/index.d.ts} +1 -1
- package/dist/contexts/Collapsible/index.d.ts.map +1 -0
- package/dist/contexts/Collapsible/provider.d.mts.map +1 -0
- package/dist/contexts/Collapsible/provider.d.ts +8 -0
- package/dist/contexts/Collapsible/provider.d.ts.map +1 -0
- package/dist/contexts/Collapsible/use.d.mts.map +1 -0
- package/dist/contexts/Collapsible/use.d.ts +2 -0
- package/dist/contexts/Collapsible/use.d.ts.map +1 -0
- package/dist/contexts/index.d.mts.map +1 -0
- package/dist/contexts/index.d.ts +2 -0
- package/dist/contexts/index.d.ts.map +1 -0
- package/dist/docs.json +92 -92
- package/dist/index.d.mts.map +1 -0
- package/dist/{esm/index.js → index.d.ts} +1 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +598 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +547 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +34 -26
- package/dist/cjs/components/AppBar/Application.js +0 -13
- package/dist/cjs/components/AppBar/Application.js.map +0 -1
- package/dist/cjs/components/AppBar/index.js +0 -5
- package/dist/cjs/components/AppBar/index.js.map +0 -1
- package/dist/cjs/components/CollapsibleDrawer/CollapseToggle.js +0 -21
- package/dist/cjs/components/CollapsibleDrawer/CollapseToggle.js.map +0 -1
- package/dist/cjs/components/CollapsibleDrawer/CollapsibleDrawer.js +0 -23
- package/dist/cjs/components/CollapsibleDrawer/CollapsibleDrawer.js.map +0 -1
- package/dist/cjs/components/CollapsibleDrawer/index.js +0 -6
- package/dist/cjs/components/CollapsibleDrawer/index.js.map +0 -1
- package/dist/cjs/components/CollapsibleDrawer/storyExampleMenuData.js +0 -69
- package/dist/cjs/components/CollapsibleDrawer/storyExampleMenuData.js.map +0 -1
- package/dist/cjs/components/MobileSystemControls/SystemControls.js +0 -11
- package/dist/cjs/components/MobileSystemControls/SystemControls.js.map +0 -1
- package/dist/cjs/components/MobileSystemControls/SystemControlsRoot.js +0 -62
- package/dist/cjs/components/MobileSystemControls/SystemControlsRoot.js.map +0 -1
- package/dist/cjs/components/MobileSystemControls/SystemControlsType.js +0 -10
- package/dist/cjs/components/MobileSystemControls/SystemControlsType.js.map +0 -1
- package/dist/cjs/components/MobileSystemControls/SystemControlsUnstyled.js +0 -22
- package/dist/cjs/components/MobileSystemControls/SystemControlsUnstyled.js.map +0 -1
- package/dist/cjs/components/MobileSystemControls/controls/SystemControl.js +0 -23
- package/dist/cjs/components/MobileSystemControls/controls/SystemControl.js.map +0 -1
- package/dist/cjs/components/MobileSystemControls/controls/SystemControlText.js +0 -13
- package/dist/cjs/components/MobileSystemControls/controls/SystemControlText.js.map +0 -1
- package/dist/cjs/components/MobileSystemControls/controls/index.js +0 -6
- package/dist/cjs/components/MobileSystemControls/controls/index.js.map +0 -1
- package/dist/cjs/components/MobileSystemControls/index.js +0 -7
- package/dist/cjs/components/MobileSystemControls/index.js.map +0 -1
- package/dist/cjs/components/SearchBar/SearchBar.js +0 -20
- package/dist/cjs/components/SearchBar/SearchBar.js.map +0 -1
- package/dist/cjs/components/SearchBar/index.js +0 -5
- package/dist/cjs/components/SearchBar/index.js.map +0 -1
- package/dist/cjs/components/SiteMenu/Menu.js +0 -23
- package/dist/cjs/components/SiteMenu/Menu.js.map +0 -1
- package/dist/cjs/components/SiteMenu/MenuListItem/MenuListItemContainer.js +0 -29
- package/dist/cjs/components/SiteMenu/MenuListItem/MenuListItemContainer.js.map +0 -1
- package/dist/cjs/components/SiteMenu/MenuListItem/index.js +0 -5
- package/dist/cjs/components/SiteMenu/MenuListItem/index.js.map +0 -1
- package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js +0 -14
- package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map +0 -1
- package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js +0 -12
- package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js.map +0 -1
- package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js +0 -17
- package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js.map +0 -1
- package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/index.js +0 -7
- package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/index.js.map +0 -1
- package/dist/cjs/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js +0 -12
- package/dist/cjs/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js.map +0 -1
- package/dist/cjs/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js +0 -15
- package/dist/cjs/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js.map +0 -1
- package/dist/cjs/components/SiteMenu/MenuListItem/sub-nav/index.js +0 -6
- package/dist/cjs/components/SiteMenu/MenuListItem/sub-nav/index.js.map +0 -1
- package/dist/cjs/components/SiteMenu/MenuSection.js +0 -14
- package/dist/cjs/components/SiteMenu/MenuSection.js.map +0 -1
- package/dist/cjs/components/SiteMenu/hooks/index.js +0 -5
- package/dist/cjs/components/SiteMenu/hooks/index.js.map +0 -1
- package/dist/cjs/components/SiteMenu/hooks/useMenuItemsShared.js +0 -23
- package/dist/cjs/components/SiteMenu/hooks/useMenuItemsShared.js.map +0 -1
- package/dist/cjs/components/SiteMenu/index.js +0 -9
- package/dist/cjs/components/SiteMenu/index.js.map +0 -1
- package/dist/cjs/components/SiteMenu/lib/MenuListItemBase.js +0 -3
- package/dist/cjs/components/SiteMenu/lib/MenuListItemBase.js.map +0 -1
- package/dist/cjs/components/SiteMenu/lib/NavListItemProps.js +0 -3
- package/dist/cjs/components/SiteMenu/lib/NavListItemProps.js.map +0 -1
- package/dist/cjs/components/SiteMenu/lib/index.js +0 -6
- package/dist/cjs/components/SiteMenu/lib/index.js.map +0 -1
- package/dist/cjs/components/Toolbar/Context/ContextToolbar.js +0 -13
- package/dist/cjs/components/Toolbar/Context/ContextToolbar.js.map +0 -1
- package/dist/cjs/components/Toolbar/Context/Logo.js +0 -14
- package/dist/cjs/components/Toolbar/Context/Logo.js.map +0 -1
- package/dist/cjs/components/Toolbar/Context/LogoLinkEx.js +0 -16
- package/dist/cjs/components/Toolbar/Context/LogoLinkEx.js.map +0 -1
- package/dist/cjs/components/Toolbar/Context/index.js +0 -5
- package/dist/cjs/components/Toolbar/Context/index.js.map +0 -1
- package/dist/cjs/components/Toolbar/System/SystemToolbar.js +0 -16
- package/dist/cjs/components/Toolbar/System/SystemToolbar.js.map +0 -1
- package/dist/cjs/components/Toolbar/System/index.js +0 -5
- package/dist/cjs/components/Toolbar/System/index.js.map +0 -1
- package/dist/cjs/components/Toolbar/index.js +0 -6
- package/dist/cjs/components/Toolbar/index.js.map +0 -1
- package/dist/cjs/components/index.js +0 -10
- package/dist/cjs/components/index.js.map +0 -1
- package/dist/cjs/contexts/Collapsible/State.js +0 -3
- package/dist/cjs/contexts/Collapsible/State.js.map +0 -1
- package/dist/cjs/contexts/Collapsible/context.js +0 -6
- package/dist/cjs/contexts/Collapsible/context.js.map +0 -1
- package/dist/cjs/contexts/Collapsible/index.js +0 -7
- package/dist/cjs/contexts/Collapsible/index.js.map +0 -1
- package/dist/cjs/contexts/Collapsible/provider.js +0 -19
- package/dist/cjs/contexts/Collapsible/provider.js.map +0 -1
- package/dist/cjs/contexts/Collapsible/use.js +0 -8
- package/dist/cjs/contexts/Collapsible/use.js.map +0 -1
- package/dist/cjs/contexts/index.js +0 -5
- package/dist/cjs/contexts/index.js.map +0 -1
- package/dist/cjs/index.js +0 -6
- package/dist/cjs/index.js.map +0 -1
- package/dist/esm/components/AppBar/Application.js +0 -7
- package/dist/esm/components/AppBar/Application.js.map +0 -1
- package/dist/esm/components/AppBar/index.js +0 -2
- package/dist/esm/components/AppBar/index.js.map +0 -1
- package/dist/esm/components/CollapsibleDrawer/CollapseToggle.js +0 -17
- package/dist/esm/components/CollapsibleDrawer/CollapseToggle.js.map +0 -1
- package/dist/esm/components/CollapsibleDrawer/CollapsibleDrawer.js +0 -21
- package/dist/esm/components/CollapsibleDrawer/CollapsibleDrawer.js.map +0 -1
- package/dist/esm/components/CollapsibleDrawer/index.js.map +0 -1
- package/dist/esm/components/CollapsibleDrawer/storyExampleMenuData.js +0 -66
- package/dist/esm/components/CollapsibleDrawer/storyExampleMenuData.js.map +0 -1
- package/dist/esm/components/MobileSystemControls/SystemControls.js +0 -8
- package/dist/esm/components/MobileSystemControls/SystemControls.js.map +0 -1
- package/dist/esm/components/MobileSystemControls/SystemControlsRoot.js +0 -59
- package/dist/esm/components/MobileSystemControls/SystemControlsRoot.js.map +0 -1
- package/dist/esm/components/MobileSystemControls/SystemControlsType.js +0 -7
- package/dist/esm/components/MobileSystemControls/SystemControlsType.js.map +0 -1
- package/dist/esm/components/MobileSystemControls/SystemControlsUnstyled.js +0 -17
- package/dist/esm/components/MobileSystemControls/SystemControlsUnstyled.js.map +0 -1
- package/dist/esm/components/MobileSystemControls/controls/SystemControl.js +0 -18
- package/dist/esm/components/MobileSystemControls/controls/SystemControl.js.map +0 -1
- package/dist/esm/components/MobileSystemControls/controls/SystemControlText.js +0 -8
- package/dist/esm/components/MobileSystemControls/controls/SystemControlText.js.map +0 -1
- package/dist/esm/components/MobileSystemControls/controls/index.js.map +0 -1
- package/dist/esm/components/MobileSystemControls/index.js.map +0 -1
- package/dist/esm/components/SearchBar/SearchBar.js +0 -14
- package/dist/esm/components/SearchBar/SearchBar.js.map +0 -1
- package/dist/esm/components/SearchBar/index.js +0 -2
- package/dist/esm/components/SearchBar/index.js.map +0 -1
- package/dist/esm/components/SiteMenu/Menu.js +0 -17
- package/dist/esm/components/SiteMenu/Menu.js.map +0 -1
- package/dist/esm/components/SiteMenu/MenuListItem/MenuListItemContainer.js +0 -23
- package/dist/esm/components/SiteMenu/MenuListItem/MenuListItemContainer.js.map +0 -1
- package/dist/esm/components/SiteMenu/MenuListItem/index.js.map +0 -1
- package/dist/esm/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js +0 -8
- package/dist/esm/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map +0 -1
- package/dist/esm/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js +0 -6
- package/dist/esm/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js.map +0 -1
- package/dist/esm/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js +0 -11
- package/dist/esm/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js.map +0 -1
- package/dist/esm/components/SiteMenu/MenuListItem/list-item-components/index.js.map +0 -1
- package/dist/esm/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js +0 -6
- package/dist/esm/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js.map +0 -1
- package/dist/esm/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js +0 -11
- package/dist/esm/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js.map +0 -1
- package/dist/esm/components/SiteMenu/MenuListItem/sub-nav/index.js.map +0 -1
- package/dist/esm/components/SiteMenu/MenuSection.js +0 -8
- package/dist/esm/components/SiteMenu/MenuSection.js.map +0 -1
- package/dist/esm/components/SiteMenu/hooks/index.js.map +0 -1
- package/dist/esm/components/SiteMenu/hooks/useMenuItemsShared.js +0 -19
- package/dist/esm/components/SiteMenu/hooks/useMenuItemsShared.js.map +0 -1
- package/dist/esm/components/SiteMenu/index.js.map +0 -1
- package/dist/esm/components/SiteMenu/lib/MenuListItemBase.js +0 -2
- package/dist/esm/components/SiteMenu/lib/MenuListItemBase.js.map +0 -1
- package/dist/esm/components/SiteMenu/lib/NavListItemProps.js +0 -2
- package/dist/esm/components/SiteMenu/lib/NavListItemProps.js.map +0 -1
- package/dist/esm/components/SiteMenu/lib/index.js.map +0 -1
- package/dist/esm/components/Toolbar/Context/ContextToolbar.js +0 -7
- package/dist/esm/components/Toolbar/Context/ContextToolbar.js.map +0 -1
- package/dist/esm/components/Toolbar/Context/Logo.js +0 -10
- package/dist/esm/components/Toolbar/Context/Logo.js.map +0 -1
- package/dist/esm/components/Toolbar/Context/LogoLinkEx.js +0 -10
- package/dist/esm/components/Toolbar/Context/LogoLinkEx.js.map +0 -1
- package/dist/esm/components/Toolbar/Context/index.js +0 -2
- package/dist/esm/components/Toolbar/Context/index.js.map +0 -1
- package/dist/esm/components/Toolbar/System/SystemToolbar.js +0 -10
- package/dist/esm/components/Toolbar/System/SystemToolbar.js.map +0 -1
- package/dist/esm/components/Toolbar/System/index.js +0 -2
- package/dist/esm/components/Toolbar/System/index.js.map +0 -1
- package/dist/esm/components/Toolbar/index.js.map +0 -1
- package/dist/esm/components/index.js.map +0 -1
- package/dist/esm/contexts/Collapsible/State.js +0 -2
- package/dist/esm/contexts/Collapsible/State.js.map +0 -1
- package/dist/esm/contexts/Collapsible/context.js +0 -3
- package/dist/esm/contexts/Collapsible/context.js.map +0 -1
- package/dist/esm/contexts/Collapsible/index.js.map +0 -1
- package/dist/esm/contexts/Collapsible/provider.js +0 -15
- package/dist/esm/contexts/Collapsible/provider.js.map +0 -1
- package/dist/esm/contexts/Collapsible/use.js +0 -4
- package/dist/esm/contexts/Collapsible/use.js.map +0 -1
- package/dist/esm/contexts/index.js +0 -2
- package/dist/esm/contexts/index.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/types/components/AppBar/Application.d.ts.map +0 -1
- package/dist/types/components/AppBar/index.d.ts.map +0 -1
- package/dist/types/components/CollapsibleDrawer/CollapseToggle.d.ts.map +0 -1
- package/dist/types/components/CollapsibleDrawer/CollapsibleDrawer.d.ts.map +0 -1
- package/dist/types/components/CollapsibleDrawer/index.d.ts.map +0 -1
- package/dist/types/components/CollapsibleDrawer/storyExampleMenuData.d.ts.map +0 -1
- package/dist/types/components/MobileSystemControls/SystemControls.d.ts.map +0 -1
- package/dist/types/components/MobileSystemControls/SystemControlsRoot.d.ts.map +0 -1
- package/dist/types/components/MobileSystemControls/SystemControlsType.d.ts.map +0 -1
- package/dist/types/components/MobileSystemControls/SystemControlsUnstyled.d.ts.map +0 -1
- package/dist/types/components/MobileSystemControls/controls/SystemControl.d.ts.map +0 -1
- package/dist/types/components/MobileSystemControls/controls/SystemControlText.d.ts.map +0 -1
- package/dist/types/components/MobileSystemControls/controls/index.d.ts.map +0 -1
- package/dist/types/components/MobileSystemControls/index.d.ts.map +0 -1
- package/dist/types/components/SearchBar/SearchBar.d.ts.map +0 -1
- package/dist/types/components/SearchBar/index.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/Menu.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/MenuListItem/MenuListItemContainer.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/MenuListItem/index.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/MenuListItem/list-item-components/index.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/MenuListItem/sub-nav/index.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/MenuSection.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/hooks/index.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/hooks/useMenuItemsShared.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/index.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/lib/MenuListItemBase.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/lib/NavListItemProps.d.ts.map +0 -1
- package/dist/types/components/SiteMenu/lib/index.d.ts.map +0 -1
- package/dist/types/components/Toolbar/Context/ContextToolbar.d.ts.map +0 -1
- package/dist/types/components/Toolbar/Context/Logo.d.ts.map +0 -1
- package/dist/types/components/Toolbar/Context/LogoLinkEx.d.ts.map +0 -1
- package/dist/types/components/Toolbar/Context/index.d.ts.map +0 -1
- package/dist/types/components/Toolbar/System/SystemToolbar.d.ts.map +0 -1
- package/dist/types/components/Toolbar/System/index.d.ts.map +0 -1
- package/dist/types/components/Toolbar/index.d.ts.map +0 -1
- package/dist/types/components/index.d.ts.map +0 -1
- package/dist/types/contexts/Collapsible/State.d.ts.map +0 -1
- package/dist/types/contexts/Collapsible/context.d.ts.map +0 -1
- package/dist/types/contexts/Collapsible/index.d.ts.map +0 -1
- package/dist/types/contexts/Collapsible/provider.d.ts.map +0 -1
- package/dist/types/contexts/Collapsible/use.d.ts.map +0 -1
- package/dist/types/contexts/index.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- /package/dist/{types/components/AppBar/Application.d.ts → components/AppBar/Application.d.mts} +0 -0
- /package/dist/{types/components/AppBar/index.d.ts → components/AppBar/index.d.mts} +0 -0
- /package/dist/{types/components/CollapsibleDrawer/CollapseToggle.d.ts → components/CollapsibleDrawer/CollapseToggle.d.mts} +0 -0
- /package/dist/{types/components/CollapsibleDrawer/CollapsibleDrawer.d.ts → components/CollapsibleDrawer/CollapsibleDrawer.d.mts} +0 -0
- /package/dist/{types/components/CollapsibleDrawer/index.d.ts → components/CollapsibleDrawer/index.d.mts} +0 -0
- /package/dist/{types/components/CollapsibleDrawer/storyExampleMenuData.d.ts → components/CollapsibleDrawer/storyExampleMenuData.d.mts} +0 -0
- /package/dist/{types/components/MobileSystemControls/SystemControls.d.ts → components/MobileSystemControls/SystemControls.d.mts} +0 -0
- /package/dist/{types/components/MobileSystemControls/SystemControlsRoot.d.ts → components/MobileSystemControls/SystemControlsRoot.d.mts} +0 -0
- /package/dist/{types/components/MobileSystemControls/SystemControlsType.d.ts → components/MobileSystemControls/SystemControlsType.d.mts} +0 -0
- /package/dist/{types/components/MobileSystemControls/SystemControlsUnstyled.d.ts → components/MobileSystemControls/SystemControlsUnstyled.d.mts} +0 -0
- /package/dist/{types/components/MobileSystemControls/controls/SystemControl.d.ts → components/MobileSystemControls/controls/SystemControl.d.mts} +0 -0
- /package/dist/{types/components/MobileSystemControls/controls/SystemControlText.d.ts → components/MobileSystemControls/controls/SystemControlText.d.mts} +0 -0
- /package/dist/{types/components/MobileSystemControls/controls/index.d.ts → components/MobileSystemControls/controls/index.d.mts} +0 -0
- /package/dist/{types/components/MobileSystemControls/index.d.ts → components/MobileSystemControls/index.d.mts} +0 -0
- /package/dist/{types/components/SearchBar/SearchBar.d.ts → components/SearchBar/SearchBar.d.mts} +0 -0
- /package/dist/{types/components/SearchBar/index.d.ts → components/SearchBar/index.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/Menu.d.ts → components/SiteMenu/Menu.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/MenuListItem/MenuListItemContainer.d.ts → components/SiteMenu/MenuListItem/MenuListItemContainer.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/MenuListItem/index.d.ts → components/SiteMenu/MenuListItem/index.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.ts → components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.ts → components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.ts → components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/MenuListItem/list-item-components/index.d.ts → components/SiteMenu/MenuListItem/list-item-components/index.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.ts → components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.ts → components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/MenuListItem/sub-nav/index.d.ts → components/SiteMenu/MenuListItem/sub-nav/index.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/MenuSection.d.ts → components/SiteMenu/MenuSection.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/hooks/index.d.ts → components/SiteMenu/hooks/index.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/hooks/useMenuItemsShared.d.ts → components/SiteMenu/hooks/useMenuItemsShared.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/index.d.ts → components/SiteMenu/index.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/lib/MenuListItemBase.d.ts → components/SiteMenu/lib/MenuListItemBase.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/lib/NavListItemProps.d.ts → components/SiteMenu/lib/NavListItemProps.d.mts} +0 -0
- /package/dist/{types/components/SiteMenu/lib/index.d.ts → components/SiteMenu/lib/index.d.mts} +0 -0
- /package/dist/{types/components/Toolbar/Context/ContextToolbar.d.ts → components/Toolbar/Context/ContextToolbar.d.mts} +0 -0
- /package/dist/{types/components/Toolbar/Context/Logo.d.ts → components/Toolbar/Context/Logo.d.mts} +0 -0
- /package/dist/{types/components/Toolbar/Context/LogoLinkEx.d.ts → components/Toolbar/Context/LogoLinkEx.d.mts} +0 -0
- /package/dist/{types/components/Toolbar/Context/index.d.ts → components/Toolbar/Context/index.d.mts} +0 -0
- /package/dist/{types/components/Toolbar/System/SystemToolbar.d.ts → components/Toolbar/System/SystemToolbar.d.mts} +0 -0
- /package/dist/{types/components/Toolbar/System/index.d.ts → components/Toolbar/System/index.d.mts} +0 -0
- /package/dist/{types/components/Toolbar/index.d.ts → components/Toolbar/index.d.mts} +0 -0
- /package/dist/{types/components/index.d.ts → components/index.d.mts} +0 -0
- /package/dist/{types/contexts/Collapsible/State.d.ts → contexts/Collapsible/State.d.mts} +0 -0
- /package/dist/{types/contexts/Collapsible/context.d.ts → contexts/Collapsible/context.d.mts} +0 -0
- /package/dist/{types/contexts/Collapsible/index.d.ts → contexts/Collapsible/index.d.mts} +0 -0
- /package/dist/{types/contexts/Collapsible/provider.d.ts → contexts/Collapsible/provider.d.mts} +0 -0
- /package/dist/{types/contexts/Collapsible/use.d.ts → contexts/Collapsible/use.d.mts} +0 -0
- /package/dist/{types/contexts/index.d.ts → contexts/index.d.mts} +0 -0
- /package/dist/{types/index.d.ts → index.d.mts} +0 -0
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SiteMenu = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const Menu_1 = tslib_1.__importDefault(require("@mui/icons-material/Menu"));
|
7
|
-
const Settings_1 = tslib_1.__importDefault(require("@mui/icons-material/Settings"));
|
8
|
-
const material_1 = require("@mui/material");
|
9
|
-
const react_flexbox_1 = require("@xylabs/react-flexbox");
|
10
|
-
const react_1 = require("react");
|
11
|
-
const MenuListItem_1 = require("./MenuListItem");
|
12
|
-
const SiteMenu = (_a) => {
|
13
|
-
var { children, onMenuToggle, side = 'right' } = _a, props = tslib_1.__rest(_a, ["children", "onMenuToggle", "side"]);
|
14
|
-
const [open, setOpen] = (0, react_1.useState)(false);
|
15
|
-
(0, react_1.useEffect)(() => {
|
16
|
-
onMenuToggle === null || onMenuToggle === void 0 ? void 0 : onMenuToggle(open);
|
17
|
-
}, [onMenuToggle, open]);
|
18
|
-
return ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexRow, Object.assign({ alignItems: "stretch" }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ size: "small", color: "inherit", onClick: () => {
|
19
|
-
setOpen(!open);
|
20
|
-
} }, { children: (0, jsx_runtime_1.jsx)(Menu_1.default, { fontSize: "large" }) })), (0, jsx_runtime_1.jsx)(material_1.SwipeableDrawer, Object.assign({ anchor: side, open: open, onClick: () => setOpen(false), onKeyDown: () => setOpen(false), onClose: () => setOpen(false), onOpen: () => setOpen(true) }, { children: children !== null && children !== void 0 ? children : ((0, jsx_runtime_1.jsx)(material_1.List, { children: (0, jsx_runtime_1.jsx)(MenuListItem_1.MenuListItemContainer, { primary: "Settings", icon: (0, jsx_runtime_1.jsx)(Settings_1.default, {}), to: "/settings" }) })) }))] })));
|
21
|
-
};
|
22
|
-
exports.SiteMenu = SiteMenu;
|
23
|
-
//# sourceMappingURL=Menu.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Menu.js","sourceRoot":"","sources":["../../../../src/components/SiteMenu/Menu.tsx"],"names":[],"mappings":";;;;;AAAA,4EAA+C;AAC/C,oFAAuD;AACvD,4CAAiE;AACjE,yDAA6D;AAC7D,iCAA2C;AAE3C,iDAAsD;AAQ/C,MAAM,QAAQ,GAA4B,CAAC,EAAoD,EAAE,EAAE;QAAxD,EAAE,QAAQ,EAAE,YAAY,EAAE,IAAI,GAAG,OAAO,OAAY,EAAP,KAAK,sBAAlD,oCAAoD,CAAF;IAClG,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IAEvC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAG,IAAI,CAAC,CAAA;IACtB,CAAC,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAA;IAExB,OAAO,CACL,wBAAC,uBAAO,kBAAC,UAAU,EAAC,SAAS,IAAK,KAAK,eACrC,uBAAC,qBAAU,kBACT,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,SAAS,EACf,OAAO,EAAE,GAAG,EAAE;oBACZ,OAAO,CAAC,CAAC,IAAI,CAAC,CAAA;gBAChB,CAAC,gBAED,uBAAC,cAAQ,IAAC,QAAQ,EAAC,OAAO,GAAG,IAClB,EACb,uBAAC,0BAAe,kBACd,MAAM,EAAE,IAAI,EACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAC7B,SAAS,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAC7B,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,gBAE1B,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,CACX,uBAAC,eAAI,cACH,uBAAC,oCAAqB,IAAC,OAAO,EAAC,UAAU,EAAC,IAAI,EAAE,uBAAC,kBAAY,KAAG,EAAE,EAAE,EAAC,WAAW,GAAG,GAC9E,CACR,IACe,KACV,CACX,CAAA;AACH,CAAC,CAAA;AAlCY,QAAA,QAAQ,YAkCpB"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.MenuListItemContainer = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const react_flexbox_1 = require("@xylabs/react-flexbox");
|
8
|
-
const react_link_1 = require("@xylabs/react-link");
|
9
|
-
const react_1 = require("react");
|
10
|
-
const contexts_1 = require("../../../contexts");
|
11
|
-
const list_item_components_1 = require("./list-item-components");
|
12
|
-
const sub_nav_1 = require("./sub-nav");
|
13
|
-
const MenuListItemContainer = (_a) => {
|
14
|
-
var { style, icon, iconMenuTextSpacing, iconOnly, onButtonClick, primary, subNavListItems, sx, tooltip, to } = _a, props = tslib_1.__rest(_a, ["style", "icon", "iconMenuTextSpacing", "iconOnly", "onButtonClick", "primary", "subNavListItems", "sx", "tooltip", "to"]);
|
15
|
-
const { dense } = props;
|
16
|
-
const theme = (0, material_1.useTheme)();
|
17
|
-
const { collapse } = (0, contexts_1.useCollapsible)();
|
18
|
-
const [openSubNav, setOpenSubNav] = (0, react_1.useState)(false);
|
19
|
-
const [hovered, setHovered] = (0, react_1.useState)(false);
|
20
|
-
const resolvedIconMenuTextSpacing = iconMenuTextSpacing ? iconMenuTextSpacing : theme.spacing(1);
|
21
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(list_item_components_1.MenuListItem, Object.assign({ disableGutters: true, iconOnly: iconOnly, onClick: onButtonClick, dense: dense, sx: Object.assign({ justifyContent: 'space-between' }, sx), style: Object.assign({ whiteSpace: 'nowrap' }, style) }, props, { children: [(0, jsx_runtime_1.jsx)(react_link_1.LinkEx, Object.assign({ onMouseEnter: () => setHovered(true), onMouseLeave: () => setHovered(false), color: "inherit", to: to, sx: {
|
22
|
-
'& :hover': {
|
23
|
-
cursor: 'pointer',
|
24
|
-
textDecoration: 'underline',
|
25
|
-
},
|
26
|
-
} }, { children: (0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexRow, { children: [(0, jsx_runtime_1.jsx)(list_item_components_1.MenuIcon, { icon: icon, paddingRight: resolvedIconMenuTextSpacing, color: hovered ? 'secondary' : 'inherit' }), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { primary: primary })] }) })), (0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexRow, Object.assign({ style: { marginLeft: theme.spacing(1) } }, { children: [subNavListItems ? (0, jsx_runtime_1.jsx)(sub_nav_1.SubNavToggleIconButton, { setOpenSubNav: setOpenSubNav, openSubNav: openSubNav }) : null, tooltip ? (0, jsx_runtime_1.jsx)(list_item_components_1.ListItemTooltip, { title: tooltip }) : null] }))] })), subNavListItems ? ((0, jsx_runtime_1.jsx)(sub_nav_1.SubNavListItemsCollapse, Object.assign({ openSubNav: openSubNav, collapse: collapse }, { children: subNavListItems === null || subNavListItems === void 0 ? void 0 : subNavListItems.map((item, index) => (0, jsx_runtime_1.jsx)(exports.MenuListItemContainer, Object.assign({ dense: dense, sx: { pl: theme.spacing(1) } }, item), index)) }))) : null] }));
|
27
|
-
};
|
28
|
-
exports.MenuListItemContainer = MenuListItemContainer;
|
29
|
-
//# sourceMappingURL=MenuListItemContainer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"MenuListItemContainer.js","sourceRoot":"","sources":["../../../../../src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAqE;AACrE,yDAA+C;AAC/C,mDAA2C;AAC3C,iCAAgC;AAEhC,gDAAkD;AAElD,iEAAgF;AAChF,uCAA2E;AASpE,MAAM,qBAAqB,GAAgC,CAAC,EAYlE,EAAE,EAAE;QAZ8D,EACjE,KAAK,EACL,IAAI,EACJ,mBAAmB,EACnB,QAAQ,EACR,aAAa,EACb,OAAO,EACP,eAAe,EACf,EAAE,EACF,OAAO,EACP,EAAE,OAEH,EADI,KAAK,sBAXyD,0HAYlE,CADS;IAER,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAA;IACvB,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAA;IACxB,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,yBAAc,GAAE,CAAA;IACrC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IACnD,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAA;IAC7C,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;IAEhG,OAAO,CACL,6DACE,wBAAC,mCAAY,kBACX,cAAc,QACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,aAAa,EACtB,KAAK,EAAE,KAAK,EACZ,EAAE,kBAAI,cAAc,EAAE,eAAe,IAAK,EAAE,GAC5C,KAAK,kBAAI,UAAU,EAAE,QAAQ,IAAK,KAAK,KACnC,KAAK,eAET,uBAAC,mBAAM,kBACL,YAAY,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EACpC,YAAY,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EACrC,KAAK,EAAC,SAAS,EACf,EAAE,EAAE,EAAE,EACN,EAAE,EAAE;4BACF,UAAU,EAAE;gCACV,MAAM,EAAE,SAAS;gCACjB,cAAc,EAAE,WAAW;6BAC5B;yBACF,gBAED,wBAAC,uBAAO,eACN,uBAAC,+BAAQ,IAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,2BAA2B,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,GAAI,EAC7G,uBAAC,uBAAY,IAAC,OAAO,EAAE,OAAO,GAAI,IAC1B,IACH,EACT,wBAAC,uBAAO,kBAAC,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,iBAC7C,eAAe,CAAC,CAAC,CAAC,uBAAC,gCAAsB,IAAC,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,GAAI,CAAC,CAAC,CAAC,IAAI,EACzG,OAAO,CAAC,CAAC,CAAC,uBAAC,sCAAe,IAAC,KAAK,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,IAAI,KAC7C,KACG,EACd,eAAe,CAAC,CAAC,CAAC,CACjB,uBAAC,iCAAuB,kBAAC,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,gBAChE,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,uBAAC,6BAAqB,kBAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAkB,IAAI,GAAf,KAAK,CAAc,CAAC,IAC3G,CAC3B,CAAC,CAAC,CAAC,IAAI,IACP,CACJ,CAAA;AACH,CAAC,CAAA;AA5DY,QAAA,qBAAqB,yBA4DjC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/SiteMenu/MenuListItem/index.ts"],"names":[],"mappings":";;;AAAA,kEAAuC"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ListItemTooltip = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const react_flexbox_1 = require("@xylabs/react-flexbox");
|
8
|
-
const vsc_1 = require("react-icons/vsc");
|
9
|
-
const ListItemTooltip = (_a) => {
|
10
|
-
var { title } = _a, props = tslib_1.__rest(_a, ["title"]);
|
11
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: title, placement: "right" }, props, { children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(react_flexbox_1.FlexCol, Object.assign({ justifyContent: "center" }, { children: (0, jsx_runtime_1.jsx)(vsc_1.VscInfo, { color: "grey" }) })) }) })));
|
12
|
-
};
|
13
|
-
exports.ListItemTooltip = ListItemTooltip;
|
14
|
-
//# sourceMappingURL=ListItemTooltip.js.map
|
package/dist/cjs/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ListItemTooltip.js","sourceRoot":"","sources":["../../../../../../src/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAqD;AACrD,yDAA+C;AAC/C,yCAAyC;AAMlC,MAAM,eAAe,GAAmC,CAAC,EAAmB,EAAE,EAAE;QAAvB,EAAE,KAAK,OAAY,EAAP,KAAK,sBAAjB,SAAmB,CAAF;IAC/E,OAAO,CACL,uBAAC,kBAAO,kBAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,OAAO,IAAK,KAAK,cAEhD,0CACE,uBAAC,uBAAO,kBAAC,cAAc,EAAC,QAAQ,gBAC9B,uBAAC,aAAO,IAAC,KAAK,EAAC,MAAM,GAAG,IAChB,GACN,IACE,CACX,CAAA;AACH,CAAC,CAAA;AAXY,QAAA,eAAe,mBAW3B"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.MenuIcon = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const MenuIcon = (_a) => {
|
8
|
-
var { icon } = _a, props = tslib_1.__rest(_a, ["icon"]);
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ display: "flex" }, props, { children: icon })));
|
10
|
-
};
|
11
|
-
exports.MenuIcon = MenuIcon;
|
12
|
-
//# sourceMappingURL=MenuIcon.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"MenuIcon.js","sourceRoot":"","sources":["../../../../../../src/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA2D;AAOpD,MAAM,QAAQ,GAA4B,CAAC,EAAkB,EAAE,EAAE;QAAtB,EAAE,IAAI,OAAY,EAAP,KAAK,sBAAhB,QAAkB,CAAF;IAChE,OAAO,CACL,uBAAC,qBAAU,kBAAC,OAAO,EAAC,MAAM,IAAK,KAAK,cACjC,IAAI,IACM,CACd,CAAA;AACH,CAAC,CAAA;AANY,QAAA,QAAQ,YAMpB"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.MenuListItem = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const MenuListItem = (_a) => {
|
8
|
-
var { iconOnly, collapseEnd, sx, children, dense } = _a, props = tslib_1.__rest(_a, ["iconOnly", "collapseEnd", "sx", "children", "dense"]);
|
9
|
-
const listItemSx = iconOnly ? { borderRadius: '50%', display: 'inline-flex', flexGrow: 0, width: 'auto' } : { width: '100%' };
|
10
|
-
// wait till collapseEnds to remove the spacing between items
|
11
|
-
const spacingSx = collapseEnd ? { columnGap: 0 } : { columnGap: 1.5 };
|
12
|
-
// adjusts to the paddingY value which does NOT scale along the theme.spacing
|
13
|
-
const paddingSx = dense ? { px: '8px' } : { px: '12px' };
|
14
|
-
return ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ sx: Object.assign(Object.assign(Object.assign(Object.assign({}, listItemSx), spacingSx), paddingSx), sx) }, props, { children: children })));
|
15
|
-
};
|
16
|
-
exports.MenuListItem = MenuListItem;
|
17
|
-
//# sourceMappingURL=MenuListItem.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"MenuListItem.js","sourceRoot":"","sources":["../../../../../../src/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAuD;AAMhD,MAAM,YAAY,GAA8B,CAAC,EAAwD,EAAE,EAAE;QAA5D,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,OAAY,EAAP,KAAK,sBAAtD,sDAAwD,CAAF;IAC5G,MAAM,UAAU,GAAG,QAAQ,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA;IAC7H,6DAA6D;IAC7D,MAAM,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAA;IACrE,6EAA6E;IAC7E,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,CAAA;IACxD,OAAO,CACL,uBAAC,mBAAQ,kBAAC,EAAE,8DAAO,UAAU,GAAK,SAAS,GAAK,SAAS,GAAK,EAAE,KAAQ,KAAK,cAC1E,QAAQ,IACA,CACZ,CAAA;AACH,CAAC,CAAA;AAXY,QAAA,YAAY,gBAWxB"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./ListItemTooltip"), exports);
|
5
|
-
tslib_1.__exportStar(require("./MenuIcon"), exports);
|
6
|
-
tslib_1.__exportStar(require("./MenuListItem"), exports);
|
7
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/SiteMenu/MenuListItem/list-item-components/index.ts"],"names":[],"mappings":";;;AAAA,4DAAiC;AACjC,qDAA0B;AAC1B,yDAA8B"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SubNavListItemsCollapse = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const SubNavListItemsCollapse = (_a) => {
|
8
|
-
var { collapse, openSubNav, children } = _a, props = tslib_1.__rest(_a, ["collapse", "openSubNav", "children"]);
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Collapse, Object.assign({ in: collapse == true ? false : openSubNav }, props, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: children }) })));
|
10
|
-
};
|
11
|
-
exports.SubNavListItemsCollapse = SubNavListItemsCollapse;
|
12
|
-
//# sourceMappingURL=SubNavListItemCollapse.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SubNavListItemCollapse.js","sourceRoot":"","sources":["../../../../../../src/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA6D;AAWtD,MAAM,uBAAuB,GAA2C,CAAC,EAA4C,EAAE,EAAE;QAAhD,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,OAAY,EAAP,KAAK,sBAA1C,sCAA4C,CAAF;IACxH,OAAO,CACL,uBAAC,mBAAQ,kBAAC,EAAE,EAAE,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,IAAM,KAAK,cAC5D,uBAAC,eAAI,cAAE,QAAQ,GAAQ,IACd,CACZ,CAAA;AACH,CAAC,CAAA;AANY,QAAA,uBAAuB,2BAMnC"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SubNavToggleIconButton = void 0;
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
-
const material_1 = require("@mui/material");
|
6
|
-
const vsc_1 = require("react-icons/vsc");
|
7
|
-
const SubNavToggleIconButton = ({ setOpenSubNav, openSubNav }) => {
|
8
|
-
const theme = (0, material_1.useTheme)();
|
9
|
-
return ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: (event) => {
|
10
|
-
event.stopPropagation();
|
11
|
-
setOpenSubNav === null || setOpenSubNav === void 0 ? void 0 : setOpenSubNav(!openSubNav);
|
12
|
-
}, sx: { marginRight: theme.spacing(0.5) } }, { children: (0, jsx_runtime_1.jsx)(vsc_1.VscChevronDown, { fontSize: "16px" }) })));
|
13
|
-
};
|
14
|
-
exports.SubNavToggleIconButton = SubNavToggleIconButton;
|
15
|
-
//# sourceMappingURL=SubNavToggleIconButton.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SubNavToggleIconButton.js","sourceRoot":"","sources":["../../../../../../src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx"],"names":[],"mappings":";;;;AAAA,4CAAqE;AAErE,yCAAgD;AAOzC,MAAM,sBAAsB,GAA0C,CAAC,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,EAAE;IAC7G,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAA;IACxB,OAAO,CACL,uBAAC,qBAAU,kBACT,OAAO,EAAE,CAAC,KAAqB,EAAE,EAAE;YACjC,KAAK,CAAC,eAAe,EAAE,CAAA;YACvB,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAG,CAAC,UAAU,CAAC,CAAA;QAC9B,CAAC,EACD,EAAE,EAAE,EAAE,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,gBAEvC,uBAAC,oBAAc,IAAC,QAAQ,EAAC,MAAM,GAAG,IACvB,CACd,CAAA;AACH,CAAC,CAAA;AAbY,QAAA,sBAAsB,0BAalC"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./SubNavListItemCollapse"), exports);
|
5
|
-
tslib_1.__exportStar(require("./SubNavToggleIconButton"), exports);
|
6
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/SiteMenu/MenuListItem/sub-nav/index.ts"],"names":[],"mappings":";;;AAAA,mEAAwC;AACxC,mEAAwC"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.MenuSection = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const react_flexbox_1 = require("@xylabs/react-flexbox");
|
8
|
-
const MenuListItem_1 = require("./MenuListItem");
|
9
|
-
const MenuSection = (_a) => {
|
10
|
-
var { iconMenuTextSpacing, listItems, showTitle = true, title } = _a, props = tslib_1.__rest(_a, ["iconMenuTextSpacing", "listItems", "showTitle", "title"]);
|
11
|
-
return ((0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexCol, Object.assign({ alignItems: "stretch" }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.Collapse, Object.assign({ in: showTitle, timeout: 700 }, { children: (0, jsx_runtime_1.jsx)(material_1.ListSubheader, { children: title }) })), listItems.map((item, index) => ((0, jsx_runtime_1.jsx)(MenuListItem_1.MenuListItemContainer, Object.assign({ iconMenuTextSpacing: iconMenuTextSpacing }, item), index)))] })));
|
12
|
-
};
|
13
|
-
exports.MenuSection = MenuSection;
|
14
|
-
//# sourceMappingURL=MenuSection.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"MenuSection.js","sourceRoot":"","sources":["../../../../src/components/SiteMenu/MenuSection.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAuD;AACvD,yDAA6D;AAE7D,iDAAyE;AASlE,MAAM,WAAW,GAA+B,CAAC,EAAqE,EAAE,EAAE;QAAzE,EAAE,mBAAmB,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI,EAAE,KAAK,OAAY,EAAP,KAAK,sBAAnE,0DAAqE,CAAF;IACzH,OAAO,CACL,wBAAC,uBAAO,kBAAC,UAAU,EAAC,SAAS,IAAK,KAAK,eACrC,uBAAC,mBAAQ,kBAAC,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,gBACnC,uBAAC,wBAAa,cAAE,KAAK,GAAiB,IAC7B,EAEV,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC9B,uBAAC,oCAAqB,kBAAa,mBAAmB,EAAE,mBAAmB,IAAM,IAAI,GAAzD,KAAK,CAA8E,CAChH,CAAC,KACM,CACX,CAAA;AACH,CAAC,CAAA;AAZY,QAAA,WAAW,eAYvB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/SiteMenu/hooks/index.ts"],"names":[],"mappings":";;;AAAA,+DAAoC"}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.useMenuItemsShared = void 0;
|
4
|
-
const react_1 = require("react");
|
5
|
-
const contexts_1 = require("../../../contexts");
|
6
|
-
const useMenuItemsShared = () => {
|
7
|
-
const { collapse, collapseEnd, setCollapse, setCollapseEnd } = (0, contexts_1.useCollapsible)();
|
8
|
-
const onMenuItemToggle = (open) => {
|
9
|
-
setCollapse === null || setCollapse === void 0 ? void 0 : setCollapse((previous) => (open ? false : previous));
|
10
|
-
setCollapseEnd === null || setCollapseEnd === void 0 ? void 0 : setCollapseEnd((previous) => (open ? false : previous));
|
11
|
-
};
|
12
|
-
const defaultSiteMenuListItemProps = (0, react_1.useMemo)(() => ({
|
13
|
-
collapseEnd,
|
14
|
-
dense: true,
|
15
|
-
iconOnly: collapse,
|
16
|
-
sx: {
|
17
|
-
px: '8px',
|
18
|
-
},
|
19
|
-
}), [collapse, collapseEnd]);
|
20
|
-
return { defaultSiteMenuListItemProps, onMenuItemToggle };
|
21
|
-
};
|
22
|
-
exports.useMenuItemsShared = useMenuItemsShared;
|
23
|
-
//# sourceMappingURL=useMenuItemsShared.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"useMenuItemsShared.js","sourceRoot":"","sources":["../../../../../src/components/SiteMenu/hooks/useMenuItemsShared.tsx"],"names":[],"mappings":";;;AAAA,iCAA+B;AAE/B,gDAAkD;AAK3C,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,IAAA,yBAAc,GAAE,CAAA;IAE/E,MAAM,gBAAgB,GAAG,CAAC,IAAc,EAAE,EAAE;QAC1C,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAA;QACtD,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAA;IAC3D,CAAC,CAAA;IAED,MAAM,4BAA4B,GAAiC,IAAA,eAAO,EACxE,GAAG,EAAE,CAAC,CAAC;QACL,WAAW;QACX,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,QAAQ;QAClB,EAAE,EAAE;YACF,EAAE,EAAE,KAAK;SACV;KACF,CAAC,EACF,CAAC,QAAQ,EAAE,WAAW,CAAC,CACxB,CAAA;IAED,OAAO,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,CAAA;AAC3D,CAAC,CAAA;AArBY,QAAA,kBAAkB,sBAqB9B"}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./hooks"), exports);
|
5
|
-
tslib_1.__exportStar(require("./lib"), exports);
|
6
|
-
tslib_1.__exportStar(require("./Menu"), exports);
|
7
|
-
tslib_1.__exportStar(require("./MenuListItem"), exports);
|
8
|
-
tslib_1.__exportStar(require("./MenuSection"), exports);
|
9
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/SiteMenu/index.ts"],"names":[],"mappings":";;;AAAA,kDAAuB;AACvB,gDAAqB;AACrB,iDAAsB;AACtB,yDAA8B;AAC9B,wDAA6B"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"MenuListItemBase.js","sourceRoot":"","sources":["../../../../../src/components/SiteMenu/lib/MenuListItemBase.tsx"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"NavListItemProps.js","sourceRoot":"","sources":["../../../../../src/components/SiteMenu/lib/NavListItemProps.ts"],"names":[],"mappings":""}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./MenuListItemBase"), exports);
|
5
|
-
tslib_1.__exportStar(require("./NavListItemProps"), exports);
|
6
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/SiteMenu/lib/index.ts"],"names":[],"mappings":";;;AAAA,6DAAkC;AAClC,6DAAkC"}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ContextToolbar = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const LogoLinkEx_1 = require("./LogoLinkEx");
|
8
|
-
const ContextToolbar = (_a) => {
|
9
|
-
var { logoTo = '/', version = false } = _a, props = tslib_1.__rest(_a, ["logoTo", "version"]);
|
10
|
-
return ((0, jsx_runtime_1.jsx)(material_1.Toolbar, Object.assign({}, props, { children: (0, jsx_runtime_1.jsx)(LogoLinkEx_1.LogoLinkEx, { version: version, to: logoTo }) })));
|
11
|
-
};
|
12
|
-
exports.ContextToolbar = ContextToolbar;
|
13
|
-
//# sourceMappingURL=ContextToolbar.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ContextToolbar.js","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Context/ContextToolbar.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAqD;AAGrD,6CAAyC;AAOlC,MAAM,cAAc,GAAkC,CAAC,EAA2C,EAAE,EAAE;QAA/C,EAAE,MAAM,GAAG,GAAG,EAAE,OAAO,GAAG,KAAK,OAAY,EAAP,KAAK,sBAAzC,qBAA2C,CAAF;IACrG,OAAO,CACL,uBAAC,kBAAO,oBAAK,KAAK,cAChB,uBAAC,uBAAU,IAAC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,GAAI,IACpC,CACX,CAAA;AACH,CAAC,CAAA;AANY,QAAA,cAAc,kBAM1B"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Logo = void 0;
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
-
const material_1 = require("@mui/material");
|
6
|
-
const Logo = (props) => {
|
7
|
-
const theme = (0, material_1.useTheme)();
|
8
|
-
const logoUrl = theme.palette.mode === 'dark'
|
9
|
-
? 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'
|
10
|
-
: 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg';
|
11
|
-
return (0, jsx_runtime_1.jsx)("img", Object.assign({ src: logoUrl }, props));
|
12
|
-
};
|
13
|
-
exports.Logo = Logo;
|
14
|
-
//# sourceMappingURL=Logo.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Context/Logo.tsx"],"names":[],"mappings":";;;;AAAA,4CAAwC;AAEjC,MAAM,IAAI,GAAmG,CAAC,KAAK,EAAE,EAAE;IAC5H,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAA;IACxB,MAAM,OAAO,GACX,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM;QAC3B,CAAC,CAAC,yDAAyD;QAC3D,CAAC,CAAC,yDAAyD,CAAA;IAC/D,OAAO,8CAAK,GAAG,EAAE,OAAO,IAAM,KAAK,EAAI,CAAA;AACzC,CAAC,CAAA;AAPY,QAAA,IAAI,QAOhB"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.LogoLinkEx = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const react_flexbox_1 = require("@xylabs/react-flexbox");
|
8
|
-
const react_link_1 = require("@xylabs/react-link");
|
9
|
-
const Logo_1 = require("./Logo");
|
10
|
-
const LogoLinkEx = (_a) => {
|
11
|
-
var { to = '/', version = false } = _a, props = tslib_1.__rest(_a, ["to", "version"]);
|
12
|
-
const theme = (0, material_1.useTheme)();
|
13
|
-
return ((0, jsx_runtime_1.jsx)(react_link_1.LinkEx, Object.assign({ to: to }, props, { children: (0, jsx_runtime_1.jsxs)(react_flexbox_1.FlexRow, Object.assign({ paddingX: "4px" }, { children: [(0, jsx_runtime_1.jsx)(Logo_1.Logo, { height: "40", width: "43" }), version ? ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ position: "absolute", borderRadius: 1, right: 6, color: theme.palette.getContrastText(theme.palette.text.primary), bottom: 0, bgcolor: theme.palette.text.primary, paddingX: "2px", lineHeight: 1, variant: "caption", border: `1px ${theme.palette.getContrastText(theme.palette.primary.main)} solid` }, { children: typeof version === 'string' ? version : '2.1' }))) : null] })) })));
|
14
|
-
};
|
15
|
-
exports.LogoLinkEx = LogoLinkEx;
|
16
|
-
//# sourceMappingURL=LogoLinkEx.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"LogoLinkEx.js","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Context/LogoLinkEx.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAoD;AACpD,yDAA+C;AAC/C,mDAAwD;AAExD,iCAA6B;AAMtB,MAAM,UAAU,GAA8B,CAAC,EAAuC,EAAE,EAAE;QAA3C,EAAE,EAAE,GAAG,GAAG,EAAE,OAAO,GAAG,KAAK,OAAY,EAAP,KAAK,sBAArC,iBAAuC,CAAF;IACzF,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAA;IACxB,OAAO,CACL,uBAAC,mBAAM,kBAAC,EAAE,EAAE,EAAE,IAAM,KAAK,cACvB,wBAAC,uBAAO,kBAAC,QAAQ,EAAC,KAAK,iBACrB,uBAAC,WAAI,IAAC,MAAM,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,GAAG,EAC9B,OAAO,CAAC,CAAC,CAAC,CACT,uBAAC,qBAAU,kBACT,QAAQ,EAAC,UAAU,EACnB,YAAY,EAAE,CAAC,EACf,KAAK,EAAE,CAAC,EACR,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAChE,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EACnC,QAAQ,EAAC,KAAK,EACd,UAAU,EAAE,CAAC,EACb,OAAO,EAAC,SAAS,EACjB,MAAM,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,gBAE/E,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,IACnC,CACd,CAAC,CAAC,CAAC,IAAI,KACA,IACH,CACV,CAAA;AACH,CAAC,CAAA;AAzBY,QAAA,UAAU,cAyBtB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Context/index.ts"],"names":[],"mappings":";;;AAAA,2DAAgC"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SystemToolbar = void 0;
|
4
|
-
const tslib_1 = require("tslib");
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
6
|
-
const material_1 = require("@mui/material");
|
7
|
-
const react_flexbox_1 = require("@xylabs/react-flexbox");
|
8
|
-
const react_app_settings_1 = require("@xyo-network/react-app-settings");
|
9
|
-
const react_network_1 = require("@xyo-network/react-network");
|
10
|
-
const SiteMenu_1 = require("../../SiteMenu");
|
11
|
-
const SystemToolbar = (_a) => {
|
12
|
-
var { children, darkModeButton = false, hideNetworkSelect, menuItems, networkSelectProps, onMenuToggle, precedingChildren } = _a, props = tslib_1.__rest(_a, ["children", "darkModeButton", "hideNetworkSelect", "menuItems", "networkSelectProps", "onMenuToggle", "precedingChildren"]);
|
13
|
-
return ((0, jsx_runtime_1.jsxs)(material_1.Toolbar, Object.assign({}, props, { children: [precedingChildren, hideNetworkSelect ? null : ((0, jsx_runtime_1.jsx)(react_flexbox_1.FlexRow, Object.assign({ marginX: 0.5 }, { children: (0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ variant: "elevation" }, { children: (0, jsx_runtime_1.jsx)(react_network_1.NetworkSelectEx, Object.assign({ fullWidth: true }, networkSelectProps)) })) }))), children, darkModeButton ? (0, jsx_runtime_1.jsx)(react_app_settings_1.DarkModeIconButton, { color: "inherit" }) : null, menuItems ? (0, jsx_runtime_1.jsx)(SiteMenu_1.SiteMenu, Object.assign({ onMenuToggle: onMenuToggle }, { children: menuItems })) : null] })));
|
14
|
-
};
|
15
|
-
exports.SystemToolbar = SystemToolbar;
|
16
|
-
//# sourceMappingURL=SystemToolbar.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SystemToolbar.js","sourceRoot":"","sources":["../../../../../src/components/Toolbar/System/SystemToolbar.tsx"],"names":[],"mappings":";;;;;AAAA,4CAA4D;AAC5D,yDAA+C;AAC/C,wEAAoE;AACpE,8DAAkF;AAGlF,6CAAwD;AAYjD,MAAM,aAAa,GAAiC,CAAC,EAS3D,EAAE,EAAE;QATuD,EAC1D,QAAQ,EACR,cAAc,GAAG,KAAK,EACtB,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,OAElB,EADI,KAAK,sBARkD,2HAS3D,CADS;IAER,OAAO,CACL,wBAAC,kBAAO,oBAAK,KAAK,eACf,iBAAiB,EACjB,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAC1B,uBAAC,uBAAO,kBAAC,OAAO,EAAE,GAAG,gBACnB,uBAAC,gBAAK,kBAAC,OAAO,EAAC,WAAW,gBACxB,uBAAC,+BAAe,kBAAC,SAAS,UAAK,kBAAkB,EAAI,IAC/C,IACA,CACX,EACA,QAAQ,EACR,cAAc,CAAC,CAAC,CAAC,uBAAC,uCAAkB,IAAC,KAAK,EAAC,SAAS,GAAG,CAAC,CAAC,CAAC,IAAI,EAC9D,SAAS,CAAC,CAAC,CAAC,uBAAC,mBAAQ,kBAAC,YAAY,EAAE,YAAY,gBAAG,SAAS,IAAY,CAAC,CAAC,CAAC,IAAI,KACxE,CACX,CAAA;AACH,CAAC,CAAA;AAzBY,QAAA,aAAa,iBAyBzB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/Toolbar/System/index.ts"],"names":[],"mappings":";;;AAAA,0DAA+B"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Toolbar/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB;AACzB,mDAAwB"}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./AppBar"), exports);
|
5
|
-
tslib_1.__exportStar(require("./CollapsibleDrawer"), exports);
|
6
|
-
tslib_1.__exportStar(require("./MobileSystemControls"), exports);
|
7
|
-
tslib_1.__exportStar(require("./SearchBar"), exports);
|
8
|
-
tslib_1.__exportStar(require("./SiteMenu"), exports);
|
9
|
-
tslib_1.__exportStar(require("./Toolbar"), exports);
|
10
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,mDAAwB;AACxB,8DAAmC;AACnC,iEAAsC;AACtC,sDAA2B;AAC3B,qDAA0B;AAC1B,oDAAyB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"State.js","sourceRoot":"","sources":["../../../../src/contexts/Collapsible/State.ts"],"names":[],"mappings":""}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CollapsibleContext = void 0;
|
4
|
-
const react_shared_1 = require("@xyo-network/react-shared");
|
5
|
-
exports.CollapsibleContext = (0, react_shared_1.createContextEx)();
|
6
|
-
//# sourceMappingURL=context.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/contexts/Collapsible/context.ts"],"names":[],"mappings":";;;AAAA,4DAA2D;AAI9C,QAAA,kBAAkB,GAAG,IAAA,8BAAe,GAAoB,CAAA"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./provider"), exports);
|
5
|
-
tslib_1.__exportStar(require("./State"), exports);
|
6
|
-
tslib_1.__exportStar(require("./use"), exports);
|
7
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/contexts/Collapsible/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,kDAAuB;AACvB,gDAAqB"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CollapsibleProvider = void 0;
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
5
|
-
const react_1 = require("react");
|
6
|
-
const context_1 = require("./context");
|
7
|
-
const CollapsibleProvider = ({ defaultCollapse = false, defaultCollapseEnd = false, children }) => {
|
8
|
-
const [collapse, setCollapse] = (0, react_1.useState)(defaultCollapse);
|
9
|
-
const [collapseEnd, setCollapseEnd] = (0, react_1.useState)(defaultCollapseEnd);
|
10
|
-
(0, react_1.useEffect)(() => {
|
11
|
-
setCollapse(defaultCollapse);
|
12
|
-
}, [defaultCollapse]);
|
13
|
-
(0, react_1.useEffect)(() => {
|
14
|
-
setCollapseEnd(defaultCollapseEnd);
|
15
|
-
}, [defaultCollapseEnd]);
|
16
|
-
return ((0, jsx_runtime_1.jsx)(context_1.CollapsibleContext.Provider, Object.assign({ value: { collapse, collapseEnd, provided: true, setCollapse, setCollapseEnd } }, { children: children })));
|
17
|
-
};
|
18
|
-
exports.CollapsibleProvider = CollapsibleProvider;
|
19
|
-
//# sourceMappingURL=provider.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../../src/contexts/Collapsible/provider.tsx"],"names":[],"mappings":";;;;AACA,iCAA2C;AAE3C,uCAA8C;AAOvC,MAAM,mBAAmB,GAAuC,CAAC,EAAE,eAAe,GAAG,KAAK,EAAE,kBAAkB,GAAG,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC3I,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAC,eAAe,CAAC,CAAA;IACzD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,kBAAkB,CAAC,CAAA;IAElE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,WAAW,CAAC,eAAe,CAAC,CAAA;IAC9B,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,CAAA;IAErB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,cAAc,CAAC,kBAAkB,CAAC,CAAA;IACpC,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAA;IAExB,OAAO,CACL,uBAAC,4BAAkB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,cAAc,EAAE,gBACvG,QAAQ,IACmB,CAC/B,CAAA;AACH,CAAC,CAAA;AAjBY,QAAA,mBAAmB,uBAiB/B"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.useCollapsible = void 0;
|
4
|
-
const react_shared_1 = require("@xyo-network/react-shared");
|
5
|
-
const context_1 = require("./context");
|
6
|
-
const useCollapsible = () => (0, react_shared_1.useContextEx)(context_1.CollapsibleContext, 'Collapsible', false);
|
7
|
-
exports.useCollapsible = useCollapsible;
|
8
|
-
//# sourceMappingURL=use.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"use.js","sourceRoot":"","sources":["../../../../src/contexts/Collapsible/use.tsx"],"names":[],"mappings":";;;AAAA,4DAAwD;AAExD,uCAA8C;AAEvC,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,IAAA,2BAAY,EAAC,4BAAkB,EAAE,aAAa,EAAE,KAAK,CAAC,CAAA;AAA7E,QAAA,cAAc,kBAA+D"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":";;;AAAA,wDAA6B"}
|
package/dist/cjs/index.js
DELETED
package/dist/cjs/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,qDAA0B"}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { AppBarEx } from '@xylabs/react-appbar';
|
3
|
-
import { ContextToolbar, SystemToolbar } from '../Toolbar';
|
4
|
-
export const ApplicationAppBar = ({ systemToolbar, contextToolbar, responsive = true, ...props }) => {
|
5
|
-
return (_jsx(AppBarEx, { systemToolbar: systemToolbar ?? _jsx(SystemToolbar, {}), contextToolbar: contextToolbar ?? _jsx(ContextToolbar, {}), position: "sticky", responsive: responsive, ...props }));
|
6
|
-
};
|
7
|
-
//# sourceMappingURL=Application.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Application.js","sourceRoot":"","sources":["../../../../src/components/AppBar/Application.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAiB,MAAM,sBAAsB,CAAA;AAG9D,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAQ1D,MAAM,CAAC,MAAM,iBAAiB,GAAqC,CAAC,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACpI,OAAO,CACL,KAAC,QAAQ,IACP,aAAa,EAAE,aAAa,IAAI,KAAC,aAAa,KAAG,EACjD,cAAc,EAAE,cAAc,IAAI,KAAC,cAAc,KAAG,EACpD,QAAQ,EAAC,QAAQ,EACjB,UAAU,EAAE,UAAU,KAClB,KAAK,GACT,CACH,CAAA;AACH,CAAC,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/AppBar/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { Icon, useTheme } from '@mui/material';
|
3
|
-
import { FlexRow } from '@xylabs/react-flexbox';
|
4
|
-
import { useState } from 'react';
|
5
|
-
import { VscArrowSmallLeft, VscArrowSmallRight } from 'react-icons/vsc';
|
6
|
-
import { useCollapsible } from '../../contexts';
|
7
|
-
export const CollapseToggleFlex = (props) => {
|
8
|
-
const { collapse, setCollapse, setCollapseEnd } = useCollapsible();
|
9
|
-
const [hover, setHover] = useState(false);
|
10
|
-
const theme = useTheme();
|
11
|
-
const handleCollapseToggle = () => {
|
12
|
-
setCollapse?.(!collapse);
|
13
|
-
setCollapseEnd?.((previous) => (previous ? false : previous));
|
14
|
-
};
|
15
|
-
return (_jsx(FlexRow, { mt: 2, py: 2, justifyContent: collapse ? 'start' : 'center', ...props, children: _jsx(Icon, { onClick: handleCollapseToggle, onMouseEnter: () => setHover(true), onMouseLeave: () => setHover(false), fontSize: 'large', sx: { color: hover ? theme.palette.secondary.main : 'inherit', cursor: 'pointer' }, children: !collapse ? _jsx(VscArrowSmallLeft, {}) : _jsx(VscArrowSmallRight, {}) }) }));
|
16
|
-
};
|
17
|
-
//# sourceMappingURL=CollapseToggle.js.map
|