@xyo-network/react-appbar 2.64.0-rc.7 → 2.64.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/browser/components/AppBar/Application.cjs +286 -0
- package/dist/browser/components/AppBar/Application.cjs.map +1 -0
- package/dist/browser/components/AppBar/Application.d.cts +10 -0
- package/dist/browser/components/AppBar/Application.d.cts.map +1 -0
- package/dist/browser/components/AppBar/Application.js +252 -6
- package/dist/browser/components/AppBar/Application.js.map +1 -1
- package/dist/browser/components/AppBar/index.cjs +288 -0
- package/dist/browser/components/AppBar/index.cjs.map +1 -0
- package/dist/browser/components/AppBar/index.d.cts +2 -0
- package/dist/browser/components/AppBar/index.d.cts.map +1 -0
- package/dist/browser/components/AppBar/index.js +264 -1
- package/dist/browser/components/AppBar/index.js.map +1 -1
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.cjs +61 -0
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.cjs.map +1 -0
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.d.cts +4 -0
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.d.cts.map +1 -0
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.d.mts.map +1 -1
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.d.ts.map +1 -1
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.js +13 -3
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.js.map +1 -1
- package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.cjs +66 -0
- package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.cjs.map +1 -0
- package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.d.cts +5 -0
- package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.d.cts.map +1 -0
- package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.js +14 -4
- package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.js.map +1 -1
- package/dist/browser/components/CollapsibleDrawer/index.cjs +96 -0
- package/dist/browser/components/CollapsibleDrawer/index.cjs.map +1 -0
- package/dist/browser/components/CollapsibleDrawer/index.d.cts +3 -0
- package/dist/browser/components/CollapsibleDrawer/index.d.cts.map +1 -0
- package/dist/browser/components/CollapsibleDrawer/index.js +72 -2
- package/dist/browser/components/CollapsibleDrawer/index.js.map +1 -1
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.cjs +92 -0
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.cjs.map +1 -0
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.d.cts +4 -0
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.d.cts.map +1 -0
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.d.mts.map +1 -1
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.d.ts.map +1 -1
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.js +4 -3
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.js.map +1 -1
- package/dist/browser/components/MobileSystemControls/SystemControls.cjs +143 -0
- package/dist/browser/components/MobileSystemControls/SystemControls.cjs.map +1 -0
- package/dist/browser/components/MobileSystemControls/SystemControls.d.cts +5 -0
- package/dist/browser/components/MobileSystemControls/SystemControls.d.cts.map +1 -0
- package/dist/browser/components/MobileSystemControls/SystemControls.js +117 -5
- package/dist/browser/components/MobileSystemControls/SystemControls.js.map +1 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsRoot.cjs +134 -0
- package/dist/browser/components/MobileSystemControls/SystemControlsRoot.cjs.map +1 -0
- package/dist/browser/components/MobileSystemControls/SystemControlsRoot.d.cts +4 -0
- package/dist/browser/components/MobileSystemControls/SystemControlsRoot.d.cts.map +1 -0
- package/dist/browser/components/MobileSystemControls/SystemControlsRoot.js +57 -5
- package/dist/browser/components/MobileSystemControls/SystemControlsRoot.js.map +1 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsType.cjs +32 -0
- package/dist/browser/components/MobileSystemControls/SystemControlsType.cjs.map +1 -0
- package/dist/browser/components/MobileSystemControls/SystemControlsType.d.cts +6 -0
- package/dist/browser/components/MobileSystemControls/SystemControlsType.d.cts.map +1 -0
- package/dist/browser/components/MobileSystemControls/SystemControlsType.js +1 -0
- package/dist/browser/components/MobileSystemControls/SystemControlsType.js.map +1 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.cjs +75 -0
- package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.cjs.map +1 -0
- package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.d.cts +11 -0
- package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.d.cts.map +1 -0
- package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.js +35 -9
- package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.js.map +1 -1
- package/dist/browser/components/MobileSystemControls/controls/SystemControl.cjs +49 -0
- package/dist/{node/components/MobileSystemControls/controls/SystemControl.mjs.map → browser/components/MobileSystemControls/controls/SystemControl.cjs.map} +1 -1
- package/dist/browser/components/MobileSystemControls/controls/SystemControl.d.cts +11 -0
- package/dist/browser/components/MobileSystemControls/controls/SystemControl.d.cts.map +1 -0
- package/dist/browser/components/MobileSystemControls/controls/SystemControl.js +5 -5
- package/dist/browser/components/MobileSystemControls/controls/SystemControl.js.map +1 -1
- package/dist/browser/components/MobileSystemControls/controls/SystemControlText.cjs +32 -0
- package/dist/{node/components/MobileSystemControls/controls/SystemControlText.mjs.map → browser/components/MobileSystemControls/controls/SystemControlText.cjs.map} +1 -1
- package/dist/browser/components/MobileSystemControls/controls/SystemControlText.d.cts +8 -0
- package/dist/browser/components/MobileSystemControls/controls/SystemControlText.d.cts.map +1 -0
- package/dist/browser/components/MobileSystemControls/controls/SystemControlText.js +3 -2
- package/dist/browser/components/MobileSystemControls/controls/SystemControlText.js.map +1 -1
- package/dist/browser/components/MobileSystemControls/controls/index.cjs +60 -0
- package/dist/browser/components/MobileSystemControls/controls/index.cjs.map +1 -0
- package/dist/browser/components/MobileSystemControls/controls/index.d.cts +3 -0
- package/dist/browser/components/MobileSystemControls/controls/index.d.cts.map +1 -0
- package/dist/browser/components/MobileSystemControls/controls/index.js +36 -2
- package/dist/browser/components/MobileSystemControls/controls/index.js.map +1 -1
- package/dist/browser/components/MobileSystemControls/index.cjs +155 -0
- package/dist/browser/components/MobileSystemControls/index.cjs.map +1 -0
- package/dist/browser/components/MobileSystemControls/index.d.cts +4 -0
- package/dist/browser/components/MobileSystemControls/index.d.cts.map +1 -0
- package/dist/browser/components/MobileSystemControls/index.js +131 -3
- package/dist/browser/components/MobileSystemControls/index.js.map +1 -1
- package/dist/browser/components/SearchBar/SearchBar.cjs +53 -0
- package/dist/browser/components/SearchBar/SearchBar.cjs.map +1 -0
- package/dist/browser/components/SearchBar/SearchBar.d.cts +7 -0
- package/dist/browser/components/SearchBar/SearchBar.d.cts.map +1 -0
- package/dist/browser/components/SearchBar/SearchBar.js +3 -2
- package/dist/browser/components/SearchBar/SearchBar.js.map +1 -1
- package/dist/browser/components/SearchBar/index.cjs +55 -0
- package/dist/browser/components/SearchBar/index.cjs.map +1 -0
- package/dist/browser/components/SearchBar/index.d.cts +2 -0
- package/dist/browser/components/SearchBar/index.d.cts.map +1 -0
- package/dist/browser/components/SearchBar/index.js +31 -1
- package/dist/browser/components/SearchBar/index.js.map +1 -1
- package/dist/browser/components/SiteMenu/Menu.cjs +193 -0
- package/dist/browser/components/SiteMenu/Menu.cjs.map +1 -0
- package/dist/browser/components/SiteMenu/Menu.d.cts +9 -0
- package/dist/browser/components/SiteMenu/Menu.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/Menu.js +144 -13
- package/dist/browser/components/SiteMenu/Menu.js.map +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs +153 -0
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.d.cts +11 -0
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.js +73 -13
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.js.map +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/index.cjs +155 -0
- package/dist/browser/components/SiteMenu/MenuListItem/index.cjs.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/index.d.cts +2 -0
- package/dist/browser/components/SiteMenu/MenuListItem/index.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/index.js +131 -1
- package/dist/browser/components/SiteMenu/MenuListItem/index.js.map +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs +33 -0
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.cts +7 -0
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.mts.map +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.ts.map +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js +3 -2
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs +31 -0
- package/dist/{node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.mjs.map → browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs.map} +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.cts +7 -0
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js +3 -2
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js.map +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs +34 -0
- package/dist/{node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.mjs.map → browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs.map} +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.cts +7 -0
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js +3 -2
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js.map +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.cjs +54 -0
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.cjs.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.d.cts +4 -0
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.js +30 -3
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.js.map +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs +31 -0
- package/dist/{node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.mjs.map → browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs.map} +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.cts +11 -0
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js +3 -2
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js.map +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs +43 -0
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.cts +8 -0
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.mts.map +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.ts.map +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js +3 -2
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js.map +1 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.cjs +53 -0
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.cjs.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.d.cts +3 -0
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.js +29 -2
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.js.map +1 -1
- package/dist/browser/components/SiteMenu/MenuSection.cjs +166 -0
- package/dist/browser/components/SiteMenu/MenuSection.cjs.map +1 -0
- package/dist/browser/components/SiteMenu/MenuSection.d.cts +11 -0
- package/dist/browser/components/SiteMenu/MenuSection.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/MenuSection.js +138 -7
- package/dist/browser/components/SiteMenu/MenuSection.js.map +1 -1
- package/dist/browser/components/SiteMenu/hooks/index.cjs +58 -0
- package/dist/browser/components/SiteMenu/hooks/index.cjs.map +1 -0
- package/dist/browser/components/SiteMenu/hooks/index.d.cts +2 -0
- package/dist/browser/components/SiteMenu/hooks/index.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/hooks/index.js +34 -1
- package/dist/browser/components/SiteMenu/hooks/index.js.map +1 -1
- package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.cjs +56 -0
- package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.cjs.map +1 -0
- package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.d.cts +7 -0
- package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.js +12 -2
- package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.js.map +1 -1
- package/dist/browser/components/SiteMenu/index.cjs +233 -0
- package/dist/browser/components/SiteMenu/index.cjs.map +1 -0
- package/dist/browser/components/SiteMenu/index.d.cts +6 -0
- package/dist/browser/components/SiteMenu/index.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/index.js +209 -5
- package/dist/browser/components/SiteMenu/index.js.map +1 -1
- package/dist/browser/components/SiteMenu/lib/MenuListItemBase.cjs +19 -0
- package/dist/browser/components/SiteMenu/lib/MenuListItemBase.cjs.map +1 -0
- package/dist/browser/components/SiteMenu/lib/MenuListItemBase.d.cts +5 -0
- package/dist/browser/components/SiteMenu/lib/MenuListItemBase.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/lib/NavListItemProps.cjs +19 -0
- package/dist/browser/components/SiteMenu/lib/NavListItemProps.cjs.map +1 -0
- package/dist/browser/components/SiteMenu/lib/NavListItemProps.d.cts +12 -0
- package/dist/browser/components/SiteMenu/lib/NavListItemProps.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/lib/index.cjs +19 -0
- package/dist/{node/components/SiteMenu/lib/index.mjs.map → browser/components/SiteMenu/lib/index.cjs.map} +1 -1
- package/dist/browser/components/SiteMenu/lib/index.d.cts +3 -0
- package/dist/browser/components/SiteMenu/lib/index.d.cts.map +1 -0
- package/dist/browser/components/SiteMenu/lib/index.js +0 -2
- package/dist/browser/components/SiteMenu/lib/index.js.map +1 -1
- package/dist/browser/components/Toolbar/Context/ContextToolbar.cjs +72 -0
- package/dist/browser/components/Toolbar/Context/ContextToolbar.cjs.map +1 -0
- package/dist/browser/components/Toolbar/Context/ContextToolbar.d.cts +9 -0
- package/dist/browser/components/Toolbar/Context/ContextToolbar.d.cts.map +1 -0
- package/dist/browser/components/Toolbar/Context/ContextToolbar.js +45 -4
- package/dist/browser/components/Toolbar/Context/ContextToolbar.js.map +1 -1
- package/dist/browser/components/Toolbar/Context/Logo.cjs +33 -0
- package/dist/{node/components/Toolbar/Context/Logo.mjs.map → browser/components/Toolbar/Context/Logo.cjs.map} +1 -1
- package/dist/browser/components/Toolbar/Context/Logo.d.cts +3 -0
- package/dist/browser/components/Toolbar/Context/Logo.d.cts.map +1 -0
- package/dist/browser/components/Toolbar/Context/Logo.js +3 -2
- package/dist/browser/components/Toolbar/Context/Logo.js.map +1 -1
- package/dist/browser/components/Toolbar/Context/LogoLinkEx.cjs +63 -0
- package/dist/browser/components/Toolbar/Context/LogoLinkEx.cjs.map +1 -0
- package/dist/browser/components/Toolbar/Context/LogoLinkEx.d.cts +7 -0
- package/dist/browser/components/Toolbar/Context/LogoLinkEx.d.cts.map +1 -0
- package/dist/browser/components/Toolbar/Context/LogoLinkEx.js +18 -7
- package/dist/browser/components/Toolbar/Context/LogoLinkEx.js.map +1 -1
- package/dist/browser/components/Toolbar/Context/index.cjs +74 -0
- package/dist/browser/components/Toolbar/Context/index.cjs.map +1 -0
- package/dist/browser/components/Toolbar/Context/index.d.cts +2 -0
- package/dist/browser/components/Toolbar/Context/index.d.cts.map +1 -0
- package/dist/browser/components/Toolbar/Context/index.js +50 -1
- package/dist/browser/components/Toolbar/Context/index.js.map +1 -1
- package/dist/browser/components/Toolbar/System/SystemToolbar.cjs +220 -0
- package/dist/browser/components/Toolbar/System/SystemToolbar.cjs.map +1 -0
- package/dist/browser/components/Toolbar/System/SystemToolbar.d.cts +15 -0
- package/dist/browser/components/Toolbar/System/SystemToolbar.d.cts.map +1 -0
- package/dist/browser/components/Toolbar/System/SystemToolbar.js +179 -8
- package/dist/browser/components/Toolbar/System/SystemToolbar.js.map +1 -1
- package/dist/browser/components/Toolbar/System/index.cjs +222 -0
- package/dist/browser/components/Toolbar/System/index.cjs.map +1 -0
- package/dist/browser/components/Toolbar/System/index.d.cts +2 -0
- package/dist/browser/components/Toolbar/System/index.d.cts.map +1 -0
- package/dist/browser/components/Toolbar/System/index.js +198 -1
- package/dist/browser/components/Toolbar/System/index.js.map +1 -1
- package/dist/browser/components/Toolbar/index.cjs +271 -0
- package/dist/browser/components/Toolbar/index.cjs.map +1 -0
- package/dist/browser/components/Toolbar/index.d.cts +3 -0
- package/dist/browser/components/Toolbar/index.d.cts.map +1 -0
- package/dist/browser/components/Toolbar/index.js +247 -2
- package/dist/browser/components/Toolbar/index.js.map +1 -1
- package/dist/browser/components/index.cjs +550 -0
- package/dist/browser/components/index.cjs.map +1 -0
- package/dist/browser/components/index.d.cts +7 -0
- package/dist/browser/components/index.d.cts.map +1 -0
- package/dist/browser/components/index.js +526 -6
- package/dist/browser/components/index.js.map +1 -1
- package/dist/browser/contexts/Collapsible/State.cjs +19 -0
- package/dist/browser/contexts/Collapsible/State.cjs.map +1 -0
- package/dist/browser/contexts/Collapsible/State.d.cts +9 -0
- package/dist/browser/contexts/Collapsible/State.d.cts.map +1 -0
- package/dist/browser/contexts/Collapsible/context.cjs +28 -0
- package/dist/{node/contexts/Collapsible/context.mjs.map → browser/contexts/Collapsible/context.cjs.map} +1 -1
- package/dist/browser/contexts/Collapsible/context.d.cts +4 -0
- package/dist/browser/contexts/Collapsible/context.d.cts.map +1 -0
- package/dist/browser/contexts/Collapsible/context.js +2 -1
- package/dist/browser/contexts/Collapsible/context.js.map +1 -1
- package/dist/browser/contexts/Collapsible/index.cjs +52 -0
- package/dist/browser/contexts/Collapsible/index.cjs.map +1 -0
- package/dist/browser/contexts/Collapsible/index.d.cts +4 -0
- package/dist/browser/contexts/Collapsible/index.d.cts.map +1 -0
- package/dist/browser/contexts/Collapsible/index.js +28 -3
- package/dist/browser/contexts/Collapsible/index.js.map +1 -1
- package/dist/browser/contexts/Collapsible/provider.cjs +45 -0
- package/dist/browser/contexts/Collapsible/provider.cjs.map +1 -0
- package/dist/browser/contexts/Collapsible/provider.d.cts +8 -0
- package/dist/browser/contexts/Collapsible/provider.d.cts.map +1 -0
- package/dist/browser/contexts/Collapsible/provider.js +9 -3
- package/dist/browser/contexts/Collapsible/provider.js.map +1 -1
- package/dist/browser/contexts/Collapsible/use.cjs +34 -0
- package/dist/browser/contexts/Collapsible/use.cjs.map +1 -0
- package/dist/browser/contexts/Collapsible/use.d.cts +2 -0
- package/dist/browser/contexts/Collapsible/use.d.cts.map +1 -0
- package/dist/browser/contexts/Collapsible/use.js +8 -2
- package/dist/browser/contexts/Collapsible/use.js.map +1 -1
- package/dist/browser/contexts/index.cjs +52 -0
- package/dist/browser/contexts/index.cjs.map +1 -0
- package/dist/browser/contexts/index.d.cts +2 -0
- package/dist/browser/contexts/index.d.cts.map +1 -0
- package/dist/browser/contexts/index.js +28 -1
- package/dist/browser/contexts/index.js.map +1 -1
- package/dist/browser/index.cjs +569 -0
- package/dist/browser/index.cjs.map +1 -0
- package/dist/browser/index.d.cts +3 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/browser/index.js +545 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/docs.json +96215 -0
- package/dist/node/components/AppBar/Application.cjs +290 -0
- package/dist/node/components/AppBar/Application.cjs.map +1 -0
- package/dist/node/components/AppBar/Application.d.cts +10 -0
- package/dist/node/components/AppBar/Application.d.cts.map +1 -0
- package/dist/node/components/AppBar/Application.js +256 -34
- package/dist/node/components/AppBar/Application.js.map +1 -1
- package/dist/node/components/AppBar/index.cjs +292 -0
- package/dist/node/components/AppBar/index.cjs.map +1 -0
- package/dist/node/components/AppBar/index.d.cts +2 -0
- package/dist/node/components/AppBar/index.d.cts.map +1 -0
- package/dist/node/components/AppBar/index.js +264 -22
- package/dist/node/components/AppBar/index.js.map +1 -1
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.cjs +65 -0
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.cjs.map +1 -0
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.d.cts +4 -0
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.d.cts.map +1 -0
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.d.mts.map +1 -1
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.d.ts.map +1 -1
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.js +27 -41
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.js.map +1 -1
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.cjs +70 -0
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.cjs.map +1 -0
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.d.cts +5 -0
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.d.cts.map +1 -0
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.js +21 -35
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.js.map +1 -1
- package/dist/node/components/CollapsibleDrawer/index.cjs +101 -0
- package/dist/node/components/CollapsibleDrawer/index.cjs.map +1 -0
- package/dist/node/components/CollapsibleDrawer/index.d.cts +3 -0
- package/dist/node/components/CollapsibleDrawer/index.d.cts.map +1 -0
- package/dist/node/components/CollapsibleDrawer/index.js +70 -22
- package/dist/node/components/CollapsibleDrawer/index.js.map +1 -1
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.cjs +97 -0
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.cjs.map +1 -0
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.d.cts +4 -0
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.d.cts.map +1 -0
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.d.mts.map +1 -1
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.d.ts.map +1 -1
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.js +32 -43
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.js.map +1 -1
- package/dist/node/components/MobileSystemControls/SystemControls.cjs +147 -0
- package/dist/node/components/MobileSystemControls/SystemControls.cjs.map +1 -0
- package/dist/node/components/MobileSystemControls/SystemControls.d.cts +5 -0
- package/dist/node/components/MobileSystemControls/SystemControls.d.cts.map +1 -0
- package/dist/node/components/MobileSystemControls/SystemControls.js +116 -28
- package/dist/node/components/MobileSystemControls/SystemControls.js.map +1 -1
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.cjs +138 -0
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.cjs.map +1 -0
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.d.cts +4 -0
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.d.cts.map +1 -0
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.js +57 -29
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.js.map +1 -1
- package/dist/node/components/MobileSystemControls/SystemControlsType.cjs +36 -0
- package/dist/node/components/MobileSystemControls/SystemControlsType.cjs.map +1 -0
- package/dist/node/components/MobileSystemControls/SystemControlsType.d.cts +6 -0
- package/dist/node/components/MobileSystemControls/SystemControlsType.d.cts.map +1 -0
- package/dist/node/components/MobileSystemControls/SystemControlsType.js +3 -26
- package/dist/node/components/MobileSystemControls/SystemControlsType.js.map +1 -1
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.cjs +79 -0
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.cjs.map +1 -0
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.d.cts +11 -0
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.d.cts.map +1 -0
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.js +39 -37
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.js.map +1 -1
- package/dist/node/components/MobileSystemControls/controls/SystemControl.cjs +53 -0
- package/dist/node/components/MobileSystemControls/controls/SystemControl.cjs.map +1 -0
- package/dist/node/components/MobileSystemControls/controls/SystemControl.d.cts +11 -0
- package/dist/node/components/MobileSystemControls/controls/SystemControl.d.cts.map +1 -0
- package/dist/node/components/MobileSystemControls/controls/SystemControl.js +14 -38
- package/dist/node/components/MobileSystemControls/controls/SystemControl.js.map +1 -1
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.cjs +36 -0
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.cjs.map +1 -0
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.d.cts +8 -0
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.d.cts.map +1 -0
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.js +8 -31
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.js.map +1 -1
- package/dist/node/components/MobileSystemControls/controls/index.cjs +65 -0
- package/dist/node/components/MobileSystemControls/controls/index.cjs.map +1 -0
- package/dist/node/components/MobileSystemControls/controls/index.d.cts +3 -0
- package/dist/node/components/MobileSystemControls/controls/index.d.cts.map +1 -0
- package/dist/node/components/MobileSystemControls/controls/index.js +34 -22
- package/dist/node/components/MobileSystemControls/controls/index.js.map +1 -1
- package/dist/node/components/MobileSystemControls/index.cjs +161 -0
- package/dist/node/components/MobileSystemControls/index.cjs.map +1 -0
- package/dist/node/components/MobileSystemControls/index.d.cts +4 -0
- package/dist/node/components/MobileSystemControls/index.d.cts.map +1 -0
- package/dist/node/components/MobileSystemControls/index.js +129 -24
- package/dist/node/components/MobileSystemControls/index.js.map +1 -1
- package/dist/node/components/SearchBar/SearchBar.cjs +57 -0
- package/dist/node/components/SearchBar/{SearchBar.mjs.map → SearchBar.cjs.map} +1 -1
- package/dist/node/components/SearchBar/SearchBar.d.cts +7 -0
- package/dist/node/components/SearchBar/SearchBar.d.cts.map +1 -0
- package/dist/node/components/SearchBar/SearchBar.js +16 -39
- package/dist/node/components/SearchBar/SearchBar.js.map +1 -1
- package/dist/node/components/SearchBar/index.cjs +59 -0
- package/dist/node/components/SearchBar/index.cjs.map +1 -0
- package/dist/node/components/SearchBar/index.d.cts +2 -0
- package/dist/node/components/SearchBar/index.d.cts.map +1 -0
- package/dist/node/components/SearchBar/index.js +30 -21
- package/dist/node/components/SearchBar/index.js.map +1 -1
- package/dist/node/components/SiteMenu/Menu.cjs +197 -0
- package/dist/node/components/SiteMenu/Menu.cjs.map +1 -0
- package/dist/node/components/SiteMenu/Menu.d.cts +9 -0
- package/dist/node/components/SiteMenu/Menu.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/Menu.js +148 -41
- package/dist/node/components/SiteMenu/Menu.js.map +1 -1
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs +157 -0
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.d.cts +11 -0
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.js +85 -49
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.js.map +1 -1
- package/dist/node/components/SiteMenu/MenuListItem/index.cjs +159 -0
- package/dist/node/components/SiteMenu/MenuListItem/index.cjs.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/index.d.cts +2 -0
- package/dist/node/components/SiteMenu/MenuListItem/index.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/index.js +130 -21
- package/dist/node/components/SiteMenu/MenuListItem/index.js.map +1 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs +37 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.cts +7 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.mts.map +1 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.d.ts.map +1 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js +9 -32
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map +1 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs +35 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.cts +7 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js +7 -30
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js.map +1 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs +38 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.cts +7 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js +7 -30
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js.map +1 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.cjs +60 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.cjs.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.d.cts +4 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.js +29 -25
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.js.map +1 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs +35 -0
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.cts +11 -0
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js +7 -30
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js.map +1 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs +47 -0
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.cts +8 -0
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.mts.map +1 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.d.ts.map +1 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js +12 -35
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js.map +1 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.cjs +58 -0
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.cjs.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.d.cts +3 -0
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.js +28 -23
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.js.map +1 -1
- package/dist/node/components/SiteMenu/MenuSection.cjs +170 -0
- package/dist/node/components/SiteMenu/MenuSection.cjs.map +1 -0
- package/dist/node/components/SiteMenu/MenuSection.d.cts +11 -0
- package/dist/node/components/SiteMenu/MenuSection.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/MenuSection.js +141 -34
- package/dist/node/components/SiteMenu/MenuSection.js.map +1 -1
- package/dist/node/components/SiteMenu/hooks/index.cjs +62 -0
- package/dist/node/components/SiteMenu/hooks/index.cjs.map +1 -0
- package/dist/node/components/SiteMenu/hooks/index.d.cts +2 -0
- package/dist/node/components/SiteMenu/hooks/index.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/hooks/index.js +33 -21
- package/dist/node/components/SiteMenu/hooks/index.js.map +1 -1
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.cjs +60 -0
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.cjs.map +1 -0
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.d.cts +7 -0
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.js +19 -33
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.js.map +1 -1
- package/dist/node/components/SiteMenu/index.cjs +240 -0
- package/dist/node/components/SiteMenu/index.cjs.map +1 -0
- package/dist/node/components/SiteMenu/index.d.cts +6 -0
- package/dist/node/components/SiteMenu/index.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/index.js +209 -30
- package/dist/node/components/SiteMenu/index.js.map +1 -1
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.cjs +19 -0
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.cjs.map +1 -0
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.d.cts +5 -0
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.js +0 -16
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.js.map +1 -1
- package/dist/node/components/SiteMenu/lib/NavListItemProps.cjs +19 -0
- package/dist/node/components/SiteMenu/lib/NavListItemProps.cjs.map +1 -0
- package/dist/node/components/SiteMenu/lib/NavListItemProps.d.cts +12 -0
- package/dist/node/components/SiteMenu/lib/NavListItemProps.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/lib/NavListItemProps.js +0 -16
- package/dist/node/components/SiteMenu/lib/NavListItemProps.js.map +1 -1
- package/dist/node/components/SiteMenu/lib/index.cjs +19 -0
- package/dist/node/components/SiteMenu/lib/index.cjs.map +1 -0
- package/dist/node/components/SiteMenu/lib/index.d.cts +3 -0
- package/dist/node/components/SiteMenu/lib/index.d.cts.map +1 -0
- package/dist/node/components/SiteMenu/lib/index.js +0 -24
- package/dist/node/components/SiteMenu/lib/index.js.map +1 -1
- package/dist/node/components/Toolbar/Context/ContextToolbar.cjs +76 -0
- package/dist/node/components/Toolbar/Context/ContextToolbar.cjs.map +1 -0
- package/dist/node/components/Toolbar/Context/ContextToolbar.d.cts +9 -0
- package/dist/node/components/Toolbar/Context/ContextToolbar.d.cts.map +1 -0
- package/dist/node/components/Toolbar/Context/ContextToolbar.js +46 -29
- package/dist/node/components/Toolbar/Context/ContextToolbar.js.map +1 -1
- package/dist/node/components/Toolbar/Context/Logo.cjs +37 -0
- package/dist/node/components/Toolbar/Context/Logo.cjs.map +1 -0
- package/dist/node/components/Toolbar/Context/Logo.d.cts +3 -0
- package/dist/node/components/Toolbar/Context/Logo.d.cts.map +1 -0
- package/dist/node/components/Toolbar/Context/Logo.js +8 -31
- package/dist/node/components/Toolbar/Context/Logo.js.map +1 -1
- package/dist/node/components/Toolbar/Context/LogoLinkEx.cjs +67 -0
- package/dist/node/components/Toolbar/Context/LogoLinkEx.cjs.map +1 -0
- package/dist/node/components/Toolbar/Context/LogoLinkEx.d.cts +7 -0
- package/dist/node/components/Toolbar/Context/LogoLinkEx.d.cts.map +1 -0
- package/dist/node/components/Toolbar/Context/LogoLinkEx.js +23 -36
- package/dist/node/components/Toolbar/Context/LogoLinkEx.js.map +1 -1
- package/dist/node/components/Toolbar/Context/index.cjs +78 -0
- package/dist/node/components/Toolbar/Context/index.cjs.map +1 -0
- package/dist/node/components/Toolbar/Context/index.d.cts +2 -0
- package/dist/node/components/Toolbar/Context/index.d.cts.map +1 -0
- package/dist/node/components/Toolbar/Context/index.js +49 -21
- package/dist/node/components/Toolbar/Context/index.js.map +1 -1
- package/dist/node/components/Toolbar/System/SystemToolbar.cjs +224 -0
- package/dist/node/components/Toolbar/System/SystemToolbar.cjs.map +1 -0
- package/dist/node/components/Toolbar/System/SystemToolbar.d.cts +15 -0
- package/dist/node/components/Toolbar/System/SystemToolbar.d.cts.map +1 -0
- package/dist/node/components/Toolbar/System/SystemToolbar.js +184 -37
- package/dist/node/components/Toolbar/System/SystemToolbar.js.map +1 -1
- package/dist/node/components/Toolbar/System/index.cjs +226 -0
- package/dist/node/components/Toolbar/System/index.cjs.map +1 -0
- package/dist/node/components/Toolbar/System/index.d.cts +2 -0
- package/dist/node/components/Toolbar/System/index.d.cts.map +1 -0
- package/dist/node/components/Toolbar/System/index.js +198 -22
- package/dist/node/components/Toolbar/System/index.js.map +1 -1
- package/dist/node/components/Toolbar/index.cjs +276 -0
- package/dist/node/components/Toolbar/index.cjs.map +1 -0
- package/dist/node/components/Toolbar/index.d.cts +3 -0
- package/dist/node/components/Toolbar/index.d.cts.map +1 -0
- package/dist/node/components/Toolbar/index.js +247 -24
- package/dist/node/components/Toolbar/index.js.map +1 -1
- package/dist/node/components/index.cjs +566 -0
- package/dist/node/components/index.cjs.map +1 -0
- package/dist/node/components/index.d.cts +7 -0
- package/dist/node/components/index.d.cts.map +1 -0
- package/dist/node/components/index.js +525 -31
- package/dist/node/components/index.js.map +1 -1
- package/dist/node/contexts/Collapsible/State.cjs +19 -0
- package/dist/node/contexts/Collapsible/State.cjs.map +1 -0
- package/dist/node/contexts/Collapsible/State.d.cts +9 -0
- package/dist/node/contexts/Collapsible/State.d.cts.map +1 -0
- package/dist/node/contexts/Collapsible/State.js +0 -16
- package/dist/node/contexts/Collapsible/State.js.map +1 -1
- package/dist/node/contexts/Collapsible/context.cjs +32 -0
- package/dist/node/contexts/Collapsible/context.cjs.map +1 -0
- package/dist/node/contexts/Collapsible/context.d.cts +4 -0
- package/dist/node/contexts/Collapsible/context.d.cts.map +1 -0
- package/dist/node/contexts/Collapsible/context.js +5 -28
- package/dist/node/contexts/Collapsible/context.js.map +1 -1
- package/dist/node/contexts/Collapsible/index.cjs +57 -0
- package/dist/node/contexts/Collapsible/index.cjs.map +1 -0
- package/dist/node/contexts/Collapsible/index.d.cts +4 -0
- package/dist/node/contexts/Collapsible/index.d.cts.map +1 -0
- package/dist/node/contexts/Collapsible/index.js +27 -25
- package/dist/node/contexts/Collapsible/index.js.map +1 -1
- package/dist/node/contexts/Collapsible/provider.cjs +49 -0
- package/dist/node/contexts/Collapsible/provider.cjs.map +1 -0
- package/dist/node/contexts/Collapsible/provider.d.cts +8 -0
- package/dist/node/contexts/Collapsible/provider.d.cts.map +1 -0
- package/dist/node/contexts/Collapsible/provider.js +17 -35
- package/dist/node/contexts/Collapsible/provider.js.map +1 -1
- package/dist/node/contexts/Collapsible/use.cjs +38 -0
- package/dist/node/contexts/Collapsible/use.cjs.map +1 -0
- package/dist/node/contexts/Collapsible/use.d.cts +2 -0
- package/dist/node/contexts/Collapsible/use.d.cts.map +1 -0
- package/dist/node/contexts/Collapsible/use.js +11 -29
- package/dist/node/contexts/Collapsible/use.js.map +1 -1
- package/dist/node/contexts/index.cjs +57 -0
- package/dist/node/contexts/index.cjs.map +1 -0
- package/dist/node/contexts/index.d.cts +2 -0
- package/dist/node/contexts/index.d.cts.map +1 -0
- package/dist/node/contexts/index.js +27 -21
- package/dist/node/contexts/index.js.map +1 -1
- package/dist/node/index.cjs +587 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.d.cts +3 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.js +544 -23
- package/dist/node/index.js.map +1 -1
- package/package.json +23 -23
- package/src/components/CollapsibleDrawer/CollapseToggle.tsx +1 -0
- package/src/components/CollapsibleDrawer/storyExampleMenuData.tsx +1 -0
- package/src/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.tsx +1 -0
- package/src/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.tsx +1 -0
- package/src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx +1 -0
- package/dist/browser/components/AppBar/Application.stories.js +0 -64
- package/dist/browser/components/AppBar/Application.stories.js.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/CollapseDrawer.stories.js +0 -45
- package/dist/browser/components/CollapsibleDrawer/CollapseDrawer.stories.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControls.stories.js +0 -34
- package/dist/browser/components/MobileSystemControls/SystemControls.stories.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.js +0 -46
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.js.map +0 -1
- package/dist/browser/components/Toolbar/Context/ContextToolbar.stories.js +0 -25
- package/dist/browser/components/Toolbar/Context/ContextToolbar.stories.js.map +0 -1
- package/dist/browser/components/Toolbar/System/SystemToolbar.stories.js +0 -48
- package/dist/browser/components/Toolbar/System/SystemToolbar.stories.js.map +0 -1
- package/dist/node/components/AppBar/Application.mjs +0 -19
- package/dist/node/components/AppBar/Application.mjs.map +0 -1
- package/dist/node/components/AppBar/Application.stories.js +0 -90
- package/dist/node/components/AppBar/Application.stories.js.map +0 -1
- package/dist/node/components/AppBar/Application.stories.mjs +0 -64
- package/dist/node/components/AppBar/Application.stories.mjs.map +0 -1
- package/dist/node/components/AppBar/index.mjs +0 -2
- package/dist/node/components/AppBar/index.mjs.map +0 -1
- package/dist/node/components/CollapsibleDrawer/CollapseDrawer.stories.js +0 -69
- package/dist/node/components/CollapsibleDrawer/CollapseDrawer.stories.js.map +0 -1
- package/dist/node/components/CollapsibleDrawer/CollapseDrawer.stories.mjs +0 -45
- package/dist/node/components/CollapsibleDrawer/CollapseDrawer.stories.mjs.map +0 -1
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.mjs +0 -30
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.mjs.map +0 -1
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.mjs +0 -35
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.mjs.map +0 -1
- package/dist/node/components/CollapsibleDrawer/index.mjs +0 -3
- package/dist/node/components/CollapsibleDrawer/index.mjs.map +0 -1
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.mjs +0 -83
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.mjs.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControls.mjs +0 -10
- package/dist/node/components/MobileSystemControls/SystemControls.mjs.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControls.stories.js +0 -59
- package/dist/node/components/MobileSystemControls/SystemControls.stories.js.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControls.stories.mjs +0 -34
- package/dist/node/components/MobileSystemControls/SystemControls.stories.mjs.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.mjs +0 -61
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.mjs.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsType.mjs +0 -10
- package/dist/node/components/MobileSystemControls/SystemControlsType.mjs.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.mjs +0 -28
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.mjs.map +0 -1
- package/dist/node/components/MobileSystemControls/controls/SystemControl.mjs +0 -28
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.mjs +0 -10
- package/dist/node/components/MobileSystemControls/controls/index.mjs +0 -3
- package/dist/node/components/MobileSystemControls/controls/index.mjs.map +0 -1
- package/dist/node/components/MobileSystemControls/index.mjs +0 -4
- package/dist/node/components/MobileSystemControls/index.mjs.map +0 -1
- package/dist/node/components/SearchBar/SearchBar.mjs +0 -31
- package/dist/node/components/SearchBar/index.mjs +0 -2
- package/dist/node/components/SearchBar/index.mjs.map +0 -1
- package/dist/node/components/SiteMenu/Menu.mjs +0 -41
- package/dist/node/components/SiteMenu/Menu.mjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.mjs +0 -72
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.mjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.js +0 -71
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.mjs +0 -46
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.stories.mjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/index.mjs +0 -2
- package/dist/node/components/SiteMenu/MenuListItem/index.mjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.mjs +0 -11
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.mjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.mjs +0 -9
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.mjs +0 -12
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.mjs +0 -4
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.mjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.mjs +0 -9
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.mjs +0 -21
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.mjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.mjs +0 -3
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.mjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuSection.mjs +0 -14
- package/dist/node/components/SiteMenu/MenuSection.mjs.map +0 -1
- package/dist/node/components/SiteMenu/hooks/index.mjs +0 -2
- package/dist/node/components/SiteMenu/hooks/index.mjs.map +0 -1
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.mjs +0 -25
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.mjs.map +0 -1
- package/dist/node/components/SiteMenu/index.mjs +0 -6
- package/dist/node/components/SiteMenu/index.mjs.map +0 -1
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.mjs +0 -1
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.mjs.map +0 -1
- package/dist/node/components/SiteMenu/lib/NavListItemProps.mjs +0 -1
- package/dist/node/components/SiteMenu/lib/NavListItemProps.mjs.map +0 -1
- package/dist/node/components/SiteMenu/lib/index.mjs +0 -3
- package/dist/node/components/Toolbar/Context/ContextToolbar.mjs +0 -10
- package/dist/node/components/Toolbar/Context/ContextToolbar.mjs.map +0 -1
- package/dist/node/components/Toolbar/Context/ContextToolbar.stories.js +0 -50
- package/dist/node/components/Toolbar/Context/ContextToolbar.stories.js.map +0 -1
- package/dist/node/components/Toolbar/Context/ContextToolbar.stories.mjs +0 -25
- package/dist/node/components/Toolbar/Context/ContextToolbar.stories.mjs.map +0 -1
- package/dist/node/components/Toolbar/Context/Logo.mjs +0 -11
- package/dist/node/components/Toolbar/Context/LogoLinkEx.mjs +0 -31
- package/dist/node/components/Toolbar/Context/LogoLinkEx.mjs.map +0 -1
- package/dist/node/components/Toolbar/Context/index.mjs +0 -2
- package/dist/node/components/Toolbar/Context/index.mjs.map +0 -1
- package/dist/node/components/Toolbar/System/SystemToolbar.mjs +0 -28
- package/dist/node/components/Toolbar/System/SystemToolbar.mjs.map +0 -1
- package/dist/node/components/Toolbar/System/SystemToolbar.stories.js +0 -74
- package/dist/node/components/Toolbar/System/SystemToolbar.stories.js.map +0 -1
- package/dist/node/components/Toolbar/System/SystemToolbar.stories.mjs +0 -48
- package/dist/node/components/Toolbar/System/SystemToolbar.stories.mjs.map +0 -1
- package/dist/node/components/Toolbar/System/index.mjs +0 -2
- package/dist/node/components/Toolbar/System/index.mjs.map +0 -1
- package/dist/node/components/Toolbar/index.mjs +0 -3
- package/dist/node/components/Toolbar/index.mjs.map +0 -1
- package/dist/node/components/index.mjs +0 -7
- package/dist/node/components/index.mjs.map +0 -1
- package/dist/node/contexts/Collapsible/State.mjs +0 -1
- package/dist/node/contexts/Collapsible/State.mjs.map +0 -1
- package/dist/node/contexts/Collapsible/context.mjs +0 -6
- package/dist/node/contexts/Collapsible/index.mjs +0 -4
- package/dist/node/contexts/Collapsible/index.mjs.map +0 -1
- package/dist/node/contexts/Collapsible/provider.mjs +0 -18
- package/dist/node/contexts/Collapsible/provider.mjs.map +0 -1
- package/dist/node/contexts/Collapsible/use.mjs +0 -7
- package/dist/node/contexts/Collapsible/use.mjs.map +0 -1
- package/dist/node/contexts/index.mjs +0 -2
- package/dist/node/contexts/index.mjs.map +0 -1
- package/dist/node/index.mjs +0 -3
- package/dist/node/index.mjs.map +0 -1
@@ -0,0 +1,96 @@
|
|
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/CollapsibleDrawer/index.ts
|
21
|
+
var CollapsibleDrawer_exports = {};
|
22
|
+
__export(CollapsibleDrawer_exports, {
|
23
|
+
CollapseToggleFlex: () => CollapseToggleFlex,
|
24
|
+
CollapsibleDrawer: () => CollapsibleDrawer
|
25
|
+
});
|
26
|
+
module.exports = __toCommonJS(CollapsibleDrawer_exports);
|
27
|
+
|
28
|
+
// src/components/CollapsibleDrawer/CollapseToggle.tsx
|
29
|
+
var import_material = require("@mui/material");
|
30
|
+
var import_react_flexbox = require("@xylabs/react-flexbox");
|
31
|
+
var import_react = require("react");
|
32
|
+
var import_vsc = require("react-icons/vsc/index.js");
|
33
|
+
|
34
|
+
// src/contexts/Collapsible/context.ts
|
35
|
+
var import_react_shared = require("@xyo-network/react-shared");
|
36
|
+
var CollapsibleContext = (0, import_react_shared.createContextEx)();
|
37
|
+
|
38
|
+
// src/contexts/Collapsible/use.tsx
|
39
|
+
var import_react_shared2 = require("@xyo-network/react-shared");
|
40
|
+
var useCollapsible = () => (0, import_react_shared2.useContextEx)(CollapsibleContext, "Collapsible", false);
|
41
|
+
|
42
|
+
// src/components/CollapsibleDrawer/CollapseToggle.tsx
|
43
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
44
|
+
var CollapseToggleFlex = (props) => {
|
45
|
+
const { collapse, setCollapse, setCollapseEnd } = useCollapsible();
|
46
|
+
const [hover, setHover] = (0, import_react.useState)(false);
|
47
|
+
const theme = (0, import_material.useTheme)();
|
48
|
+
const handleCollapseToggle = () => {
|
49
|
+
setCollapse?.(!collapse);
|
50
|
+
setCollapseEnd?.((previous) => previous ? false : previous);
|
51
|
+
};
|
52
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexRow, { mt: 2, py: 2, justifyContent: collapse ? "start" : "center", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
53
|
+
import_material.Icon,
|
54
|
+
{
|
55
|
+
onClick: handleCollapseToggle,
|
56
|
+
onMouseEnter: () => setHover(true),
|
57
|
+
onMouseLeave: () => setHover(false),
|
58
|
+
fontSize: "large",
|
59
|
+
sx: { color: hover ? theme.palette.secondary.main : "inherit", cursor: "pointer" },
|
60
|
+
children: !collapse ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscArrowSmallLeft, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscArrowSmallRight, {})
|
61
|
+
}
|
62
|
+
) });
|
63
|
+
};
|
64
|
+
|
65
|
+
// src/components/CollapsibleDrawer/CollapsibleDrawer.tsx
|
66
|
+
var import_material2 = require("@mui/material");
|
67
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
68
|
+
var CollapsibleDrawer = ({ children, sx, ...props }) => {
|
69
|
+
const { collapse, setCollapseEnd } = useCollapsible();
|
70
|
+
const theme = (0, import_material2.useTheme)();
|
71
|
+
const collapsedSize = props.collapsedSize ?? theme.spacing(5);
|
72
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
73
|
+
CollapsibleFlexInner,
|
74
|
+
{
|
75
|
+
in: !collapse,
|
76
|
+
orientation: "horizontal",
|
77
|
+
collapsedSize,
|
78
|
+
onExited: () => setCollapseEnd?.(true),
|
79
|
+
sx: {
|
80
|
+
alignItems: "start",
|
81
|
+
display: "flex",
|
82
|
+
height: "100%",
|
83
|
+
...sx
|
84
|
+
},
|
85
|
+
...props,
|
86
|
+
children
|
87
|
+
}
|
88
|
+
);
|
89
|
+
};
|
90
|
+
var CollapsibleFlexInner = (0, import_material2.styled)(import_material2.Collapse)(() => ({
|
91
|
+
"& .MuiCollapse-wrapperInner": {
|
92
|
+
display: "flex",
|
93
|
+
flexDirection: "column"
|
94
|
+
}
|
95
|
+
}));
|
96
|
+
//# sourceMappingURL=index.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/CollapsibleDrawer/index.ts","../../../../src/components/CollapsibleDrawer/CollapseToggle.tsx","../../../../src/contexts/Collapsible/context.ts","../../../../src/contexts/Collapsible/use.tsx","../../../../src/components/CollapsibleDrawer/CollapsibleDrawer.tsx"],"sourcesContent":["export * from './CollapseToggle'\nexport * from './CollapsibleDrawer'\n","import { Icon, useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { useState } from 'react'\n// eslint-disable-next-line import/no-internal-modules\nimport { VscArrowSmallLeft, VscArrowSmallRight } from 'react-icons/vsc/index.js'\n\nimport { useCollapsible } from '../../contexts'\n\nexport const CollapseToggleFlex: React.FC<FlexBoxProps> = (props) => {\n const { collapse, setCollapse, setCollapseEnd } = useCollapsible()\n const [hover, setHover] = useState(false)\n const theme = useTheme()\n\n const handleCollapseToggle = () => {\n setCollapse?.(!collapse)\n setCollapseEnd?.((previous) => (previous ? false : previous))\n }\n\n return (\n <FlexRow mt={2} py={2} justifyContent={collapse ? 'start' : 'center'} {...props}>\n <Icon\n onClick={handleCollapseToggle}\n onMouseEnter={() => setHover(true)}\n onMouseLeave={() => setHover(false)}\n fontSize={'large'}\n sx={{ color: hover ? theme.palette.secondary.main : 'inherit', cursor: 'pointer' }}\n >\n {!collapse ? <VscArrowSmallLeft /> : <VscArrowSmallRight />}\n </Icon>\n </FlexRow>\n )\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 { Collapse, CollapseProps, styled, useTheme } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { useCollapsible } from '../../contexts'\n\nexport const CollapsibleDrawer: React.FC<WithChildren<CollapseProps>> = ({ children, sx, ...props }) => {\n const { collapse, setCollapseEnd } = useCollapsible()\n const theme = useTheme()\n\n const collapsedSize = props.collapsedSize ?? theme.spacing(5)\n\n return (\n <CollapsibleFlexInner\n in={!collapse}\n orientation=\"horizontal\"\n collapsedSize={collapsedSize}\n onExited={() => setCollapseEnd?.(true)}\n sx={{\n alignItems: 'start',\n display: 'flex',\n height: '100%',\n ...sx,\n }}\n {...props}\n >\n {children}\n </CollapsibleFlexInner>\n )\n}\n\nconst CollapsibleFlexInner = styled(Collapse)(() => ({\n '& .MuiCollapse-wrapperInner': {\n display: 'flex',\n flexDirection: 'column',\n },\n}))\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAA+B;AAC/B,2BAAsC;AACtC,mBAAyB;AAEzB,iBAAsD;;;ACJtD,0BAAgC;AAIzB,IAAM,yBAAqB,qCAAkC;;;ACJpE,IAAAA,uBAA6B;AAItB,IAAM,iBAAiB,UAAM,mCAAa,oBAAoB,eAAe,KAAK;;;AFuBpE;AAnBd,IAAM,qBAA6C,CAAC,UAAU;AACnE,QAAM,EAAE,UAAU,aAAa,eAAe,IAAI,eAAe;AACjE,QAAM,CAAC,OAAO,QAAQ,QAAI,uBAAS,KAAK;AACxC,QAAM,YAAQ,0BAAS;AAEvB,QAAM,uBAAuB,MAAM;AACjC,kBAAc,CAAC,QAAQ;AACvB,qBAAiB,CAAC,aAAc,WAAW,QAAQ,QAAS;AAAA,EAC9D;AAEA,SACE,4CAAC,gCAAQ,IAAI,GAAG,IAAI,GAAG,gBAAgB,WAAW,UAAU,UAAW,GAAG,OACxE;AAAA,IAAC;AAAA;AAAA,MACC,SAAS;AAAA,MACT,cAAc,MAAM,SAAS,IAAI;AAAA,MACjC,cAAc,MAAM,SAAS,KAAK;AAAA,MAClC,UAAU;AAAA,MACV,IAAI,EAAE,OAAO,QAAQ,MAAM,QAAQ,UAAU,OAAO,WAAW,QAAQ,UAAU;AAAA,MAEhF,WAAC,WAAW,4CAAC,gCAAkB,IAAK,4CAAC,iCAAmB;AAAA;AAAA,EAC3D,GACF;AAEJ;;;AG/BA,IAAAC,mBAA0D;AAYtD,IAAAC,sBAAA;AAPG,IAAM,oBAA2D,CAAC,EAAE,UAAU,IAAI,GAAG,MAAM,MAAM;AACtG,QAAM,EAAE,UAAU,eAAe,IAAI,eAAe;AACpD,QAAM,YAAQ,2BAAS;AAEvB,QAAM,gBAAgB,MAAM,iBAAiB,MAAM,QAAQ,CAAC;AAE5D,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAI,CAAC;AAAA,MACL,aAAY;AAAA,MACZ;AAAA,MACA,UAAU,MAAM,iBAAiB,IAAI;AAAA,MACrC,IAAI;AAAA,QACF,YAAY;AAAA,QACZ,SAAS;AAAA,QACT,QAAQ;AAAA,QACR,GAAG;AAAA,MACL;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ;AAEA,IAAM,2BAAuB,yBAAO,yBAAQ,EAAE,OAAO;AAAA,EACnD,+BAA+B;AAAA,IAC7B,SAAS;AAAA,IACT,eAAe;AAAA,EACjB;AACF,EAAE;","names":["import_react_shared","import_material","import_jsx_runtime"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CollapsibleDrawer/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA"}
|
@@ -1,3 +1,73 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
// src/components/CollapsibleDrawer/CollapseToggle.tsx
|
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/index.js";
|
6
|
+
|
7
|
+
// src/contexts/Collapsible/context.ts
|
8
|
+
import { createContextEx } from "@xyo-network/react-shared";
|
9
|
+
var CollapsibleContext = createContextEx();
|
10
|
+
|
11
|
+
// src/contexts/Collapsible/use.tsx
|
12
|
+
import { useContextEx } from "@xyo-network/react-shared";
|
13
|
+
var useCollapsible = () => useContextEx(CollapsibleContext, "Collapsible", false);
|
14
|
+
|
15
|
+
// src/components/CollapsibleDrawer/CollapseToggle.tsx
|
16
|
+
import { jsx } from "react/jsx-runtime";
|
17
|
+
var CollapseToggleFlex = (props) => {
|
18
|
+
const { collapse, setCollapse, setCollapseEnd } = useCollapsible();
|
19
|
+
const [hover, setHover] = useState(false);
|
20
|
+
const theme = useTheme();
|
21
|
+
const handleCollapseToggle = () => {
|
22
|
+
setCollapse?.(!collapse);
|
23
|
+
setCollapseEnd?.((previous) => previous ? false : previous);
|
24
|
+
};
|
25
|
+
return /* @__PURE__ */ jsx(FlexRow, { mt: 2, py: 2, justifyContent: collapse ? "start" : "center", ...props, children: /* @__PURE__ */ jsx(
|
26
|
+
Icon,
|
27
|
+
{
|
28
|
+
onClick: handleCollapseToggle,
|
29
|
+
onMouseEnter: () => setHover(true),
|
30
|
+
onMouseLeave: () => setHover(false),
|
31
|
+
fontSize: "large",
|
32
|
+
sx: { color: hover ? theme.palette.secondary.main : "inherit", cursor: "pointer" },
|
33
|
+
children: !collapse ? /* @__PURE__ */ jsx(VscArrowSmallLeft, {}) : /* @__PURE__ */ jsx(VscArrowSmallRight, {})
|
34
|
+
}
|
35
|
+
) });
|
36
|
+
};
|
37
|
+
|
38
|
+
// src/components/CollapsibleDrawer/CollapsibleDrawer.tsx
|
39
|
+
import { Collapse, styled, useTheme as useTheme2 } from "@mui/material";
|
40
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
41
|
+
var CollapsibleDrawer = ({ children, sx, ...props }) => {
|
42
|
+
const { collapse, setCollapseEnd } = useCollapsible();
|
43
|
+
const theme = useTheme2();
|
44
|
+
const collapsedSize = props.collapsedSize ?? theme.spacing(5);
|
45
|
+
return /* @__PURE__ */ jsx2(
|
46
|
+
CollapsibleFlexInner,
|
47
|
+
{
|
48
|
+
in: !collapse,
|
49
|
+
orientation: "horizontal",
|
50
|
+
collapsedSize,
|
51
|
+
onExited: () => setCollapseEnd?.(true),
|
52
|
+
sx: {
|
53
|
+
alignItems: "start",
|
54
|
+
display: "flex",
|
55
|
+
height: "100%",
|
56
|
+
...sx
|
57
|
+
},
|
58
|
+
...props,
|
59
|
+
children
|
60
|
+
}
|
61
|
+
);
|
62
|
+
};
|
63
|
+
var CollapsibleFlexInner = styled(Collapse)(() => ({
|
64
|
+
"& .MuiCollapse-wrapperInner": {
|
65
|
+
display: "flex",
|
66
|
+
flexDirection: "column"
|
67
|
+
}
|
68
|
+
}));
|
69
|
+
export {
|
70
|
+
CollapseToggleFlex,
|
71
|
+
CollapsibleDrawer
|
72
|
+
};
|
3
73
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/CollapsibleDrawer/
|
1
|
+
{"version":3,"sources":["../../../../src/components/CollapsibleDrawer/CollapseToggle.tsx","../../../../src/contexts/Collapsible/context.ts","../../../../src/contexts/Collapsible/use.tsx","../../../../src/components/CollapsibleDrawer/CollapsibleDrawer.tsx"],"sourcesContent":["import { Icon, useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { useState } from 'react'\n// eslint-disable-next-line import/no-internal-modules\nimport { VscArrowSmallLeft, VscArrowSmallRight } from 'react-icons/vsc/index.js'\n\nimport { useCollapsible } from '../../contexts'\n\nexport const CollapseToggleFlex: React.FC<FlexBoxProps> = (props) => {\n const { collapse, setCollapse, setCollapseEnd } = useCollapsible()\n const [hover, setHover] = useState(false)\n const theme = useTheme()\n\n const handleCollapseToggle = () => {\n setCollapse?.(!collapse)\n setCollapseEnd?.((previous) => (previous ? false : previous))\n }\n\n return (\n <FlexRow mt={2} py={2} justifyContent={collapse ? 'start' : 'center'} {...props}>\n <Icon\n onClick={handleCollapseToggle}\n onMouseEnter={() => setHover(true)}\n onMouseLeave={() => setHover(false)}\n fontSize={'large'}\n sx={{ color: hover ? theme.palette.secondary.main : 'inherit', cursor: 'pointer' }}\n >\n {!collapse ? <VscArrowSmallLeft /> : <VscArrowSmallRight />}\n </Icon>\n </FlexRow>\n )\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 { Collapse, CollapseProps, styled, useTheme } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { useCollapsible } from '../../contexts'\n\nexport const CollapsibleDrawer: React.FC<WithChildren<CollapseProps>> = ({ children, sx, ...props }) => {\n const { collapse, setCollapseEnd } = useCollapsible()\n const theme = useTheme()\n\n const collapsedSize = props.collapsedSize ?? theme.spacing(5)\n\n return (\n <CollapsibleFlexInner\n in={!collapse}\n orientation=\"horizontal\"\n collapsedSize={collapsedSize}\n onExited={() => setCollapseEnd?.(true)}\n sx={{\n alignItems: 'start',\n display: 'flex',\n height: '100%',\n ...sx,\n }}\n {...props}\n >\n {children}\n </CollapsibleFlexInner>\n )\n}\n\nconst CollapsibleFlexInner = styled(Collapse)(() => ({\n '& .MuiCollapse-wrapperInner': {\n display: 'flex',\n flexDirection: 'column',\n },\n}))\n"],"mappings":";AAAA,SAAS,MAAM,gBAAgB;AAC/B,SAAuB,eAAe;AACtC,SAAS,gBAAgB;AAEzB,SAAS,mBAAmB,0BAA0B;;;ACJtD,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ACJpE,SAAS,oBAAoB;AAItB,IAAM,iBAAiB,MAAM,aAAa,oBAAoB,eAAe,KAAK;;;AFuBpE;AAnBd,IAAM,qBAA6C,CAAC,UAAU;AACnE,QAAM,EAAE,UAAU,aAAa,eAAe,IAAI,eAAe;AACjE,QAAM,CAAC,OAAO,QAAQ,IAAI,SAAS,KAAK;AACxC,QAAM,QAAQ,SAAS;AAEvB,QAAM,uBAAuB,MAAM;AACjC,kBAAc,CAAC,QAAQ;AACvB,qBAAiB,CAAC,aAAc,WAAW,QAAQ,QAAS;AAAA,EAC9D;AAEA,SACE,oBAAC,WAAQ,IAAI,GAAG,IAAI,GAAG,gBAAgB,WAAW,UAAU,UAAW,GAAG,OACxE;AAAA,IAAC;AAAA;AAAA,MACC,SAAS;AAAA,MACT,cAAc,MAAM,SAAS,IAAI;AAAA,MACjC,cAAc,MAAM,SAAS,KAAK;AAAA,MAClC,UAAU;AAAA,MACV,IAAI,EAAE,OAAO,QAAQ,MAAM,QAAQ,UAAU,OAAO,WAAW,QAAQ,UAAU;AAAA,MAEhF,WAAC,WAAW,oBAAC,qBAAkB,IAAK,oBAAC,sBAAmB;AAAA;AAAA,EAC3D,GACF;AAEJ;;;AG/BA,SAAS,UAAyB,QAAQ,YAAAA,iBAAgB;AAYtD,gBAAAC,YAAA;AAPG,IAAM,oBAA2D,CAAC,EAAE,UAAU,IAAI,GAAG,MAAM,MAAM;AACtG,QAAM,EAAE,UAAU,eAAe,IAAI,eAAe;AACpD,QAAM,QAAQC,UAAS;AAEvB,QAAM,gBAAgB,MAAM,iBAAiB,MAAM,QAAQ,CAAC;AAE5D,SACE,gBAAAD;AAAA,IAAC;AAAA;AAAA,MACC,IAAI,CAAC;AAAA,MACL,aAAY;AAAA,MACZ;AAAA,MACA,UAAU,MAAM,iBAAiB,IAAI;AAAA,MACrC,IAAI;AAAA,QACF,YAAY;AAAA,QACZ,SAAS;AAAA,QACT,QAAQ;AAAA,QACR,GAAG;AAAA,MACL;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ;AAEA,IAAM,uBAAuB,OAAO,QAAQ,EAAE,OAAO;AAAA,EACnD,+BAA+B;AAAA,IAC7B,SAAS;AAAA,IACT,eAAe;AAAA,EACjB;AACF,EAAE;","names":["useTheme","jsx","useTheme"]}
|
@@ -0,0 +1,92 @@
|
|
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/CollapsibleDrawer/storyExampleMenuData.tsx
|
21
|
+
var storyExampleMenuData_exports = {};
|
22
|
+
__export(storyExampleMenuData_exports, {
|
23
|
+
menuDataBottom: () => menuDataBottom,
|
24
|
+
menuDataTop: () => menuDataTop
|
25
|
+
});
|
26
|
+
module.exports = __toCommonJS(storyExampleMenuData_exports);
|
27
|
+
var import_vsc = require("react-icons/vsc/index.js");
|
28
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
29
|
+
var menuDataTop = [
|
30
|
+
{
|
31
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscGlobe, { fontSize: "body1" }),
|
32
|
+
primary: "Explore",
|
33
|
+
to: "",
|
34
|
+
tooltip: "View global archivist data on a world map."
|
35
|
+
},
|
36
|
+
{
|
37
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscSymbolMethod, { fontSize: "body1" }),
|
38
|
+
primary: "Blocks",
|
39
|
+
to: "",
|
40
|
+
tooltip: "The most recent blocks seen in the in temp archive on your current network."
|
41
|
+
},
|
42
|
+
{
|
43
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscSymbolNamespace, { fontSize: "body1" }),
|
44
|
+
primary: "Payloads",
|
45
|
+
to: "",
|
46
|
+
tooltip: "The most recent blocks seen in the in temp archive on your current network."
|
47
|
+
},
|
48
|
+
{
|
49
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscGraph, { fontSize: "body1" }),
|
50
|
+
primary: "Queries",
|
51
|
+
to: "",
|
52
|
+
tooltip: "The most recent blocks seen in the in temp archive on your current network."
|
53
|
+
},
|
54
|
+
{
|
55
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscServer, { fontSize: "body1" }),
|
56
|
+
primary: "Archives",
|
57
|
+
subNavListItems: [
|
58
|
+
{ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscDashboard, { fontSize: "body2" }), primary: "Dashboard", to: "", tooltip: "View data for all archives on this network." },
|
59
|
+
{ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscAdd, { fontSize: "body2" }), primary: "Create Archive", to: "", tooltip: "Create a new archive on this network." },
|
60
|
+
{ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscTable, { fontSize: "body2" }), primary: "Archive Table", to: "", tooltip: "View all archives on this network as a table." }
|
61
|
+
],
|
62
|
+
to: "",
|
63
|
+
tooltip: "The most recent blocks seen in the in temp archive on your current network."
|
64
|
+
}
|
65
|
+
];
|
66
|
+
var menuDataBottom = [
|
67
|
+
{
|
68
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscGraphLine, { fontSize: "body1" }),
|
69
|
+
primary: "Statistics",
|
70
|
+
to: "",
|
71
|
+
tooltip: "The most recent blocks seen in the in temp archive on your current network."
|
72
|
+
},
|
73
|
+
{
|
74
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscJson, { fontSize: "body1" }),
|
75
|
+
primary: "Schema",
|
76
|
+
to: "",
|
77
|
+
tooltip: "The most recent blocks seen in the in temp archive on your current network."
|
78
|
+
},
|
79
|
+
{
|
80
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscAccount, { fontSize: "body1" }),
|
81
|
+
primary: "Account",
|
82
|
+
to: "",
|
83
|
+
tooltip: "The most recent blocks seen in the in temp archive on your current network."
|
84
|
+
},
|
85
|
+
{
|
86
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscSettingsGear, { fontSize: "body1" }),
|
87
|
+
primary: "Settings",
|
88
|
+
to: "",
|
89
|
+
tooltip: "The most recent blocks seen in the in temp archive on your current network."
|
90
|
+
}
|
91
|
+
];
|
92
|
+
//# sourceMappingURL=storyExampleMenuData.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/CollapsibleDrawer/storyExampleMenuData.tsx"],"sourcesContent":["import {\n VscAccount,\n VscAdd,\n VscDashboard,\n VscGlobe,\n VscGraph,\n VscGraphLine,\n VscJson,\n VscServer,\n VscSettingsGear,\n VscSymbolMethod,\n VscSymbolNamespace,\n VscTable,\n // eslint-disable-next-line import/no-internal-modules\n} from 'react-icons/vsc/index.js'\n\nimport { MenuListItemProps } from '../SiteMenu'\n\nexport const menuDataTop: MenuListItemProps[] = [\n {\n icon: <VscGlobe fontSize=\"body1\" />,\n primary: 'Explore',\n to: '',\n tooltip: 'View global archivist data on a world map.',\n },\n {\n icon: <VscSymbolMethod fontSize=\"body1\" />,\n primary: 'Blocks',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscSymbolNamespace fontSize=\"body1\" />,\n primary: 'Payloads',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscGraph fontSize=\"body1\" />,\n primary: 'Queries',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscServer fontSize=\"body1\" />,\n primary: 'Archives',\n subNavListItems: [\n { icon: <VscDashboard fontSize=\"body2\" />, primary: 'Dashboard', to: '', tooltip: 'View data for all archives on this network.' },\n { icon: <VscAdd fontSize=\"body2\" />, primary: 'Create Archive', to: '', tooltip: 'Create a new archive on this network.' },\n { icon: <VscTable fontSize=\"body2\" />, primary: 'Archive Table', to: '', tooltip: 'View all archives on this network as a table.' },\n ],\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n]\n\nexport const menuDataBottom: MenuListItemProps[] = [\n {\n icon: <VscGraphLine fontSize=\"body1\" />,\n primary: 'Statistics',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscJson fontSize=\"body1\" />,\n primary: 'Schema',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscAccount fontSize=\"body1\" />,\n primary: 'Account',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscSettingsGear fontSize=\"body1\" />,\n primary: 'Settings',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAcO;AAMG;AAFH,IAAM,cAAmC;AAAA,EAC9C;AAAA,IACE,MAAM,4CAAC,uBAAS,UAAS,SAAQ;AAAA,IACjC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,4CAAC,8BAAgB,UAAS,SAAQ;AAAA,IACxC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,4CAAC,iCAAmB,UAAS,SAAQ;AAAA,IAC3C,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,4CAAC,uBAAS,UAAS,SAAQ;AAAA,IACjC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,4CAAC,wBAAU,UAAS,SAAQ;AAAA,IAClC,SAAS;AAAA,IACT,iBAAiB;AAAA,MACf,EAAE,MAAM,4CAAC,2BAAa,UAAS,SAAQ,GAAI,SAAS,aAAa,IAAI,IAAI,SAAS,8CAA8C;AAAA,MAChI,EAAE,MAAM,4CAAC,qBAAO,UAAS,SAAQ,GAAI,SAAS,kBAAkB,IAAI,IAAI,SAAS,wCAAwC;AAAA,MACzH,EAAE,MAAM,4CAAC,uBAAS,UAAS,SAAQ,GAAI,SAAS,iBAAiB,IAAI,IAAI,SAAS,gDAAgD;AAAA,IACpI;AAAA,IACA,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AACF;AAEO,IAAM,iBAAsC;AAAA,EACjD;AAAA,IACE,MAAM,4CAAC,2BAAa,UAAS,SAAQ;AAAA,IACrC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,4CAAC,sBAAQ,UAAS,SAAQ;AAAA,IAChC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,4CAAC,yBAAW,UAAS,SAAQ;AAAA,IACnC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,4CAAC,8BAAgB,UAAS,SAAQ;AAAA,IACxC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AACF;","names":[]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"storyExampleMenuData.d.ts","sourceRoot":"","sources":["../../../../src/components/CollapsibleDrawer/storyExampleMenuData.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C,eAAO,MAAM,WAAW,EAAE,iBAAiB,EAoC1C,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,iBAAiB,EAyB7C,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"storyExampleMenuData.d.ts","sourceRoot":"","sources":["../../../../src/components/CollapsibleDrawer/storyExampleMenuData.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"storyExampleMenuData.d.ts","sourceRoot":"","sources":["../../../../src/components/CollapsibleDrawer/storyExampleMenuData.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C,eAAO,MAAM,WAAW,EAAE,iBAAiB,EAoC1C,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,iBAAiB,EAyB7C,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"storyExampleMenuData.d.ts","sourceRoot":"","sources":["../../../../src/components/CollapsibleDrawer/storyExampleMenuData.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"storyExampleMenuData.d.ts","sourceRoot":"","sources":["../../../../src/components/CollapsibleDrawer/storyExampleMenuData.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE/C,eAAO,MAAM,WAAW,EAAE,iBAAiB,EAoC1C,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,iBAAiB,EAyB7C,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
// src/components/CollapsibleDrawer/storyExampleMenuData.tsx
|
2
2
|
import {
|
3
3
|
VscAccount,
|
4
4
|
VscAdd,
|
@@ -13,7 +13,8 @@ import {
|
|
13
13
|
VscSymbolNamespace,
|
14
14
|
VscTable
|
15
15
|
} from "react-icons/vsc/index.js";
|
16
|
-
|
16
|
+
import { jsx } from "react/jsx-runtime";
|
17
|
+
var menuDataTop = [
|
17
18
|
{
|
18
19
|
icon: /* @__PURE__ */ jsx(VscGlobe, { fontSize: "body1" }),
|
19
20
|
primary: "Explore",
|
@@ -50,7 +51,7 @@ const menuDataTop = [
|
|
50
51
|
tooltip: "The most recent blocks seen in the in temp archive on your current network."
|
51
52
|
}
|
52
53
|
];
|
53
|
-
|
54
|
+
var menuDataBottom = [
|
54
55
|
{
|
55
56
|
icon: /* @__PURE__ */ jsx(VscGraphLine, { fontSize: "body1" }),
|
56
57
|
primary: "Statistics",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/CollapsibleDrawer/storyExampleMenuData.tsx"],"sourcesContent":["import {\n VscAccount,\n VscAdd,\n VscDashboard,\n VscGlobe,\n VscGraph,\n VscGraphLine,\n VscJson,\n VscServer,\n VscSettingsGear,\n VscSymbolMethod,\n VscSymbolNamespace,\n VscTable,\n} from 'react-icons/vsc/index.js'\n\nimport { MenuListItemProps } from '../SiteMenu'\n\nexport const menuDataTop: MenuListItemProps[] = [\n {\n icon: <VscGlobe fontSize=\"body1\" />,\n primary: 'Explore',\n to: '',\n tooltip: 'View global archivist data on a world map.',\n },\n {\n icon: <VscSymbolMethod fontSize=\"body1\" />,\n primary: 'Blocks',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscSymbolNamespace fontSize=\"body1\" />,\n primary: 'Payloads',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscGraph fontSize=\"body1\" />,\n primary: 'Queries',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscServer fontSize=\"body1\" />,\n primary: 'Archives',\n subNavListItems: [\n { icon: <VscDashboard fontSize=\"body2\" />, primary: 'Dashboard', to: '', tooltip: 'View data for all archives on this network.' },\n { icon: <VscAdd fontSize=\"body2\" />, primary: 'Create Archive', to: '', tooltip: 'Create a new archive on this network.' },\n { icon: <VscTable fontSize=\"body2\" />, primary: 'Archive Table', to: '', tooltip: 'View all archives on this network as a table.' },\n ],\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n]\n\nexport const menuDataBottom: MenuListItemProps[] = [\n {\n icon: <VscGraphLine fontSize=\"body1\" />,\n primary: 'Statistics',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscJson fontSize=\"body1\" />,\n primary: 'Schema',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscAccount fontSize=\"body1\" />,\n primary: 'Account',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscSettingsGear fontSize=\"body1\" />,\n primary: 'Settings',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n]\n"],"mappings":"
|
1
|
+
{"version":3,"sources":["../../../../src/components/CollapsibleDrawer/storyExampleMenuData.tsx"],"sourcesContent":["import {\n VscAccount,\n VscAdd,\n VscDashboard,\n VscGlobe,\n VscGraph,\n VscGraphLine,\n VscJson,\n VscServer,\n VscSettingsGear,\n VscSymbolMethod,\n VscSymbolNamespace,\n VscTable,\n // eslint-disable-next-line import/no-internal-modules\n} from 'react-icons/vsc/index.js'\n\nimport { MenuListItemProps } from '../SiteMenu'\n\nexport const menuDataTop: MenuListItemProps[] = [\n {\n icon: <VscGlobe fontSize=\"body1\" />,\n primary: 'Explore',\n to: '',\n tooltip: 'View global archivist data on a world map.',\n },\n {\n icon: <VscSymbolMethod fontSize=\"body1\" />,\n primary: 'Blocks',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscSymbolNamespace fontSize=\"body1\" />,\n primary: 'Payloads',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscGraph fontSize=\"body1\" />,\n primary: 'Queries',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscServer fontSize=\"body1\" />,\n primary: 'Archives',\n subNavListItems: [\n { icon: <VscDashboard fontSize=\"body2\" />, primary: 'Dashboard', to: '', tooltip: 'View data for all archives on this network.' },\n { icon: <VscAdd fontSize=\"body2\" />, primary: 'Create Archive', to: '', tooltip: 'Create a new archive on this network.' },\n { icon: <VscTable fontSize=\"body2\" />, primary: 'Archive Table', to: '', tooltip: 'View all archives on this network as a table.' },\n ],\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n]\n\nexport const menuDataBottom: MenuListItemProps[] = [\n {\n icon: <VscGraphLine fontSize=\"body1\" />,\n primary: 'Statistics',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscJson fontSize=\"body1\" />,\n primary: 'Schema',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscAccount fontSize=\"body1\" />,\n primary: 'Account',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n {\n icon: <VscSettingsGear fontSize=\"body1\" />,\n primary: 'Settings',\n to: '',\n tooltip: 'The most recent blocks seen in the in temp archive on your current network.',\n },\n]\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAMG;AAFH,IAAM,cAAmC;AAAA,EAC9C;AAAA,IACE,MAAM,oBAAC,YAAS,UAAS,SAAQ;AAAA,IACjC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,oBAAC,mBAAgB,UAAS,SAAQ;AAAA,IACxC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,oBAAC,sBAAmB,UAAS,SAAQ;AAAA,IAC3C,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,oBAAC,YAAS,UAAS,SAAQ;AAAA,IACjC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,oBAAC,aAAU,UAAS,SAAQ;AAAA,IAClC,SAAS;AAAA,IACT,iBAAiB;AAAA,MACf,EAAE,MAAM,oBAAC,gBAAa,UAAS,SAAQ,GAAI,SAAS,aAAa,IAAI,IAAI,SAAS,8CAA8C;AAAA,MAChI,EAAE,MAAM,oBAAC,UAAO,UAAS,SAAQ,GAAI,SAAS,kBAAkB,IAAI,IAAI,SAAS,wCAAwC;AAAA,MACzH,EAAE,MAAM,oBAAC,YAAS,UAAS,SAAQ,GAAI,SAAS,iBAAiB,IAAI,IAAI,SAAS,gDAAgD;AAAA,IACpI;AAAA,IACA,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AACF;AAEO,IAAM,iBAAsC;AAAA,EACjD;AAAA,IACE,MAAM,oBAAC,gBAAa,UAAS,SAAQ;AAAA,IACrC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,oBAAC,WAAQ,UAAS,SAAQ;AAAA,IAChC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,oBAAC,cAAW,UAAS,SAAQ;AAAA,IACnC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AAAA,EACA;AAAA,IACE,MAAM,oBAAC,mBAAgB,UAAS,SAAQ;AAAA,IACxC,SAAS;AAAA,IACT,IAAI;AAAA,IACJ,SAAS;AAAA,EACX;AACF;","names":[]}
|
@@ -0,0 +1,143 @@
|
|
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/MobileSystemControls/SystemControls.tsx
|
21
|
+
var SystemControls_exports = {};
|
22
|
+
__export(SystemControls_exports, {
|
23
|
+
SystemControls: () => SystemControls
|
24
|
+
});
|
25
|
+
module.exports = __toCommonJS(SystemControls_exports);
|
26
|
+
var import_react_flexbox3 = require("@xylabs/react-flexbox");
|
27
|
+
|
28
|
+
// src/components/MobileSystemControls/SystemControlsRoot.tsx
|
29
|
+
var import_material3 = require("@mui/material");
|
30
|
+
|
31
|
+
// src/components/MobileSystemControls/SystemControlsUnstyled.tsx
|
32
|
+
var import_material2 = require("@mui/material");
|
33
|
+
var import_react_flexbox2 = require("@xylabs/react-flexbox");
|
34
|
+
var import_react_network = require("@xyo-network/react-network");
|
35
|
+
|
36
|
+
// src/components/MobileSystemControls/controls/SystemControl.tsx
|
37
|
+
var import_material = require("@mui/material");
|
38
|
+
var import_react_flexbox = require("@xylabs/react-flexbox");
|
39
|
+
var import_react = require("react");
|
40
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
41
|
+
var SystemControl = ({
|
42
|
+
children,
|
43
|
+
controlElement,
|
44
|
+
systemControlsType = "WindowShade" /* WindowShade */,
|
45
|
+
...props
|
46
|
+
}) => {
|
47
|
+
const [toggleControls, setToggleControls] = (0, import_react.useState)(false);
|
48
|
+
let orientation = "vertical";
|
49
|
+
switch (systemControlsType) {
|
50
|
+
case "Left" /* Left */: {
|
51
|
+
orientation = "horizontal";
|
52
|
+
break;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_flexbox.FlexRow, { className: "controls", ...props, children: [
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Collapse, { in: toggleControls, orientation, timeout: 500, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexRow, { bgcolor: "primary.main", className: "control", children: controlElement }) }),
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexCol, { style: { cursor: "pointer" }, onClick: () => setToggleControls(!toggleControls), children })
|
58
|
+
] });
|
59
|
+
};
|
60
|
+
|
61
|
+
// src/components/MobileSystemControls/SystemControlsUnstyled.tsx
|
62
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
63
|
+
var SystemControlsUnstyled = ({
|
64
|
+
visible,
|
65
|
+
systemControlsType = "WindowShade" /* WindowShade */,
|
66
|
+
...props
|
67
|
+
}) => {
|
68
|
+
const isSmall = (0, import_material2.useMediaQuery)((theme) => theme.breakpoints.down("sm"));
|
69
|
+
if (visible || isSmall) {
|
70
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox2.FlexCol, { ...props, className: `${props.className} system-controls-type-${systemControlsType}`, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
71
|
+
SystemControl,
|
72
|
+
{
|
73
|
+
systemControlsType,
|
74
|
+
controlElement: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox2.FlexRow, { className: "control-wrap", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Paper, { variant: "elevation", elevation: 0, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_network.NetworkSelectEx, { responsive: false, className: "network-ex" }) }) }) })
|
75
|
+
}
|
76
|
+
) });
|
77
|
+
} else {
|
78
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox2.FlexCol, {});
|
79
|
+
}
|
80
|
+
};
|
81
|
+
|
82
|
+
// src/components/MobileSystemControls/SystemControlsRoot.tsx
|
83
|
+
var SystemControlsRoot = (0, import_material3.styled)(SystemControlsUnstyled, { name: "SystemControls", slot: "Root" })(({ theme }) => ({
|
84
|
+
// shared defaults
|
85
|
+
["&"]: {
|
86
|
+
".toggle": {
|
87
|
+
backgroundColor: theme.palette.primary.main
|
88
|
+
},
|
89
|
+
alignItems: "start",
|
90
|
+
zIndex: 1
|
91
|
+
},
|
92
|
+
// WindowShade System Controls styles
|
93
|
+
[`&.system-controls-type-${"WindowShade" /* WindowShade */}`]: {
|
94
|
+
".control": {
|
95
|
+
borderRadius: "0 0 5px 5px",
|
96
|
+
flexDirection: "row",
|
97
|
+
flexGrow: 1,
|
98
|
+
justifyContent: "space-around",
|
99
|
+
padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`
|
100
|
+
},
|
101
|
+
".controls": {
|
102
|
+
alignItems: "stretch",
|
103
|
+
flexDirection: "column",
|
104
|
+
flexGrow: 1
|
105
|
+
},
|
106
|
+
".toggle": {
|
107
|
+
borderRadius: "0 0 5px 5px",
|
108
|
+
padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`
|
109
|
+
},
|
110
|
+
flexDirection: "row",
|
111
|
+
position: "absolute",
|
112
|
+
top: 0,
|
113
|
+
width: "100%"
|
114
|
+
},
|
115
|
+
// Left System Control styles
|
116
|
+
[`&.system-controls-type-${"Left" /* Left */}`]: {
|
117
|
+
".control": {
|
118
|
+
alignItems: "start",
|
119
|
+
flexDirection: "column",
|
120
|
+
padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`
|
121
|
+
},
|
122
|
+
".control-wrap": {
|
123
|
+
marginBottom: `${theme.spacing(2)}`
|
124
|
+
},
|
125
|
+
".toggle": {
|
126
|
+
borderRadius: "0 5px 5px 0",
|
127
|
+
padding: `${theme.spacing(1)} ${theme.spacing(0.5)}`,
|
128
|
+
writingMode: "vertical-rl"
|
129
|
+
},
|
130
|
+
flexDirection: "column",
|
131
|
+
left: 0,
|
132
|
+
position: "fixed",
|
133
|
+
top: "30vh",
|
134
|
+
width: "auto"
|
135
|
+
}
|
136
|
+
}));
|
137
|
+
|
138
|
+
// src/components/MobileSystemControls/SystemControls.tsx
|
139
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
140
|
+
var SystemControls = (props) => {
|
141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_flexbox3.FlexCol, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(SystemControlsRoot, { ...props }) });
|
142
|
+
};
|
143
|
+
//# sourceMappingURL=SystemControls.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/MobileSystemControls/SystemControls.tsx","../../../../src/components/MobileSystemControls/SystemControlsRoot.tsx","../../../../src/components/MobileSystemControls/SystemControlsUnstyled.tsx","../../../../src/components/MobileSystemControls/controls/SystemControl.tsx"],"sourcesContent":["import { FlexCol } from '@xylabs/react-flexbox'\n\nimport { SystemControlsRoot } from './SystemControlsRoot'\nimport { SystemControlsUnstyledProps } from './SystemControlsUnstyled'\n\nconst SystemControls: React.FC<SystemControlsUnstyledProps> = (props) => {\n return (\n <FlexCol>\n <SystemControlsRoot {...props} />\n </FlexCol>\n )\n}\n\nexport { SystemControls }\n","import { styled } from '@mui/material'\n\nimport { SystemControlsType } from './SystemControlsType'\nimport { SystemControlsUnstyled, SystemControlsUnstyledProps } from './SystemControlsUnstyled'\n\nconst SystemControlsRoot = styled(SystemControlsUnstyled, { name: 'SystemControls', slot: 'Root' })<SystemControlsUnstyledProps>(({ theme }) => ({\n // shared defaults\n ['&']: {\n '.toggle': {\n backgroundColor: theme.palette.primary.main,\n },\n alignItems: 'start',\n zIndex: 1,\n },\n // WindowShade System Controls styles\n [`&.system-controls-type-${SystemControlsType.WindowShade}`]: {\n '.control': {\n borderRadius: '0 0 5px 5px',\n flexDirection: 'row',\n flexGrow: 1,\n justifyContent: 'space-around',\n padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`,\n },\n '.controls': {\n alignItems: 'stretch',\n flexDirection: 'column',\n flexGrow: 1,\n },\n '.toggle': {\n borderRadius: '0 0 5px 5px',\n padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`,\n },\n flexDirection: 'row',\n position: 'absolute',\n top: 0,\n width: '100%',\n },\n // Left System Control styles\n [`&.system-controls-type-${SystemControlsType.Left}`]: {\n '.control': {\n alignItems: 'start',\n flexDirection: 'column',\n padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`,\n },\n '.control-wrap': {\n marginBottom: `${theme.spacing(2)}`,\n },\n '.toggle': {\n borderRadius: '0 5px 5px 0',\n padding: `${theme.spacing(1)} ${theme.spacing(0.5)}`,\n writingMode: 'vertical-rl',\n },\n flexDirection: 'column',\n left: 0,\n position: 'fixed',\n top: '30vh',\n width: 'auto',\n },\n}))\n\nexport { SystemControlsRoot }\n","import { Paper, Theme, useMediaQuery } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { NetworkSelectEx } from '@xyo-network/react-network'\n\nimport { SystemControl } from './controls'\nimport { SystemControlsType } from './SystemControlsType'\n\ninterface SystemControlsUnstyledProps extends FlexBoxProps {\n systemControlsType?: SystemControlsType\n visible?: boolean\n}\n\nconst SystemControlsUnstyled: React.FC<SystemControlsUnstyledProps> = ({\n visible,\n systemControlsType = SystemControlsType.WindowShade,\n ...props\n}) => {\n const isSmall = useMediaQuery<Theme>((theme) => theme.breakpoints.down('sm'))\n\n if (visible || isSmall) {\n return (\n <FlexCol {...props} className={`${props.className} system-controls-type-${systemControlsType}`}>\n <SystemControl\n systemControlsType={systemControlsType}\n controlElement={\n <>\n <FlexRow className={'control-wrap'}>\n <Paper variant=\"elevation\" elevation={0}>\n <NetworkSelectEx responsive={false} className=\"network-ex\" />\n </Paper>\n </FlexRow>\n </>\n }\n />\n </FlexCol>\n )\n } else {\n return <FlexCol />\n }\n}\n\nexport type { SystemControlsUnstyledProps }\nexport { SystemControlsUnstyled }\n","import { Collapse, CollapseProps } from '@mui/material'\nimport { FlexBoxProps, FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { useState } from 'react'\n\nimport { SystemControlsType } from '../SystemControlsType'\n\ninterface SystemControlProps extends FlexBoxProps {\n controlElement: React.ReactNode\n systemControlsType?: SystemControlsType\n}\n\nconst SystemControl: React.FC<WithChildren<SystemControlProps>> = ({\n children,\n controlElement,\n systemControlsType = SystemControlsType.WindowShade,\n ...props\n}) => {\n const [toggleControls, setToggleControls] = useState(false)\n\n let orientation: CollapseProps['orientation'] = 'vertical'\n\n switch (systemControlsType) {\n case SystemControlsType.Left: {\n orientation = 'horizontal'\n break\n }\n }\n\n return (\n <FlexRow className=\"controls\" {...props}>\n <Collapse in={toggleControls} orientation={orientation} timeout={500}>\n <FlexRow bgcolor=\"primary.main\" className=\"control\">\n {controlElement}\n </FlexRow>\n </Collapse>\n <FlexCol style={{ cursor: 'pointer' }} onClick={() => setToggleControls(!toggleControls)}>\n {children}\n </FlexCol>\n </FlexRow>\n )\n}\n\nexport { SystemControl }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,wBAAwB;;;ACAxB,IAAAC,mBAAuB;;;ACAvB,IAAAC,mBAA4C;AAC5C,IAAAC,wBAA+C;AAC/C,2BAAgC;;;ACFhC,sBAAwC;AACxC,2BAA+C;AAE/C,mBAAyB;AA2BrB;AAlBJ,IAAM,gBAA4D,CAAC;AAAA,EACjE;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,CAAC,gBAAgB,iBAAiB,QAAI,uBAAS,KAAK;AAE1D,MAAI,cAA4C;AAEhD,UAAQ,oBAAoB;AAAA,IAC1B,wBAA8B;AAC5B,oBAAc;AACd;AAAA,IACF;AAAA,EACF;AAEA,SACE,6CAAC,gCAAQ,WAAU,YAAY,GAAG,OAChC;AAAA,gDAAC,4BAAS,IAAI,gBAAgB,aAA0B,SAAS,KAC/D,sDAAC,gCAAQ,SAAQ,gBAAe,WAAU,WACvC,0BACH,GACF;AAAA,IACA,4CAAC,gCAAQ,OAAO,EAAE,QAAQ,UAAU,GAAG,SAAS,MAAM,kBAAkB,CAAC,cAAc,GACpF,UACH;AAAA,KACF;AAEJ;;;ADhBY,IAAAC,sBAAA;AAbZ,IAAM,yBAAgE,CAAC;AAAA,EACrE;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,cAAU,gCAAqB,CAAC,UAAU,MAAM,YAAY,KAAK,IAAI,CAAC;AAE5E,MAAI,WAAW,SAAS;AACtB,WACE,6CAAC,iCAAS,GAAG,OAAO,WAAW,GAAG,MAAM,SAAS,yBAAyB,kBAAkB,IAC1F;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,gBACE,6EACE,uDAAC,iCAAQ,WAAW,gBAClB,uDAAC,0BAAM,SAAQ,aAAY,WAAW,GACpC,uDAAC,wCAAgB,YAAY,OAAO,WAAU,cAAa,GAC7D,GACF,GACF;AAAA;AAAA,IAEJ,GACF;AAAA,EAEJ,OAAO;AACL,WAAO,6CAAC,iCAAQ;AAAA,EAClB;AACF;;;ADlCA,IAAM,yBAAqB,yBAAO,wBAAwB,EAAE,MAAM,kBAAkB,MAAM,OAAO,CAAC,EAA+B,CAAC,EAAE,MAAM,OAAO;AAAA;AAAA,EAE/I,CAAC,GAAG,GAAG;AAAA,IACL,WAAW;AAAA,MACT,iBAAiB,MAAM,QAAQ,QAAQ;AAAA,IACzC;AAAA,IACA,YAAY;AAAA,IACZ,QAAQ;AAAA,EACV;AAAA;AAAA,EAEA,CAAC,yDAAwD,EAAE,GAAG;AAAA,IAC5D,YAAY;AAAA,MACV,cAAc;AAAA,MACd,eAAe;AAAA,MACf,UAAU;AAAA,MACV,gBAAgB;AAAA,MAChB,SAAS,GAAG,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,QAAQ,GAAG,CAAC;AAAA,IACpD;AAAA,IACA,aAAa;AAAA,MACX,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,UAAU;AAAA,IACZ;AAAA,IACA,WAAW;AAAA,MACT,cAAc;AAAA,MACd,SAAS,GAAG,MAAM,QAAQ,GAAG,CAAC,IAAI,MAAM,QAAQ,CAAC,CAAC;AAAA,IACpD;AAAA,IACA,eAAe;AAAA,IACf,UAAU;AAAA,IACV,KAAK;AAAA,IACL,OAAO;AAAA,EACT;AAAA;AAAA,EAEA,CAAC,2CAAiD,EAAE,GAAG;AAAA,IACrD,YAAY;AAAA,MACV,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,SAAS,GAAG,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,QAAQ,GAAG,CAAC;AAAA,IACpD;AAAA,IACA,iBAAiB;AAAA,MACf,cAAc,GAAG,MAAM,QAAQ,CAAC,CAAC;AAAA,IACnC;AAAA,IACA,WAAW;AAAA,MACT,cAAc;AAAA,MACd,SAAS,GAAG,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,QAAQ,GAAG,CAAC;AAAA,MAClD,aAAa;AAAA,IACf;AAAA,IACA,eAAe;AAAA,IACf,MAAM;AAAA,IACN,UAAU;AAAA,IACV,KAAK;AAAA,IACL,OAAO;AAAA,EACT;AACF,EAAE;;;ADlDI,IAAAC,sBAAA;AAHN,IAAM,iBAAwD,CAAC,UAAU;AACvE,SACE,6CAAC,iCACC,uDAAC,sBAAoB,GAAG,OAAO,GACjC;AAEJ;","names":["import_react_flexbox","import_material","import_material","import_react_flexbox","import_jsx_runtime","import_jsx_runtime"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SystemControls.d.ts","sourceRoot":"","sources":["../../../../src/components/MobileSystemControls/SystemControls.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAA;AAEtE,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CAMzD,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
|