@xyo-network/react-appbar 2.64.8 → 2.64.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/docs.json +25953 -12945
- package/package.json +13 -13
- package/dist/browser/components/AppBar/Application.cjs +0 -286
- package/dist/browser/components/AppBar/Application.cjs.map +0 -1
- package/dist/browser/components/AppBar/Application.js +0 -265
- package/dist/browser/components/AppBar/Application.js.map +0 -1
- package/dist/browser/components/AppBar/index.cjs +0 -288
- package/dist/browser/components/AppBar/index.cjs.map +0 -1
- package/dist/browser/components/AppBar/index.js +0 -265
- package/dist/browser/components/AppBar/index.js.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.cjs +0 -61
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.cjs.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.js +0 -40
- package/dist/browser/components/CollapsibleDrawer/CollapseToggle.js.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.cjs +0 -66
- package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.cjs.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.js +0 -45
- package/dist/browser/components/CollapsibleDrawer/CollapsibleDrawer.js.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/index.cjs +0 -96
- package/dist/browser/components/CollapsibleDrawer/index.cjs.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/index.js +0 -73
- package/dist/browser/components/CollapsibleDrawer/index.js.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.cjs +0 -92
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.cjs.map +0 -1
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.js +0 -84
- package/dist/browser/components/CollapsibleDrawer/storyExampleMenuData.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControls.cjs +0 -143
- package/dist/browser/components/MobileSystemControls/SystemControls.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControls.js +0 -122
- package/dist/browser/components/MobileSystemControls/SystemControls.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsRoot.cjs +0 -134
- package/dist/browser/components/MobileSystemControls/SystemControlsRoot.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsRoot.js +0 -113
- package/dist/browser/components/MobileSystemControls/SystemControlsRoot.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsType.cjs +0 -32
- package/dist/browser/components/MobileSystemControls/SystemControlsType.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsType.js +0 -11
- package/dist/browser/components/MobileSystemControls/SystemControlsType.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.cjs +0 -75
- package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.js +0 -54
- package/dist/browser/components/MobileSystemControls/SystemControlsUnstyled.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/controls/SystemControl.cjs +0 -49
- package/dist/browser/components/MobileSystemControls/controls/SystemControl.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/controls/SystemControl.js +0 -28
- package/dist/browser/components/MobileSystemControls/controls/SystemControl.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/controls/SystemControlText.cjs +0 -32
- package/dist/browser/components/MobileSystemControls/controls/SystemControlText.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/controls/SystemControlText.js +0 -11
- package/dist/browser/components/MobileSystemControls/controls/SystemControlText.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/controls/index.cjs +0 -60
- package/dist/browser/components/MobileSystemControls/controls/index.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/controls/index.js +0 -37
- package/dist/browser/components/MobileSystemControls/controls/index.js.map +0 -1
- package/dist/browser/components/MobileSystemControls/index.cjs +0 -155
- package/dist/browser/components/MobileSystemControls/index.cjs.map +0 -1
- package/dist/browser/components/MobileSystemControls/index.js +0 -132
- package/dist/browser/components/MobileSystemControls/index.js.map +0 -1
- package/dist/browser/components/SearchBar/SearchBar.cjs +0 -53
- package/dist/browser/components/SearchBar/SearchBar.cjs.map +0 -1
- package/dist/browser/components/SearchBar/SearchBar.js +0 -32
- package/dist/browser/components/SearchBar/SearchBar.js.map +0 -1
- package/dist/browser/components/SearchBar/index.cjs +0 -55
- package/dist/browser/components/SearchBar/index.cjs.map +0 -1
- package/dist/browser/components/SearchBar/index.js +0 -32
- package/dist/browser/components/SearchBar/index.js.map +0 -1
- package/dist/browser/components/SiteMenu/Menu.cjs +0 -193
- package/dist/browser/components/SiteMenu/Menu.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/Menu.js +0 -172
- package/dist/browser/components/SiteMenu/Menu.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs +0 -153
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.js +0 -132
- package/dist/browser/components/SiteMenu/MenuListItem/MenuListItemContainer.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/index.cjs +0 -155
- package/dist/browser/components/SiteMenu/MenuListItem/index.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/index.js +0 -132
- package/dist/browser/components/SiteMenu/MenuListItem/index.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs +0 -33
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js +0 -12
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs +0 -31
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js +0 -10
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs +0 -34
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js +0 -13
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.cjs +0 -54
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.js +0 -31
- package/dist/browser/components/SiteMenu/MenuListItem/list-item-components/index.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs +0 -31
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js +0 -10
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs +0 -43
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js +0 -22
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.cjs +0 -53
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.js +0 -30
- package/dist/browser/components/SiteMenu/MenuListItem/sub-nav/index.js.map +0 -1
- package/dist/browser/components/SiteMenu/MenuSection.cjs +0 -166
- package/dist/browser/components/SiteMenu/MenuSection.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/MenuSection.js +0 -145
- package/dist/browser/components/SiteMenu/MenuSection.js.map +0 -1
- package/dist/browser/components/SiteMenu/hooks/index.cjs +0 -58
- package/dist/browser/components/SiteMenu/hooks/index.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/hooks/index.js +0 -35
- package/dist/browser/components/SiteMenu/hooks/index.js.map +0 -1
- package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.cjs +0 -56
- package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.js +0 -35
- package/dist/browser/components/SiteMenu/hooks/useMenuItemsShared.js.map +0 -1
- package/dist/browser/components/SiteMenu/index.cjs +0 -233
- package/dist/browser/components/SiteMenu/index.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/index.js +0 -210
- package/dist/browser/components/SiteMenu/index.js.map +0 -1
- package/dist/browser/components/SiteMenu/lib/MenuListItemBase.cjs +0 -19
- package/dist/browser/components/SiteMenu/lib/MenuListItemBase.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/lib/MenuListItemBase.js +0 -1
- package/dist/browser/components/SiteMenu/lib/MenuListItemBase.js.map +0 -1
- package/dist/browser/components/SiteMenu/lib/NavListItemProps.cjs +0 -19
- package/dist/browser/components/SiteMenu/lib/NavListItemProps.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/lib/NavListItemProps.js +0 -1
- package/dist/browser/components/SiteMenu/lib/NavListItemProps.js.map +0 -1
- package/dist/browser/components/SiteMenu/lib/index.cjs +0 -19
- package/dist/browser/components/SiteMenu/lib/index.cjs.map +0 -1
- package/dist/browser/components/SiteMenu/lib/index.js +0 -1
- package/dist/browser/components/SiteMenu/lib/index.js.map +0 -1
- package/dist/browser/components/Toolbar/Context/ContextToolbar.cjs +0 -72
- package/dist/browser/components/Toolbar/Context/ContextToolbar.cjs.map +0 -1
- package/dist/browser/components/Toolbar/Context/ContextToolbar.js +0 -51
- package/dist/browser/components/Toolbar/Context/ContextToolbar.js.map +0 -1
- package/dist/browser/components/Toolbar/Context/Logo.cjs +0 -33
- package/dist/browser/components/Toolbar/Context/Logo.cjs.map +0 -1
- package/dist/browser/components/Toolbar/Context/Logo.js +0 -12
- package/dist/browser/components/Toolbar/Context/Logo.js.map +0 -1
- package/dist/browser/components/Toolbar/Context/LogoLinkEx.cjs +0 -63
- package/dist/browser/components/Toolbar/Context/LogoLinkEx.cjs.map +0 -1
- package/dist/browser/components/Toolbar/Context/LogoLinkEx.js +0 -42
- package/dist/browser/components/Toolbar/Context/LogoLinkEx.js.map +0 -1
- package/dist/browser/components/Toolbar/Context/index.cjs +0 -74
- package/dist/browser/components/Toolbar/Context/index.cjs.map +0 -1
- package/dist/browser/components/Toolbar/Context/index.js +0 -51
- package/dist/browser/components/Toolbar/Context/index.js.map +0 -1
- package/dist/browser/components/Toolbar/System/SystemToolbar.cjs +0 -220
- package/dist/browser/components/Toolbar/System/SystemToolbar.cjs.map +0 -1
- package/dist/browser/components/Toolbar/System/SystemToolbar.js +0 -199
- package/dist/browser/components/Toolbar/System/SystemToolbar.js.map +0 -1
- package/dist/browser/components/Toolbar/System/index.cjs +0 -222
- package/dist/browser/components/Toolbar/System/index.cjs.map +0 -1
- package/dist/browser/components/Toolbar/System/index.js +0 -199
- package/dist/browser/components/Toolbar/System/index.js.map +0 -1
- package/dist/browser/components/Toolbar/index.cjs +0 -271
- package/dist/browser/components/Toolbar/index.cjs.map +0 -1
- package/dist/browser/components/Toolbar/index.js +0 -248
- package/dist/browser/components/Toolbar/index.js.map +0 -1
- package/dist/browser/components/index.cjs +0 -550
- package/dist/browser/components/index.cjs.map +0 -1
- package/dist/browser/components/index.js +0 -527
- package/dist/browser/components/index.js.map +0 -1
- package/dist/browser/contexts/Collapsible/State.cjs +0 -19
- package/dist/browser/contexts/Collapsible/State.cjs.map +0 -1
- package/dist/browser/contexts/Collapsible/State.js +0 -1
- package/dist/browser/contexts/Collapsible/State.js.map +0 -1
- package/dist/browser/contexts/Collapsible/context.cjs +0 -28
- package/dist/browser/contexts/Collapsible/context.cjs.map +0 -1
- package/dist/browser/contexts/Collapsible/context.js +0 -7
- package/dist/browser/contexts/Collapsible/context.js.map +0 -1
- package/dist/browser/contexts/Collapsible/index.cjs +0 -52
- package/dist/browser/contexts/Collapsible/index.cjs.map +0 -1
- package/dist/browser/contexts/Collapsible/index.js +0 -29
- package/dist/browser/contexts/Collapsible/index.js.map +0 -1
- package/dist/browser/contexts/Collapsible/provider.cjs +0 -45
- package/dist/browser/contexts/Collapsible/provider.cjs.map +0 -1
- package/dist/browser/contexts/Collapsible/provider.js +0 -24
- package/dist/browser/contexts/Collapsible/provider.js.map +0 -1
- package/dist/browser/contexts/Collapsible/use.cjs +0 -34
- package/dist/browser/contexts/Collapsible/use.cjs.map +0 -1
- package/dist/browser/contexts/Collapsible/use.js +0 -13
- package/dist/browser/contexts/Collapsible/use.js.map +0 -1
- package/dist/browser/contexts/index.cjs +0 -52
- package/dist/browser/contexts/index.cjs.map +0 -1
- package/dist/browser/contexts/index.js +0 -29
- package/dist/browser/contexts/index.js.map +0 -1
- package/dist/node/components/AppBar/Application.cjs +0 -290
- package/dist/node/components/AppBar/Application.cjs.map +0 -1
- package/dist/node/components/AppBar/Application.js +0 -265
- package/dist/node/components/AppBar/Application.js.map +0 -1
- package/dist/node/components/AppBar/index.cjs +0 -292
- package/dist/node/components/AppBar/index.cjs.map +0 -1
- package/dist/node/components/AppBar/index.js +0 -265
- package/dist/node/components/AppBar/index.js.map +0 -1
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.cjs +0 -65
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.cjs.map +0 -1
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.js +0 -40
- package/dist/node/components/CollapsibleDrawer/CollapseToggle.js.map +0 -1
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.cjs +0 -70
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.cjs.map +0 -1
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.js +0 -45
- package/dist/node/components/CollapsibleDrawer/CollapsibleDrawer.js.map +0 -1
- package/dist/node/components/CollapsibleDrawer/index.cjs +0 -101
- package/dist/node/components/CollapsibleDrawer/index.cjs.map +0 -1
- package/dist/node/components/CollapsibleDrawer/index.js +0 -73
- package/dist/node/components/CollapsibleDrawer/index.js.map +0 -1
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.cjs +0 -97
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.cjs.map +0 -1
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.js +0 -84
- package/dist/node/components/CollapsibleDrawer/storyExampleMenuData.js.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControls.cjs +0 -147
- package/dist/node/components/MobileSystemControls/SystemControls.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControls.js +0 -122
- package/dist/node/components/MobileSystemControls/SystemControls.js.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.cjs +0 -138
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.js +0 -113
- package/dist/node/components/MobileSystemControls/SystemControlsRoot.js.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsType.cjs +0 -36
- package/dist/node/components/MobileSystemControls/SystemControlsType.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsType.js +0 -11
- package/dist/node/components/MobileSystemControls/SystemControlsType.js.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.cjs +0 -79
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.js +0 -54
- package/dist/node/components/MobileSystemControls/SystemControlsUnstyled.js.map +0 -1
- package/dist/node/components/MobileSystemControls/controls/SystemControl.cjs +0 -53
- package/dist/node/components/MobileSystemControls/controls/SystemControl.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/controls/SystemControl.js +0 -28
- package/dist/node/components/MobileSystemControls/controls/SystemControl.js.map +0 -1
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.cjs +0 -36
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.js +0 -11
- package/dist/node/components/MobileSystemControls/controls/SystemControlText.js.map +0 -1
- package/dist/node/components/MobileSystemControls/controls/index.cjs +0 -65
- package/dist/node/components/MobileSystemControls/controls/index.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/controls/index.js +0 -37
- package/dist/node/components/MobileSystemControls/controls/index.js.map +0 -1
- package/dist/node/components/MobileSystemControls/index.cjs +0 -161
- package/dist/node/components/MobileSystemControls/index.cjs.map +0 -1
- package/dist/node/components/MobileSystemControls/index.js +0 -132
- package/dist/node/components/MobileSystemControls/index.js.map +0 -1
- package/dist/node/components/SearchBar/SearchBar.cjs +0 -57
- package/dist/node/components/SearchBar/SearchBar.cjs.map +0 -1
- package/dist/node/components/SearchBar/SearchBar.js +0 -32
- package/dist/node/components/SearchBar/SearchBar.js.map +0 -1
- package/dist/node/components/SearchBar/index.cjs +0 -59
- package/dist/node/components/SearchBar/index.cjs.map +0 -1
- package/dist/node/components/SearchBar/index.js +0 -32
- package/dist/node/components/SearchBar/index.js.map +0 -1
- package/dist/node/components/SiteMenu/Menu.cjs +0 -197
- package/dist/node/components/SiteMenu/Menu.cjs.map +0 -1
- package/dist/node/components/SiteMenu/Menu.js +0 -172
- package/dist/node/components/SiteMenu/Menu.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs +0 -157
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.js +0 -132
- package/dist/node/components/SiteMenu/MenuListItem/MenuListItemContainer.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/index.cjs +0 -159
- package/dist/node/components/SiteMenu/MenuListItem/index.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/index.js +0 -132
- package/dist/node/components/SiteMenu/MenuListItem/index.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs +0 -37
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js +0 -12
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs +0 -35
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js +0 -10
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs +0 -38
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js +0 -13
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.cjs +0 -60
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.js +0 -31
- package/dist/node/components/SiteMenu/MenuListItem/list-item-components/index.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs +0 -35
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js +0 -10
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs +0 -47
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js +0 -22
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.cjs +0 -58
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.js +0 -30
- package/dist/node/components/SiteMenu/MenuListItem/sub-nav/index.js.map +0 -1
- package/dist/node/components/SiteMenu/MenuSection.cjs +0 -170
- package/dist/node/components/SiteMenu/MenuSection.cjs.map +0 -1
- package/dist/node/components/SiteMenu/MenuSection.js +0 -145
- package/dist/node/components/SiteMenu/MenuSection.js.map +0 -1
- package/dist/node/components/SiteMenu/hooks/index.cjs +0 -62
- package/dist/node/components/SiteMenu/hooks/index.cjs.map +0 -1
- package/dist/node/components/SiteMenu/hooks/index.js +0 -35
- package/dist/node/components/SiteMenu/hooks/index.js.map +0 -1
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.cjs +0 -60
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.cjs.map +0 -1
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.js +0 -35
- package/dist/node/components/SiteMenu/hooks/useMenuItemsShared.js.map +0 -1
- package/dist/node/components/SiteMenu/index.cjs +0 -240
- package/dist/node/components/SiteMenu/index.cjs.map +0 -1
- package/dist/node/components/SiteMenu/index.js +0 -210
- package/dist/node/components/SiteMenu/index.js.map +0 -1
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.cjs +0 -19
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.cjs.map +0 -1
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.js +0 -1
- package/dist/node/components/SiteMenu/lib/MenuListItemBase.js.map +0 -1
- package/dist/node/components/SiteMenu/lib/NavListItemProps.cjs +0 -19
- package/dist/node/components/SiteMenu/lib/NavListItemProps.cjs.map +0 -1
- package/dist/node/components/SiteMenu/lib/NavListItemProps.js +0 -1
- package/dist/node/components/SiteMenu/lib/NavListItemProps.js.map +0 -1
- package/dist/node/components/SiteMenu/lib/index.cjs +0 -19
- package/dist/node/components/SiteMenu/lib/index.cjs.map +0 -1
- package/dist/node/components/SiteMenu/lib/index.js +0 -1
- package/dist/node/components/SiteMenu/lib/index.js.map +0 -1
- package/dist/node/components/Toolbar/Context/ContextToolbar.cjs +0 -76
- package/dist/node/components/Toolbar/Context/ContextToolbar.cjs.map +0 -1
- package/dist/node/components/Toolbar/Context/ContextToolbar.js +0 -51
- package/dist/node/components/Toolbar/Context/ContextToolbar.js.map +0 -1
- package/dist/node/components/Toolbar/Context/Logo.cjs +0 -37
- package/dist/node/components/Toolbar/Context/Logo.cjs.map +0 -1
- package/dist/node/components/Toolbar/Context/Logo.js +0 -12
- package/dist/node/components/Toolbar/Context/Logo.js.map +0 -1
- package/dist/node/components/Toolbar/Context/LogoLinkEx.cjs +0 -67
- package/dist/node/components/Toolbar/Context/LogoLinkEx.cjs.map +0 -1
- package/dist/node/components/Toolbar/Context/LogoLinkEx.js +0 -42
- package/dist/node/components/Toolbar/Context/LogoLinkEx.js.map +0 -1
- package/dist/node/components/Toolbar/Context/index.cjs +0 -78
- package/dist/node/components/Toolbar/Context/index.cjs.map +0 -1
- package/dist/node/components/Toolbar/Context/index.js +0 -51
- package/dist/node/components/Toolbar/Context/index.js.map +0 -1
- package/dist/node/components/Toolbar/System/SystemToolbar.cjs +0 -224
- package/dist/node/components/Toolbar/System/SystemToolbar.cjs.map +0 -1
- package/dist/node/components/Toolbar/System/SystemToolbar.js +0 -199
- package/dist/node/components/Toolbar/System/SystemToolbar.js.map +0 -1
- package/dist/node/components/Toolbar/System/index.cjs +0 -226
- package/dist/node/components/Toolbar/System/index.cjs.map +0 -1
- package/dist/node/components/Toolbar/System/index.js +0 -199
- package/dist/node/components/Toolbar/System/index.js.map +0 -1
- package/dist/node/components/Toolbar/index.cjs +0 -276
- package/dist/node/components/Toolbar/index.cjs.map +0 -1
- package/dist/node/components/Toolbar/index.js +0 -248
- package/dist/node/components/Toolbar/index.js.map +0 -1
- package/dist/node/components/index.cjs +0 -566
- package/dist/node/components/index.cjs.map +0 -1
- package/dist/node/components/index.js +0 -527
- package/dist/node/components/index.js.map +0 -1
- package/dist/node/contexts/Collapsible/State.cjs +0 -19
- package/dist/node/contexts/Collapsible/State.cjs.map +0 -1
- package/dist/node/contexts/Collapsible/State.js +0 -1
- package/dist/node/contexts/Collapsible/State.js.map +0 -1
- package/dist/node/contexts/Collapsible/context.cjs +0 -32
- package/dist/node/contexts/Collapsible/context.cjs.map +0 -1
- package/dist/node/contexts/Collapsible/context.js +0 -7
- package/dist/node/contexts/Collapsible/context.js.map +0 -1
- package/dist/node/contexts/Collapsible/index.cjs +0 -57
- package/dist/node/contexts/Collapsible/index.cjs.map +0 -1
- package/dist/node/contexts/Collapsible/index.js +0 -29
- package/dist/node/contexts/Collapsible/index.js.map +0 -1
- package/dist/node/contexts/Collapsible/provider.cjs +0 -49
- package/dist/node/contexts/Collapsible/provider.cjs.map +0 -1
- package/dist/node/contexts/Collapsible/provider.js +0 -24
- package/dist/node/contexts/Collapsible/provider.js.map +0 -1
- package/dist/node/contexts/Collapsible/use.cjs +0 -38
- package/dist/node/contexts/Collapsible/use.cjs.map +0 -1
- package/dist/node/contexts/Collapsible/use.js +0 -13
- package/dist/node/contexts/Collapsible/use.js.map +0 -1
- package/dist/node/contexts/index.cjs +0 -57
- package/dist/node/contexts/index.cjs.map +0 -1
- package/dist/node/contexts/index.js +0 -29
- package/dist/node/contexts/index.js.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/MobileSystemControls/index.ts","../../../../src/components/MobileSystemControls/SystemControls.tsx","../../../../src/components/MobileSystemControls/SystemControlsRoot.tsx","../../../../src/components/MobileSystemControls/SystemControlsType.ts","../../../../src/components/MobileSystemControls/SystemControlsUnstyled.tsx","../../../../src/components/MobileSystemControls/controls/SystemControl.tsx"],"sourcesContent":["export * from './SystemControls'\nexport * from './SystemControlsType'\nexport * from './SystemControlsUnstyled'\n","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","export enum SystemControlsType {\n Left = 'Left',\n Right = 'Right',\n WindowShade = 'WindowShade',\n}\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;AAAA;;;ACAA,IAAAA,wBAAwB;;;ACAxB,IAAAC,mBAAuB;;;ACAhB,IAAK,qBAAL,kBAAKC,wBAAL;AACL,EAAAA,oBAAA,UAAO;AACP,EAAAA,oBAAA,WAAQ;AACR,EAAAA,oBAAA,iBAAc;AAHJ,SAAAA;AAAA,GAAA;;;ACAZ,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;AAA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,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","SystemControlsType","import_material","import_react_flexbox","import_jsx_runtime","import_jsx_runtime"]}
|
@@ -1,132 +0,0 @@
|
|
1
|
-
// src/components/MobileSystemControls/SystemControls.tsx
|
2
|
-
import { FlexCol as FlexCol3 } from "@xylabs/react-flexbox";
|
3
|
-
|
4
|
-
// src/components/MobileSystemControls/SystemControlsRoot.tsx
|
5
|
-
import { styled } from "@mui/material";
|
6
|
-
|
7
|
-
// src/components/MobileSystemControls/SystemControlsType.ts
|
8
|
-
var SystemControlsType = /* @__PURE__ */ ((SystemControlsType2) => {
|
9
|
-
SystemControlsType2["Left"] = "Left";
|
10
|
-
SystemControlsType2["Right"] = "Right";
|
11
|
-
SystemControlsType2["WindowShade"] = "WindowShade";
|
12
|
-
return SystemControlsType2;
|
13
|
-
})(SystemControlsType || {});
|
14
|
-
|
15
|
-
// src/components/MobileSystemControls/SystemControlsUnstyled.tsx
|
16
|
-
import { Paper, useMediaQuery } from "@mui/material";
|
17
|
-
import { FlexCol as FlexCol2, FlexRow as FlexRow2 } from "@xylabs/react-flexbox";
|
18
|
-
import { NetworkSelectEx } from "@xyo-network/react-network";
|
19
|
-
|
20
|
-
// src/components/MobileSystemControls/controls/SystemControl.tsx
|
21
|
-
import { Collapse } from "@mui/material";
|
22
|
-
import { FlexCol, FlexRow } from "@xylabs/react-flexbox";
|
23
|
-
import { useState } from "react";
|
24
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
25
|
-
var SystemControl = ({
|
26
|
-
children,
|
27
|
-
controlElement,
|
28
|
-
systemControlsType = "WindowShade" /* WindowShade */,
|
29
|
-
...props
|
30
|
-
}) => {
|
31
|
-
const [toggleControls, setToggleControls] = useState(false);
|
32
|
-
let orientation = "vertical";
|
33
|
-
switch (systemControlsType) {
|
34
|
-
case "Left" /* Left */: {
|
35
|
-
orientation = "horizontal";
|
36
|
-
break;
|
37
|
-
}
|
38
|
-
}
|
39
|
-
return /* @__PURE__ */ jsxs(FlexRow, { className: "controls", ...props, children: [
|
40
|
-
/* @__PURE__ */ jsx(Collapse, { in: toggleControls, orientation, timeout: 500, children: /* @__PURE__ */ jsx(FlexRow, { bgcolor: "primary.main", className: "control", children: controlElement }) }),
|
41
|
-
/* @__PURE__ */ jsx(FlexCol, { style: { cursor: "pointer" }, onClick: () => setToggleControls(!toggleControls), children })
|
42
|
-
] });
|
43
|
-
};
|
44
|
-
|
45
|
-
// src/components/MobileSystemControls/SystemControlsUnstyled.tsx
|
46
|
-
import { Fragment, jsx as jsx2 } from "react/jsx-runtime";
|
47
|
-
var SystemControlsUnstyled = ({
|
48
|
-
visible,
|
49
|
-
systemControlsType = "WindowShade" /* WindowShade */,
|
50
|
-
...props
|
51
|
-
}) => {
|
52
|
-
const isSmall = useMediaQuery((theme) => theme.breakpoints.down("sm"));
|
53
|
-
if (visible || isSmall) {
|
54
|
-
return /* @__PURE__ */ jsx2(FlexCol2, { ...props, className: `${props.className} system-controls-type-${systemControlsType}`, children: /* @__PURE__ */ jsx2(
|
55
|
-
SystemControl,
|
56
|
-
{
|
57
|
-
systemControlsType,
|
58
|
-
controlElement: /* @__PURE__ */ jsx2(Fragment, { children: /* @__PURE__ */ jsx2(FlexRow2, { className: "control-wrap", children: /* @__PURE__ */ jsx2(Paper, { variant: "elevation", elevation: 0, children: /* @__PURE__ */ jsx2(NetworkSelectEx, { responsive: false, className: "network-ex" }) }) }) })
|
59
|
-
}
|
60
|
-
) });
|
61
|
-
} else {
|
62
|
-
return /* @__PURE__ */ jsx2(FlexCol2, {});
|
63
|
-
}
|
64
|
-
};
|
65
|
-
|
66
|
-
// src/components/MobileSystemControls/SystemControlsRoot.tsx
|
67
|
-
var SystemControlsRoot = styled(SystemControlsUnstyled, { name: "SystemControls", slot: "Root" })(({ theme }) => ({
|
68
|
-
// shared defaults
|
69
|
-
["&"]: {
|
70
|
-
".toggle": {
|
71
|
-
backgroundColor: theme.palette.primary.main
|
72
|
-
},
|
73
|
-
alignItems: "start",
|
74
|
-
zIndex: 1
|
75
|
-
},
|
76
|
-
// WindowShade System Controls styles
|
77
|
-
[`&.system-controls-type-${"WindowShade" /* WindowShade */}`]: {
|
78
|
-
".control": {
|
79
|
-
borderRadius: "0 0 5px 5px",
|
80
|
-
flexDirection: "row",
|
81
|
-
flexGrow: 1,
|
82
|
-
justifyContent: "space-around",
|
83
|
-
padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`
|
84
|
-
},
|
85
|
-
".controls": {
|
86
|
-
alignItems: "stretch",
|
87
|
-
flexDirection: "column",
|
88
|
-
flexGrow: 1
|
89
|
-
},
|
90
|
-
".toggle": {
|
91
|
-
borderRadius: "0 0 5px 5px",
|
92
|
-
padding: `${theme.spacing(0.5)} ${theme.spacing(1)}`
|
93
|
-
},
|
94
|
-
flexDirection: "row",
|
95
|
-
position: "absolute",
|
96
|
-
top: 0,
|
97
|
-
width: "100%"
|
98
|
-
},
|
99
|
-
// Left System Control styles
|
100
|
-
[`&.system-controls-type-${"Left" /* Left */}`]: {
|
101
|
-
".control": {
|
102
|
-
alignItems: "start",
|
103
|
-
flexDirection: "column",
|
104
|
-
padding: `${theme.spacing(2)} ${theme.spacing(2.5)}`
|
105
|
-
},
|
106
|
-
".control-wrap": {
|
107
|
-
marginBottom: `${theme.spacing(2)}`
|
108
|
-
},
|
109
|
-
".toggle": {
|
110
|
-
borderRadius: "0 5px 5px 0",
|
111
|
-
padding: `${theme.spacing(1)} ${theme.spacing(0.5)}`,
|
112
|
-
writingMode: "vertical-rl"
|
113
|
-
},
|
114
|
-
flexDirection: "column",
|
115
|
-
left: 0,
|
116
|
-
position: "fixed",
|
117
|
-
top: "30vh",
|
118
|
-
width: "auto"
|
119
|
-
}
|
120
|
-
}));
|
121
|
-
|
122
|
-
// src/components/MobileSystemControls/SystemControls.tsx
|
123
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
124
|
-
var SystemControls = (props) => {
|
125
|
-
return /* @__PURE__ */ jsx3(FlexCol3, { children: /* @__PURE__ */ jsx3(SystemControlsRoot, { ...props }) });
|
126
|
-
};
|
127
|
-
export {
|
128
|
-
SystemControls,
|
129
|
-
SystemControlsType,
|
130
|
-
SystemControlsUnstyled
|
131
|
-
};
|
132
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/MobileSystemControls/SystemControls.tsx","../../../../src/components/MobileSystemControls/SystemControlsRoot.tsx","../../../../src/components/MobileSystemControls/SystemControlsType.ts","../../../../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","export enum SystemControlsType {\n Left = 'Left',\n Right = 'Right',\n WindowShade = 'WindowShade',\n}\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,SAAS,WAAAA,gBAAe;;;ACAxB,SAAS,cAAc;;;ACAhB,IAAK,qBAAL,kBAAKC,wBAAL;AACL,EAAAA,oBAAA,UAAO;AACP,EAAAA,oBAAA,WAAQ;AACR,EAAAA,oBAAA,iBAAc;AAHJ,SAAAA;AAAA,GAAA;;;ACAZ,SAAS,OAAc,qBAAqB;AAC5C,SAAuB,WAAAC,UAAS,WAAAC,gBAAe;AAC/C,SAAS,uBAAuB;;;ACFhC,SAAS,gBAA+B;AACxC,SAAuB,SAAS,eAAe;AAE/C,SAAS,gBAAgB;AA2BrB,SAEI,KAFJ;AAlBJ,IAAM,gBAA4D,CAAC;AAAA,EACjE;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,CAAC,gBAAgB,iBAAiB,IAAI,SAAS,KAAK;AAE1D,MAAI,cAA4C;AAEhD,UAAQ,oBAAoB;AAAA,IAC1B,wBAA8B;AAC5B,oBAAc;AACd;AAAA,IACF;AAAA,EACF;AAEA,SACE,qBAAC,WAAQ,WAAU,YAAY,GAAG,OAChC;AAAA,wBAAC,YAAS,IAAI,gBAAgB,aAA0B,SAAS,KAC/D,8BAAC,WAAQ,SAAQ,gBAAe,WAAU,WACvC,0BACH,GACF;AAAA,IACA,oBAAC,WAAQ,OAAO,EAAE,QAAQ,UAAU,GAAG,SAAS,MAAM,kBAAkB,CAAC,cAAc,GACpF,UACH;AAAA,KACF;AAEJ;;;ADhBY,mBAGM,OAAAC,YAHN;AAbZ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AC,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,gBAAAE,YAAA;AAHN,IAAM,iBAAwD,CAAC,UAAU;AACvE,SACE,gBAAAA,KAACC,UAAA,EACC,0BAAAD,KAAC,sBAAoB,GAAG,OAAO,GACjC;AAEJ;","names":["FlexCol","SystemControlsType","FlexCol","FlexRow","jsx","FlexCol","FlexRow","jsx","FlexCol"]}
|
@@ -1,57 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
-
};
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
|
20
|
-
// src/components/SearchBar/SearchBar.tsx
|
21
|
-
var SearchBar_exports = {};
|
22
|
-
__export(SearchBar_exports, {
|
23
|
-
SearchBar: () => SearchBar
|
24
|
-
});
|
25
|
-
module.exports = __toCommonJS(SearchBar_exports);
|
26
|
-
var import_icons_material = require("@mui/icons-material");
|
27
|
-
var import_material = require("@mui/material");
|
28
|
-
var import_react_button = require("@xylabs/react-button");
|
29
|
-
var import_react_flexbox = require("@xylabs/react-flexbox");
|
30
|
-
var import_react = require("react");
|
31
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
32
|
-
var SearchBar = ({ defaultValue, onSearch, ...props }) => {
|
33
|
-
const [term, setTerm] = (0, import_react.useState)();
|
34
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexRow, { alignItems: "stretch", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Paper, { variant: "elevation", elevation: 0, style: { display: "flex", overflow: "hidden", width: "100%" }, children: [
|
35
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
36
|
-
import_material.TextField,
|
37
|
-
{
|
38
|
-
InputProps: { color: "secondary", style: { borderBottomRightRadius: 0, borderTopRightRadius: 0, borderWidth: 0 } },
|
39
|
-
variant: "outlined",
|
40
|
-
size: "small",
|
41
|
-
defaultValue,
|
42
|
-
fullWidth: true,
|
43
|
-
onChange: (event) => setTerm(event.target.value),
|
44
|
-
onKeyDown: (event) => {
|
45
|
-
if (event.key === "Enter")
|
46
|
-
onSearch == null ? void 0 : onSearch(term);
|
47
|
-
}
|
48
|
-
}
|
49
|
-
),
|
50
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_button.ButtonEx, { variant: "contained", style: { borderRadius: 0, borderTopLeftRadius: 0 }, color: "secondary", onClick: () => onSearch == null ? void 0 : onSearch(term), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_material.Search, {}) })
|
51
|
-
] }) });
|
52
|
-
};
|
53
|
-
// Annotate the CommonJS export names for ESM import in node:
|
54
|
-
0 && (module.exports = {
|
55
|
-
SearchBar
|
56
|
-
});
|
57
|
-
//# sourceMappingURL=SearchBar.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/SearchBar/SearchBar.tsx"],"sourcesContent":["import { Search as SearchIcon } from '@mui/icons-material'\nimport { Paper, TextField } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { useState } from 'react'\n\nexport interface SearchBarProps extends FlexBoxProps {\n onSearch?: (term?: string) => void\n}\n\nexport const SearchBar: React.FC<SearchBarProps> = ({ defaultValue, onSearch, ...props }) => {\n const [term, setTerm] = useState<string>()\n\n return (\n <FlexRow alignItems=\"stretch\" {...props}>\n <Paper variant=\"elevation\" elevation={0} style={{ display: 'flex', overflow: 'hidden', width: '100%' }}>\n <TextField\n InputProps={{ color: 'secondary', style: { borderBottomRightRadius: 0, borderTopRightRadius: 0, borderWidth: 0 } }}\n variant=\"outlined\"\n size=\"small\"\n defaultValue={defaultValue}\n fullWidth\n onChange={(event) => setTerm(event.target.value)}\n onKeyDown={(event) => {\n if (event.key === 'Enter') onSearch?.(term)\n }}\n />\n <ButtonEx variant=\"contained\" style={{ borderRadius: 0, borderTopLeftRadius: 0 }} color=\"secondary\" onClick={() => onSearch?.(term)}>\n <SearchIcon />\n </ButtonEx>\n </Paper>\n </FlexRow>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAqC;AACrC,sBAAiC;AACjC,0BAAyB;AACzB,2BAAsC;AACtC,mBAAyB;AAWnB;AALC,IAAM,YAAsC,CAAC,EAAE,cAAc,UAAU,GAAG,MAAM,MAAM;AAC3F,QAAM,CAAC,MAAM,OAAO,QAAI,uBAAiB;AAEzC,SACE,4CAAC,gCAAQ,YAAW,WAAW,GAAG,OAChC,uDAAC,yBAAM,SAAQ,aAAY,WAAW,GAAG,OAAO,EAAE,SAAS,QAAQ,UAAU,UAAU,OAAO,OAAO,GACnG;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,YAAY,EAAE,OAAO,aAAa,OAAO,EAAE,yBAAyB,GAAG,sBAAsB,GAAG,aAAa,EAAE,EAAE;AAAA,QACjH,SAAQ;AAAA,QACR,MAAK;AAAA,QACL;AAAA,QACA,WAAS;AAAA,QACT,UAAU,CAAC,UAAU,QAAQ,MAAM,OAAO,KAAK;AAAA,QAC/C,WAAW,CAAC,UAAU;AACpB,cAAI,MAAM,QAAQ;AAAS,iDAAW;AAAA,QACxC;AAAA;AAAA,IACF;AAAA,IACA,4CAAC,gCAAS,SAAQ,aAAY,OAAO,EAAE,cAAc,GAAG,qBAAqB,EAAE,GAAG,OAAM,aAAY,SAAS,MAAM,qCAAW,OAC5H,sDAAC,sBAAAA,QAAA,EAAW,GACd;AAAA,KACF,GACF;AAEJ;","names":["SearchIcon"]}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
// src/components/SearchBar/SearchBar.tsx
|
2
|
-
import { Search as SearchIcon } from "@mui/icons-material";
|
3
|
-
import { Paper, TextField } from "@mui/material";
|
4
|
-
import { ButtonEx } from "@xylabs/react-button";
|
5
|
-
import { FlexRow } from "@xylabs/react-flexbox";
|
6
|
-
import { useState } from "react";
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
8
|
-
var SearchBar = ({ defaultValue, onSearch, ...props }) => {
|
9
|
-
const [term, setTerm] = useState();
|
10
|
-
return /* @__PURE__ */ jsx(FlexRow, { alignItems: "stretch", ...props, children: /* @__PURE__ */ jsxs(Paper, { variant: "elevation", elevation: 0, style: { display: "flex", overflow: "hidden", width: "100%" }, children: [
|
11
|
-
/* @__PURE__ */ jsx(
|
12
|
-
TextField,
|
13
|
-
{
|
14
|
-
InputProps: { color: "secondary", style: { borderBottomRightRadius: 0, borderTopRightRadius: 0, borderWidth: 0 } },
|
15
|
-
variant: "outlined",
|
16
|
-
size: "small",
|
17
|
-
defaultValue,
|
18
|
-
fullWidth: true,
|
19
|
-
onChange: (event) => setTerm(event.target.value),
|
20
|
-
onKeyDown: (event) => {
|
21
|
-
if (event.key === "Enter")
|
22
|
-
onSearch == null ? void 0 : onSearch(term);
|
23
|
-
}
|
24
|
-
}
|
25
|
-
),
|
26
|
-
/* @__PURE__ */ jsx(ButtonEx, { variant: "contained", style: { borderRadius: 0, borderTopLeftRadius: 0 }, color: "secondary", onClick: () => onSearch == null ? void 0 : onSearch(term), children: /* @__PURE__ */ jsx(SearchIcon, {}) })
|
27
|
-
] }) });
|
28
|
-
};
|
29
|
-
export {
|
30
|
-
SearchBar
|
31
|
-
};
|
32
|
-
//# sourceMappingURL=SearchBar.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/SearchBar/SearchBar.tsx"],"sourcesContent":["import { Search as SearchIcon } from '@mui/icons-material'\nimport { Paper, TextField } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { useState } from 'react'\n\nexport interface SearchBarProps extends FlexBoxProps {\n onSearch?: (term?: string) => void\n}\n\nexport const SearchBar: React.FC<SearchBarProps> = ({ defaultValue, onSearch, ...props }) => {\n const [term, setTerm] = useState<string>()\n\n return (\n <FlexRow alignItems=\"stretch\" {...props}>\n <Paper variant=\"elevation\" elevation={0} style={{ display: 'flex', overflow: 'hidden', width: '100%' }}>\n <TextField\n InputProps={{ color: 'secondary', style: { borderBottomRightRadius: 0, borderTopRightRadius: 0, borderWidth: 0 } }}\n variant=\"outlined\"\n size=\"small\"\n defaultValue={defaultValue}\n fullWidth\n onChange={(event) => setTerm(event.target.value)}\n onKeyDown={(event) => {\n if (event.key === 'Enter') onSearch?.(term)\n }}\n />\n <ButtonEx variant=\"contained\" style={{ borderRadius: 0, borderTopLeftRadius: 0 }} color=\"secondary\" onClick={() => onSearch?.(term)}>\n <SearchIcon />\n </ButtonEx>\n </Paper>\n </FlexRow>\n )\n}\n"],"mappings":";AAAA,SAAS,UAAU,kBAAkB;AACrC,SAAS,OAAO,iBAAiB;AACjC,SAAS,gBAAgB;AACzB,SAAuB,eAAe;AACtC,SAAS,gBAAgB;AAWnB,SACE,KADF;AALC,IAAM,YAAsC,CAAC,EAAE,cAAc,UAAU,GAAG,MAAM,MAAM;AAC3F,QAAM,CAAC,MAAM,OAAO,IAAI,SAAiB;AAEzC,SACE,oBAAC,WAAQ,YAAW,WAAW,GAAG,OAChC,+BAAC,SAAM,SAAQ,aAAY,WAAW,GAAG,OAAO,EAAE,SAAS,QAAQ,UAAU,UAAU,OAAO,OAAO,GACnG;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,YAAY,EAAE,OAAO,aAAa,OAAO,EAAE,yBAAyB,GAAG,sBAAsB,GAAG,aAAa,EAAE,EAAE;AAAA,QACjH,SAAQ;AAAA,QACR,MAAK;AAAA,QACL;AAAA,QACA,WAAS;AAAA,QACT,UAAU,CAAC,UAAU,QAAQ,MAAM,OAAO,KAAK;AAAA,QAC/C,WAAW,CAAC,UAAU;AACpB,cAAI,MAAM,QAAQ;AAAS,iDAAW;AAAA,QACxC;AAAA;AAAA,IACF;AAAA,IACA,oBAAC,YAAS,SAAQ,aAAY,OAAO,EAAE,cAAc,GAAG,qBAAqB,EAAE,GAAG,OAAM,aAAY,SAAS,MAAM,qCAAW,OAC5H,8BAAC,cAAW,GACd;AAAA,KACF,GACF;AAEJ;","names":[]}
|
@@ -1,59 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
-
};
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
|
20
|
-
// src/components/SearchBar/index.ts
|
21
|
-
var SearchBar_exports = {};
|
22
|
-
__export(SearchBar_exports, {
|
23
|
-
SearchBar: () => SearchBar
|
24
|
-
});
|
25
|
-
module.exports = __toCommonJS(SearchBar_exports);
|
26
|
-
|
27
|
-
// src/components/SearchBar/SearchBar.tsx
|
28
|
-
var import_icons_material = require("@mui/icons-material");
|
29
|
-
var import_material = require("@mui/material");
|
30
|
-
var import_react_button = require("@xylabs/react-button");
|
31
|
-
var import_react_flexbox = require("@xylabs/react-flexbox");
|
32
|
-
var import_react = require("react");
|
33
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
34
|
-
var SearchBar = ({ defaultValue, onSearch, ...props }) => {
|
35
|
-
const [term, setTerm] = (0, import_react.useState)();
|
36
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexRow, { alignItems: "stretch", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Paper, { variant: "elevation", elevation: 0, style: { display: "flex", overflow: "hidden", width: "100%" }, children: [
|
37
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
38
|
-
import_material.TextField,
|
39
|
-
{
|
40
|
-
InputProps: { color: "secondary", style: { borderBottomRightRadius: 0, borderTopRightRadius: 0, borderWidth: 0 } },
|
41
|
-
variant: "outlined",
|
42
|
-
size: "small",
|
43
|
-
defaultValue,
|
44
|
-
fullWidth: true,
|
45
|
-
onChange: (event) => setTerm(event.target.value),
|
46
|
-
onKeyDown: (event) => {
|
47
|
-
if (event.key === "Enter")
|
48
|
-
onSearch == null ? void 0 : onSearch(term);
|
49
|
-
}
|
50
|
-
}
|
51
|
-
),
|
52
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_button.ButtonEx, { variant: "contained", style: { borderRadius: 0, borderTopLeftRadius: 0 }, color: "secondary", onClick: () => onSearch == null ? void 0 : onSearch(term), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_material.Search, {}) })
|
53
|
-
] }) });
|
54
|
-
};
|
55
|
-
// Annotate the CommonJS export names for ESM import in node:
|
56
|
-
0 && (module.exports = {
|
57
|
-
SearchBar
|
58
|
-
});
|
59
|
-
//# sourceMappingURL=index.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/SearchBar/index.ts","../../../../src/components/SearchBar/SearchBar.tsx"],"sourcesContent":["export * from './SearchBar'\n","import { Search as SearchIcon } from '@mui/icons-material'\nimport { Paper, TextField } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { useState } from 'react'\n\nexport interface SearchBarProps extends FlexBoxProps {\n onSearch?: (term?: string) => void\n}\n\nexport const SearchBar: React.FC<SearchBarProps> = ({ defaultValue, onSearch, ...props }) => {\n const [term, setTerm] = useState<string>()\n\n return (\n <FlexRow alignItems=\"stretch\" {...props}>\n <Paper variant=\"elevation\" elevation={0} style={{ display: 'flex', overflow: 'hidden', width: '100%' }}>\n <TextField\n InputProps={{ color: 'secondary', style: { borderBottomRightRadius: 0, borderTopRightRadius: 0, borderWidth: 0 } }}\n variant=\"outlined\"\n size=\"small\"\n defaultValue={defaultValue}\n fullWidth\n onChange={(event) => setTerm(event.target.value)}\n onKeyDown={(event) => {\n if (event.key === 'Enter') onSearch?.(term)\n }}\n />\n <ButtonEx variant=\"contained\" style={{ borderRadius: 0, borderTopLeftRadius: 0 }} color=\"secondary\" onClick={() => onSearch?.(term)}>\n <SearchIcon />\n </ButtonEx>\n </Paper>\n </FlexRow>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,4BAAqC;AACrC,sBAAiC;AACjC,0BAAyB;AACzB,2BAAsC;AACtC,mBAAyB;AAWnB;AALC,IAAM,YAAsC,CAAC,EAAE,cAAc,UAAU,GAAG,MAAM,MAAM;AAC3F,QAAM,CAAC,MAAM,OAAO,QAAI,uBAAiB;AAEzC,SACE,4CAAC,gCAAQ,YAAW,WAAW,GAAG,OAChC,uDAAC,yBAAM,SAAQ,aAAY,WAAW,GAAG,OAAO,EAAE,SAAS,QAAQ,UAAU,UAAU,OAAO,OAAO,GACnG;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,YAAY,EAAE,OAAO,aAAa,OAAO,EAAE,yBAAyB,GAAG,sBAAsB,GAAG,aAAa,EAAE,EAAE;AAAA,QACjH,SAAQ;AAAA,QACR,MAAK;AAAA,QACL;AAAA,QACA,WAAS;AAAA,QACT,UAAU,CAAC,UAAU,QAAQ,MAAM,OAAO,KAAK;AAAA,QAC/C,WAAW,CAAC,UAAU;AACpB,cAAI,MAAM,QAAQ;AAAS,iDAAW;AAAA,QACxC;AAAA;AAAA,IACF;AAAA,IACA,4CAAC,gCAAS,SAAQ,aAAY,OAAO,EAAE,cAAc,GAAG,qBAAqB,EAAE,GAAG,OAAM,aAAY,SAAS,MAAM,qCAAW,OAC5H,sDAAC,sBAAAA,QAAA,EAAW,GACd;AAAA,KACF,GACF;AAEJ;","names":["SearchIcon"]}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
// src/components/SearchBar/SearchBar.tsx
|
2
|
-
import { Search as SearchIcon } from "@mui/icons-material";
|
3
|
-
import { Paper, TextField } from "@mui/material";
|
4
|
-
import { ButtonEx } from "@xylabs/react-button";
|
5
|
-
import { FlexRow } from "@xylabs/react-flexbox";
|
6
|
-
import { useState } from "react";
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
8
|
-
var SearchBar = ({ defaultValue, onSearch, ...props }) => {
|
9
|
-
const [term, setTerm] = useState();
|
10
|
-
return /* @__PURE__ */ jsx(FlexRow, { alignItems: "stretch", ...props, children: /* @__PURE__ */ jsxs(Paper, { variant: "elevation", elevation: 0, style: { display: "flex", overflow: "hidden", width: "100%" }, children: [
|
11
|
-
/* @__PURE__ */ jsx(
|
12
|
-
TextField,
|
13
|
-
{
|
14
|
-
InputProps: { color: "secondary", style: { borderBottomRightRadius: 0, borderTopRightRadius: 0, borderWidth: 0 } },
|
15
|
-
variant: "outlined",
|
16
|
-
size: "small",
|
17
|
-
defaultValue,
|
18
|
-
fullWidth: true,
|
19
|
-
onChange: (event) => setTerm(event.target.value),
|
20
|
-
onKeyDown: (event) => {
|
21
|
-
if (event.key === "Enter")
|
22
|
-
onSearch == null ? void 0 : onSearch(term);
|
23
|
-
}
|
24
|
-
}
|
25
|
-
),
|
26
|
-
/* @__PURE__ */ jsx(ButtonEx, { variant: "contained", style: { borderRadius: 0, borderTopLeftRadius: 0 }, color: "secondary", onClick: () => onSearch == null ? void 0 : onSearch(term), children: /* @__PURE__ */ jsx(SearchIcon, {}) })
|
27
|
-
] }) });
|
28
|
-
};
|
29
|
-
export {
|
30
|
-
SearchBar
|
31
|
-
};
|
32
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/SearchBar/SearchBar.tsx"],"sourcesContent":["import { Search as SearchIcon } from '@mui/icons-material'\nimport { Paper, TextField } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { useState } from 'react'\n\nexport interface SearchBarProps extends FlexBoxProps {\n onSearch?: (term?: string) => void\n}\n\nexport const SearchBar: React.FC<SearchBarProps> = ({ defaultValue, onSearch, ...props }) => {\n const [term, setTerm] = useState<string>()\n\n return (\n <FlexRow alignItems=\"stretch\" {...props}>\n <Paper variant=\"elevation\" elevation={0} style={{ display: 'flex', overflow: 'hidden', width: '100%' }}>\n <TextField\n InputProps={{ color: 'secondary', style: { borderBottomRightRadius: 0, borderTopRightRadius: 0, borderWidth: 0 } }}\n variant=\"outlined\"\n size=\"small\"\n defaultValue={defaultValue}\n fullWidth\n onChange={(event) => setTerm(event.target.value)}\n onKeyDown={(event) => {\n if (event.key === 'Enter') onSearch?.(term)\n }}\n />\n <ButtonEx variant=\"contained\" style={{ borderRadius: 0, borderTopLeftRadius: 0 }} color=\"secondary\" onClick={() => onSearch?.(term)}>\n <SearchIcon />\n </ButtonEx>\n </Paper>\n </FlexRow>\n )\n}\n"],"mappings":";AAAA,SAAS,UAAU,kBAAkB;AACrC,SAAS,OAAO,iBAAiB;AACjC,SAAS,gBAAgB;AACzB,SAAuB,eAAe;AACtC,SAAS,gBAAgB;AAWnB,SACE,KADF;AALC,IAAM,YAAsC,CAAC,EAAE,cAAc,UAAU,GAAG,MAAM,MAAM;AAC3F,QAAM,CAAC,MAAM,OAAO,IAAI,SAAiB;AAEzC,SACE,oBAAC,WAAQ,YAAW,WAAW,GAAG,OAChC,+BAAC,SAAM,SAAQ,aAAY,WAAW,GAAG,OAAO,EAAE,SAAS,QAAQ,UAAU,UAAU,OAAO,OAAO,GACnG;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,YAAY,EAAE,OAAO,aAAa,OAAO,EAAE,yBAAyB,GAAG,sBAAsB,GAAG,aAAa,EAAE,EAAE;AAAA,QACjH,SAAQ;AAAA,QACR,MAAK;AAAA,QACL;AAAA,QACA,WAAS;AAAA,QACT,UAAU,CAAC,UAAU,QAAQ,MAAM,OAAO,KAAK;AAAA,QAC/C,WAAW,CAAC,UAAU;AACpB,cAAI,MAAM,QAAQ;AAAS,iDAAW;AAAA,QACxC;AAAA;AAAA,IACF;AAAA,IACA,oBAAC,YAAS,SAAQ,aAAY,OAAO,EAAE,cAAc,GAAG,qBAAqB,EAAE,GAAG,OAAM,aAAY,SAAS,MAAM,qCAAW,OAC5H,8BAAC,cAAW,GACd;AAAA,KACF,GACF;AAEJ;","names":[]}
|
@@ -1,197 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
-
};
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
|
20
|
-
// src/components/SiteMenu/Menu.tsx
|
21
|
-
var Menu_exports = {};
|
22
|
-
__export(Menu_exports, {
|
23
|
-
SiteMenu: () => SiteMenu
|
24
|
-
});
|
25
|
-
module.exports = __toCommonJS(Menu_exports);
|
26
|
-
var import_icons_material = require("@mui/icons-material");
|
27
|
-
var import_material7 = require("@mui/material");
|
28
|
-
var import_react_flexbox3 = require("@xylabs/react-flexbox");
|
29
|
-
var import_react2 = require("react");
|
30
|
-
|
31
|
-
// src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx
|
32
|
-
var import_material6 = require("@mui/material");
|
33
|
-
var import_react_flexbox2 = require("@xylabs/react-flexbox");
|
34
|
-
var import_react_link = require("@xylabs/react-link");
|
35
|
-
var import_react = require("react");
|
36
|
-
|
37
|
-
// src/contexts/Collapsible/context.ts
|
38
|
-
var import_react_shared = require("@xyo-network/react-shared");
|
39
|
-
var CollapsibleContext = (0, import_react_shared.createContextEx)();
|
40
|
-
|
41
|
-
// src/contexts/Collapsible/use.tsx
|
42
|
-
var import_react_shared2 = require("@xyo-network/react-shared");
|
43
|
-
var useCollapsible = () => (0, import_react_shared2.useContextEx)(CollapsibleContext, "Collapsible", false);
|
44
|
-
|
45
|
-
// src/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.tsx
|
46
|
-
var import_material = require("@mui/material");
|
47
|
-
var import_react_flexbox = require("@xylabs/react-flexbox");
|
48
|
-
var import_vsc = require("react-icons/vsc/index.js");
|
49
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
50
|
-
var ListItemTooltip = ({ title, ...props }) => {
|
51
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Tooltip, { title, placement: "right", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_flexbox.FlexCol, { justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscInfo, { color: "grey" }) }) }) });
|
52
|
-
};
|
53
|
-
|
54
|
-
// src/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.tsx
|
55
|
-
var import_material2 = require("@mui/material");
|
56
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
57
|
-
var MenuIcon = ({ icon, ...props }) => {
|
58
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Typography, { display: "flex", ...props, children: icon });
|
59
|
-
};
|
60
|
-
|
61
|
-
// src/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.tsx
|
62
|
-
var import_material3 = require("@mui/material");
|
63
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
64
|
-
var MenuListItem = ({ iconOnly, collapseEnd, sx, children, dense, ...props }) => {
|
65
|
-
const listItemSx = iconOnly ? { borderRadius: "50%", display: "inline-flex", flexGrow: 0, width: "auto" } : { width: "100%" };
|
66
|
-
const spacingSx = collapseEnd ? { columnGap: 0 } : { columnGap: 1.5 };
|
67
|
-
const paddingSx = dense ? { px: "8px" } : { px: "12px" };
|
68
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.ListItem, { sx: { ...listItemSx, ...spacingSx, ...paddingSx, ...sx }, ...props, children });
|
69
|
-
};
|
70
|
-
|
71
|
-
// src/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.tsx
|
72
|
-
var import_material4 = require("@mui/material");
|
73
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
74
|
-
var SubNavListItemsCollapse = ({ collapse, openSubNav, children, ...props }) => {
|
75
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material4.Collapse, { in: collapse == true ? false : openSubNav, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material4.List, { children }) });
|
76
|
-
};
|
77
|
-
|
78
|
-
// src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx
|
79
|
-
var import_material5 = require("@mui/material");
|
80
|
-
var import_vsc2 = require("react-icons/vsc/index.js");
|
81
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
82
|
-
var SubNavToggleIconButton = ({ setOpenSubNav, openSubNav }) => {
|
83
|
-
const theme = (0, import_material5.useTheme)();
|
84
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
85
|
-
import_material5.IconButton,
|
86
|
-
{
|
87
|
-
onClick: (event) => {
|
88
|
-
event.stopPropagation();
|
89
|
-
setOpenSubNav == null ? void 0 : setOpenSubNav(!openSubNav);
|
90
|
-
},
|
91
|
-
sx: { marginRight: theme.spacing(0.5) },
|
92
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_vsc2.VscChevronDown, { fontSize: "16px" })
|
93
|
-
}
|
94
|
-
);
|
95
|
-
};
|
96
|
-
|
97
|
-
// src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx
|
98
|
-
var import_jsx_runtime6 = require("react/jsx-runtime");
|
99
|
-
var MenuListItemContainer = ({
|
100
|
-
style,
|
101
|
-
icon,
|
102
|
-
iconMenuTextSpacing,
|
103
|
-
iconOnly,
|
104
|
-
onButtonClick,
|
105
|
-
primary,
|
106
|
-
subNavListItems,
|
107
|
-
sx,
|
108
|
-
tooltip,
|
109
|
-
to,
|
110
|
-
...props
|
111
|
-
}) => {
|
112
|
-
const { dense } = props;
|
113
|
-
const theme = (0, import_material6.useTheme)();
|
114
|
-
const { collapse } = useCollapsible();
|
115
|
-
const [openSubNav, setOpenSubNav] = (0, import_react.useState)(false);
|
116
|
-
const [hovered, setHovered] = (0, import_react.useState)(false);
|
117
|
-
const resolvedIconMenuTextSpacing = iconMenuTextSpacing ? iconMenuTextSpacing : theme.spacing(1);
|
118
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
119
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
120
|
-
MenuListItem,
|
121
|
-
{
|
122
|
-
disableGutters: true,
|
123
|
-
iconOnly,
|
124
|
-
onClick: onButtonClick,
|
125
|
-
dense,
|
126
|
-
sx: { justifyContent: "space-between", ...sx },
|
127
|
-
style: { whiteSpace: "nowrap", ...style },
|
128
|
-
...props,
|
129
|
-
children: [
|
130
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
131
|
-
import_react_link.LinkEx,
|
132
|
-
{
|
133
|
-
onMouseEnter: () => setHovered(true),
|
134
|
-
onMouseLeave: () => setHovered(false),
|
135
|
-
color: "inherit",
|
136
|
-
to,
|
137
|
-
sx: {
|
138
|
-
"& :hover": {
|
139
|
-
cursor: "pointer",
|
140
|
-
textDecoration: "underline"
|
141
|
-
}
|
142
|
-
},
|
143
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_flexbox2.FlexRow, { children: [
|
144
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(MenuIcon, { icon, paddingRight: resolvedIconMenuTextSpacing, color: hovered ? "secondary" : "inherit" }),
|
145
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material6.ListItemText, { primary })
|
146
|
-
] })
|
147
|
-
}
|
148
|
-
),
|
149
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_flexbox2.FlexRow, { style: { marginLeft: theme.spacing(1) }, children: [
|
150
|
-
subNavListItems ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SubNavToggleIconButton, { setOpenSubNav, openSubNav }) : null,
|
151
|
-
tooltip ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ListItemTooltip, { title: tooltip }) : null
|
152
|
-
] })
|
153
|
-
]
|
154
|
-
}
|
155
|
-
),
|
156
|
-
subNavListItems ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SubNavListItemsCollapse, { openSubNav, collapse, children: subNavListItems == null ? void 0 : subNavListItems.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(MenuListItemContainer, { dense, sx: { pl: theme.spacing(1) }, ...item }, index)) }) : null
|
157
|
-
] });
|
158
|
-
};
|
159
|
-
|
160
|
-
// src/components/SiteMenu/Menu.tsx
|
161
|
-
var import_jsx_runtime7 = require("react/jsx-runtime");
|
162
|
-
var SiteMenu = ({ children, onMenuToggle, side = "right", ...props }) => {
|
163
|
-
const [open, setOpen] = (0, import_react2.useState)(false);
|
164
|
-
(0, import_react2.useEffect)(() => {
|
165
|
-
onMenuToggle == null ? void 0 : onMenuToggle(open);
|
166
|
-
}, [onMenuToggle, open]);
|
167
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_react_flexbox3.FlexRow, { alignItems: "stretch", ...props, children: [
|
168
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
169
|
-
import_material7.IconButton,
|
170
|
-
{
|
171
|
-
size: "small",
|
172
|
-
color: "inherit",
|
173
|
-
onClick: () => {
|
174
|
-
setOpen(!open);
|
175
|
-
},
|
176
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icons_material.Menu, { fontSize: "large" })
|
177
|
-
}
|
178
|
-
),
|
179
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
180
|
-
import_material7.SwipeableDrawer,
|
181
|
-
{
|
182
|
-
anchor: side,
|
183
|
-
open,
|
184
|
-
onClick: () => setOpen(false),
|
185
|
-
onKeyDown: () => setOpen(false),
|
186
|
-
onClose: () => setOpen(false),
|
187
|
-
onOpen: () => setOpen(true),
|
188
|
-
children: children ?? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material7.List, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(MenuListItemContainer, { primary: "Settings", icon: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icons_material.Settings, {}), to: "/settings" }) })
|
189
|
-
}
|
190
|
-
)
|
191
|
-
] });
|
192
|
-
};
|
193
|
-
// Annotate the CommonJS export names for ESM import in node:
|
194
|
-
0 && (module.exports = {
|
195
|
-
SiteMenu
|
196
|
-
});
|
197
|
-
//# sourceMappingURL=Menu.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/SiteMenu/Menu.tsx","../../../../src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx","../../../../src/contexts/Collapsible/context.ts","../../../../src/contexts/Collapsible/use.tsx","../../../../src/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.tsx","../../../../src/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.tsx","../../../../src/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.tsx","../../../../src/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.tsx","../../../../src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx"],"sourcesContent":["import { Menu as MenuIcon, Settings as SettingsIcon } from '@mui/icons-material'\nimport { IconButton, List, SwipeableDrawer } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { useEffect, useState } from 'react'\n\nimport { MenuListItemContainer } from './MenuListItem'\n\nexport interface SiteMenuProps extends FlexBoxProps {\n hideSettingsMenuItem?: boolean\n onMenuToggle?: (state?: boolean) => void\n side?: 'left' | 'right' | 'top' | 'bottom'\n}\n\nexport const SiteMenu: React.FC<SiteMenuProps> = ({ children, onMenuToggle, side = 'right', ...props }) => {\n const [open, setOpen] = useState(false)\n\n useEffect(() => {\n onMenuToggle?.(open)\n }, [onMenuToggle, open])\n\n return (\n <FlexRow alignItems=\"stretch\" {...props}>\n <IconButton\n size=\"small\"\n color=\"inherit\"\n onClick={() => {\n setOpen(!open)\n }}\n >\n <MenuIcon fontSize=\"large\" />\n </IconButton>\n <SwipeableDrawer\n anchor={side}\n open={open}\n onClick={() => setOpen(false)}\n onKeyDown={() => setOpen(false)}\n onClose={() => setOpen(false)}\n onOpen={() => setOpen(true)}\n >\n {children ?? (\n <List>\n <MenuListItemContainer primary=\"Settings\" icon={<SettingsIcon />} to=\"/settings\" />\n </List>\n )}\n </SwipeableDrawer>\n </FlexRow>\n )\n}\n","import { ListItemProps, ListItemText, useTheme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { LinkEx } from '@xylabs/react-link'\nimport { useState } from 'react'\n\nimport { useCollapsible } from '../../../contexts'\nimport { MenuListItemBase, NavListItemProps } from '../lib'\nimport { ListItemTooltip, MenuIcon, MenuListItem } from './list-item-components'\nimport { SubNavListItemsCollapse, SubNavToggleIconButton } from './sub-nav'\n\nexport interface MenuListItemProps extends NavListItemProps, MenuListItemBase, ListItemProps {\n iconMenuTextSpacing?: string\n iconOnly?: boolean\n subNavListItems?: NavListItemProps[]\n subNavOpen?: boolean\n}\n\nexport const MenuListItemContainer: React.FC<MenuListItemProps> = ({\n style,\n icon,\n iconMenuTextSpacing,\n iconOnly,\n onButtonClick,\n primary,\n subNavListItems,\n sx,\n tooltip,\n to,\n ...props\n}) => {\n const { dense } = props\n const theme = useTheme()\n const { collapse } = useCollapsible()\n const [openSubNav, setOpenSubNav] = useState(false)\n const [hovered, setHovered] = useState(false)\n const resolvedIconMenuTextSpacing = iconMenuTextSpacing ? iconMenuTextSpacing : theme.spacing(1)\n\n return (\n <>\n <MenuListItem\n disableGutters\n iconOnly={iconOnly}\n onClick={onButtonClick}\n dense={dense}\n sx={{ justifyContent: 'space-between', ...sx }}\n style={{ whiteSpace: 'nowrap', ...style }}\n {...props}\n >\n <LinkEx\n onMouseEnter={() => setHovered(true)}\n onMouseLeave={() => setHovered(false)}\n color=\"inherit\"\n to={to}\n sx={{\n '& :hover': {\n cursor: 'pointer',\n textDecoration: 'underline',\n },\n }}\n >\n <FlexRow>\n <MenuIcon icon={icon} paddingRight={resolvedIconMenuTextSpacing} color={hovered ? 'secondary' : 'inherit'} />\n <ListItemText primary={primary} />\n </FlexRow>\n </LinkEx>\n <FlexRow style={{ marginLeft: theme.spacing(1) }}>\n {subNavListItems ? <SubNavToggleIconButton setOpenSubNav={setOpenSubNav} openSubNav={openSubNav} /> : null}\n {tooltip ? <ListItemTooltip title={tooltip} /> : null}\n </FlexRow>\n </MenuListItem>\n {subNavListItems ? (\n <SubNavListItemsCollapse openSubNav={openSubNav} collapse={collapse}>\n {subNavListItems?.map((item, index) => <MenuListItemContainer dense={dense} sx={{ pl: theme.spacing(1) }} key={index} {...item} />)}\n </SubNavListItemsCollapse>\n ) : null}\n </>\n )\n}\n","import { 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 { Tooltip, TooltipProps } from '@mui/material'\nimport { FlexCol } from '@xylabs/react-flexbox'\n// eslint-disable-next-line import/no-internal-modules\nimport { VscInfo } from 'react-icons/vsc/index.js'\n\nexport interface ListItemTooltipProps extends Omit<TooltipProps, 'children'> {\n title: string\n}\n\nexport const ListItemTooltip: React.FC<ListItemTooltipProps> = ({ title, ...props }) => {\n return (\n <Tooltip title={title} placement=\"right\" {...props}>\n {/* Needs div so it can work, the hovering doesn't work with a FlexCol */}\n <div>\n <FlexCol justifyContent=\"center\">\n <VscInfo color=\"grey\" />\n </FlexCol>\n </div>\n </Tooltip>\n )\n}\n","import { Typography, TypographyProps } from '@mui/material'\nimport { ReactNode } from 'react'\n\nexport interface MenuIconProps extends TypographyProps {\n icon?: ReactNode\n}\n\nexport const MenuIcon: React.FC<MenuIconProps> = ({ icon, ...props }) => {\n return (\n <Typography display=\"flex\" {...props}>\n {icon}\n </Typography>\n )\n}\n","import { ListItem, ListItemProps } from '@mui/material'\n\nimport { MenuListItemBase } from '../../lib'\n\nexport interface ListItemExProps extends MenuListItemBase, ListItemProps {}\n\nexport const MenuListItem: React.FC<ListItemExProps> = ({ iconOnly, collapseEnd, sx, children, dense, ...props }) => {\n const listItemSx = iconOnly ? { borderRadius: '50%', display: 'inline-flex', flexGrow: 0, width: 'auto' } : { width: '100%' }\n // wait till collapseEnds to remove the spacing between items\n const spacingSx = collapseEnd ? { columnGap: 0 } : { columnGap: 1.5 }\n // adjusts to the paddingY value which does NOT scale along the theme.spacing\n const paddingSx = dense ? { px: '8px' } : { px: '12px' }\n return (\n <ListItem sx={{ ...listItemSx, ...spacingSx, ...paddingSx, ...sx }} {...props}>\n {children}\n </ListItem>\n )\n}\n","import { Collapse, CollapseProps, List } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { NavListItemProps } from '../../lib'\n\nexport interface SubNavListItemsCollapseProps extends WithChildren, CollapseProps {\n collapse?: boolean\n openSubNav?: boolean\n subNavListItems?: NavListItemProps[]\n}\n\nexport const SubNavListItemsCollapse: React.FC<SubNavListItemsCollapseProps> = ({ collapse, openSubNav, children, ...props }) => {\n return (\n <Collapse in={collapse == true ? false : openSubNav} {...props}>\n <List>{children}</List>\n </Collapse>\n )\n}\n","import { IconButton, IconButtonProps, useTheme } from '@mui/material'\nimport { Dispatch, SetStateAction, SyntheticEvent } from 'react'\n// eslint-disable-next-line import/no-internal-modules\nimport { VscChevronDown } from 'react-icons/vsc/index.js'\n\nexport interface SubNavToggleIconButtonProps extends IconButtonProps {\n openSubNav?: boolean\n setOpenSubNav?: Dispatch<SetStateAction<boolean>>\n}\n\nexport const SubNavToggleIconButton: React.FC<SubNavToggleIconButtonProps> = ({ setOpenSubNav, openSubNav }) => {\n const theme = useTheme()\n return (\n <IconButton\n onClick={(event: SyntheticEvent) => {\n event.stopPropagation()\n setOpenSubNav?.(!openSubNav)\n }}\n sx={{ marginRight: theme.spacing(0.5) }}\n >\n <VscChevronDown fontSize=\"16px\" />\n </IconButton>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAA2D;AAC3D,IAAAA,mBAAkD;AAClD,IAAAC,wBAAsC;AACtC,IAAAC,gBAAoC;;;ACHpC,IAAAC,mBAAsD;AACtD,IAAAC,wBAAwB;AACxB,wBAAuB;AACvB,mBAAyB;;;ACHzB,0BAAgC;AAIzB,IAAM,yBAAqB,qCAAkC;;;ACJpE,IAAAC,uBAA6B;AAItB,IAAM,iBAAiB,UAAM,mCAAa,oBAAoB,eAAe,KAAK;;;ACJzF,sBAAsC;AACtC,2BAAwB;AAExB,iBAAwB;AAYd;AANH,IAAM,kBAAkD,CAAC,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ACF;AAEJ;","names":["import_material","import_react_flexbox","import_react","import_material","import_react_flexbox","import_react_shared","import_material","import_jsx_runtime","import_material","import_jsx_runtime","import_material","import_jsx_runtime","import_material","import_vsc","import_jsx_runtime","import_jsx_runtime","import_jsx_runtime","MenuIcon","SettingsIcon"]}
|