@xyo-network/react-appbar 2.64.9 → 2.65.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/docs.json +0 -96215
- 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/AppBar/Application.tsx","../../../../src/components/Toolbar/Context/ContextToolbar.tsx","../../../../src/components/Toolbar/Context/LogoLinkEx.tsx","../../../../src/components/Toolbar/Context/Logo.tsx","../../../../src/components/Toolbar/System/SystemToolbar.tsx","../../../../src/contexts/Collapsible/context.ts","../../../../src/contexts/Collapsible/use.tsx","../../../../src/components/SiteMenu/Menu.tsx","../../../../src/components/SiteMenu/MenuListItem/MenuListItemContainer.tsx","../../../../src/components/SiteMenu/MenuListItem/list-item-components/ListItemTooltip.tsx","../../../../src/components/SiteMenu/MenuListItem/list-item-components/MenuIcon.tsx","../../../../src/components/SiteMenu/MenuListItem/list-item-components/MenuListItem.tsx","../../../../src/components/SiteMenu/MenuListItem/sub-nav/SubNavListItemCollapse.tsx","../../../../src/components/SiteMenu/MenuListItem/sub-nav/SubNavToggleIconButton.tsx"],"sourcesContent":["import { ToolbarProps } from '@mui/material'\nimport { AppBarEx, AppBarExProps } from '@xylabs/react-appbar'\nimport { ReactElement } from 'react'\n\nimport { ContextToolbar, SystemToolbar } from '../Toolbar'\n\nexport interface ApplicationAppBarProps extends AppBarExProps {\n contextToolbar?: ReactElement<ToolbarProps>\n responsive?: boolean\n systemToolbar?: ReactElement<ToolbarProps>\n}\n\nexport const ApplicationAppBar: React.FC<ApplicationAppBarProps> = ({ systemToolbar, contextToolbar, responsive = true, ...props }) => {\n return (\n <AppBarEx\n systemToolbar={systemToolbar ?? <SystemToolbar />}\n contextToolbar={contextToolbar ?? <ContextToolbar />}\n position=\"sticky\"\n responsive={responsive}\n {...props}\n />\n )\n}\n","import { Toolbar, ToolbarProps } from '@mui/material'\nimport { To } from 'react-router-dom'\n\nimport { LogoLinkEx } from './LogoLinkEx'\n\nexport interface ContextToolbarProps extends ToolbarProps {\n logoTo?: To\n version?: boolean\n}\n\nexport const ContextToolbar: React.FC<ContextToolbarProps> = ({ logoTo = '/', version = false, ...props }) => {\n return (\n <Toolbar {...props}>\n <LogoLinkEx version={version} to={logoTo} />\n </Toolbar>\n )\n}\n","import { Typography, useTheme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { LinkEx, LinkExProps } from '@xylabs/react-link'\n\nimport { Logo } from './Logo'\n\nexport interface LogoLinkExProps extends LinkExProps {\n version?: boolean | string\n}\n\nexport const LogoLinkEx: React.FC<LogoLinkExProps> = ({ to = '/', version = false, ...props }) => {\n const theme = useTheme()\n return (\n <LinkEx to={to} {...props}>\n <FlexRow paddingX=\"4px\">\n <Logo height=\"40\" width=\"43\" />\n {version ? (\n <Typography\n position=\"absolute\"\n borderRadius={1}\n right={6}\n color={theme.palette.getContrastText(theme.palette.text.primary)}\n bottom={0}\n bgcolor={theme.palette.text.primary}\n paddingX=\"2px\"\n lineHeight={1}\n variant=\"caption\"\n border={`1px ${theme.palette.getContrastText(theme.palette.primary.main)} solid`}\n >\n {typeof version === 'string' ? version : '2.1'}\n </Typography>\n ) : null}\n </FlexRow>\n </LinkEx>\n )\n}\n","import { useTheme } from '@mui/material'\n\nexport const Logo: React.FC<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>> = (props) => {\n const theme = useTheme()\n const logoUrl =\n theme.palette.mode === 'dark'\n ? 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'\n : 'https://cdn.xy.company/img/brand/XYO/XYO_icon_white.svg'\n return <img src={logoUrl} {...props} />\n}\n","import { Paper, Toolbar, ToolbarProps } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { DarkModeIconButton } from '@xyo-network/react-app-settings'\nimport { NetworkSelectEx, NetworkSelectExProps } from '@xyo-network/react-network'\nimport { ReactNode } from 'react'\n\nimport { SiteMenu, SiteMenuProps } from '../../SiteMenu'\n\nexport interface SystemToolbarProps extends ToolbarProps {\n darkModeButton?: boolean\n developerMode?: boolean\n hideNetworkSelect?: boolean\n menuItems?: ReactNode\n networkSelectProps?: NetworkSelectExProps\n onMenuToggle?: SiteMenuProps['onMenuToggle']\n precedingChildren?: ReactNode\n}\n\nexport const SystemToolbar: React.FC<SystemToolbarProps> = ({\n children,\n darkModeButton = false,\n hideNetworkSelect,\n menuItems,\n networkSelectProps,\n onMenuToggle,\n precedingChildren,\n ...props\n}) => {\n return (\n <Toolbar {...props}>\n {precedingChildren}\n {hideNetworkSelect ? null : (\n <FlexRow marginX={0.5}>\n <Paper variant=\"elevation\">\n <NetworkSelectEx fullWidth {...networkSelectProps} />\n </Paper>\n </FlexRow>\n )}\n {children}\n {darkModeButton ? <DarkModeIconButton color=\"inherit\" /> : null}\n {menuItems ? <SiteMenu onMenuToggle={onMenuToggle}>{menuItems}</SiteMenu> : null}\n </Toolbar>\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 { Menu as MenuIcon, Settings as SettingsIcon } from '@mui/icons-material'\nimport { IconButton, List, SwipeableDrawer } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { useEffect, useState } from 'react'\n\nimport { MenuListItemContainer } from './MenuListItem'\n\nexport interface SiteMenuProps extends FlexBoxProps {\n hideSettingsMenuItem?: boolean\n onMenuToggle?: (state?: boolean) => void\n side?: 'left' | 'right' | 'top' | 'bottom'\n}\n\nexport const SiteMenu: React.FC<SiteMenuProps> = ({ children, onMenuToggle, side = 'right', ...props }) => {\n const [open, setOpen] = useState(false)\n\n useEffect(() => {\n onMenuToggle?.(open)\n }, [onMenuToggle, open])\n\n return (\n <FlexRow alignItems=\"stretch\" {...props}>\n <IconButton\n size=\"small\"\n color=\"inherit\"\n onClick={() => {\n setOpen(!open)\n }}\n >\n <MenuIcon fontSize=\"large\" />\n </IconButton>\n <SwipeableDrawer\n anchor={side}\n open={open}\n onClick={() => setOpen(false)}\n onKeyDown={() => setOpen(false)}\n onClose={() => setOpen(false)}\n onOpen={() => setOpen(true)}\n >\n {children ?? (\n <List>\n <MenuListItemContainer primary=\"Settings\" icon={<SettingsIcon />} to=\"/settings\" />\n </List>\n )}\n </SwipeableDrawer>\n </FlexRow>\n )\n}\n","import { ListItemProps, ListItemText, useTheme } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { LinkEx } from '@xylabs/react-link'\nimport { useState } from 'react'\n\nimport { useCollapsible } from '../../../contexts'\nimport { MenuListItemBase, NavListItemProps } from '../lib'\nimport { ListItemTooltip, MenuIcon, MenuListItem } from './list-item-components'\nimport { SubNavListItemsCollapse, SubNavToggleIconButton } from './sub-nav'\n\nexport interface MenuListItemProps extends NavListItemProps, MenuListItemBase, ListItemProps {\n iconMenuTextSpacing?: string\n iconOnly?: boolean\n subNavListItems?: NavListItemProps[]\n subNavOpen?: boolean\n}\n\nexport const MenuListItemContainer: React.FC<MenuListItemProps> = ({\n style,\n icon,\n iconMenuTextSpacing,\n iconOnly,\n onButtonClick,\n primary,\n subNavListItems,\n sx,\n tooltip,\n to,\n ...props\n}) => {\n const { dense } = props\n const theme = useTheme()\n const { collapse } = useCollapsible()\n const [openSubNav, setOpenSubNav] = useState(false)\n const [hovered, setHovered] = useState(false)\n const resolvedIconMenuTextSpacing = iconMenuTextSpacing ? iconMenuTextSpacing : theme.spacing(1)\n\n return (\n <>\n <MenuListItem\n disableGutters\n iconOnly={iconOnly}\n onClick={onButtonClick}\n dense={dense}\n sx={{ justifyContent: 'space-between', ...sx }}\n style={{ whiteSpace: 'nowrap', ...style }}\n {...props}\n >\n <LinkEx\n onMouseEnter={() => setHovered(true)}\n onMouseLeave={() => setHovered(false)}\n color=\"inherit\"\n to={to}\n sx={{\n '& :hover': {\n cursor: 'pointer',\n textDecoration: 'underline',\n },\n }}\n >\n <FlexRow>\n <MenuIcon icon={icon} paddingRight={resolvedIconMenuTextSpacing} color={hovered ? 'secondary' : 'inherit'} />\n <ListItemText primary={primary} />\n </FlexRow>\n </LinkEx>\n <FlexRow style={{ marginLeft: theme.spacing(1) }}>\n {subNavListItems ? <SubNavToggleIconButton setOpenSubNav={setOpenSubNav} openSubNav={openSubNav} /> : null}\n {tooltip ? <ListItemTooltip title={tooltip} /> : null}\n </FlexRow>\n </MenuListItem>\n {subNavListItems ? (\n <SubNavListItemsCollapse openSubNav={openSubNav} collapse={collapse}>\n {subNavListItems?.map((item, index) => <MenuListItemContainer dense={dense} sx={{ pl: theme.spacing(1) }} key={index} {...item} />)}\n </SubNavListItemsCollapse>\n ) : null}\n </>\n )\n}\n","import { Tooltip, TooltipProps } from '@mui/material'\nimport { FlexCol } from '@xylabs/react-flexbox'\n// eslint-disable-next-line import/no-internal-modules\nimport { VscInfo } from 'react-icons/vsc/index.js'\n\nexport interface ListItemTooltipProps extends Omit<TooltipProps, 'children'> {\n title: string\n}\n\nexport const ListItemTooltip: React.FC<ListItemTooltipProps> = ({ title, ...props }) => {\n return (\n <Tooltip title={title} placement=\"right\" {...props}>\n {/* Needs div so it can work, the hovering doesn't work with a FlexCol */}\n <div>\n <FlexCol justifyContent=\"center\">\n <VscInfo color=\"grey\" />\n </FlexCol>\n </div>\n </Tooltip>\n )\n}\n","import { Typography, TypographyProps } from '@mui/material'\nimport { ReactNode } from 'react'\n\nexport interface MenuIconProps extends TypographyProps {\n icon?: ReactNode\n}\n\nexport const MenuIcon: React.FC<MenuIconProps> = ({ icon, ...props }) => {\n return (\n <Typography display=\"flex\" {...props}>\n {icon}\n </Typography>\n )\n}\n","import { ListItem, ListItemProps } from '@mui/material'\n\nimport { MenuListItemBase } from '../../lib'\n\nexport interface ListItemExProps extends MenuListItemBase, ListItemProps {}\n\nexport const MenuListItem: React.FC<ListItemExProps> = ({ iconOnly, collapseEnd, sx, children, dense, ...props }) => {\n const listItemSx = iconOnly ? { borderRadius: '50%', display: 'inline-flex', flexGrow: 0, width: 'auto' } : { width: '100%' }\n // wait till collapseEnds to remove the spacing between items\n const spacingSx = collapseEnd ? { columnGap: 0 } : { columnGap: 1.5 }\n // adjusts to the paddingY value which does NOT scale along the theme.spacing\n const paddingSx = dense ? { px: '8px' } : { px: '12px' }\n return (\n <ListItem sx={{ ...listItemSx, ...spacingSx, ...paddingSx, ...sx }} {...props}>\n {children}\n </ListItem>\n )\n}\n","import { Collapse, CollapseProps, List } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\n\nimport { NavListItemProps } from '../../lib'\n\nexport interface SubNavListItemsCollapseProps extends WithChildren, CollapseProps {\n collapse?: boolean\n openSubNav?: boolean\n subNavListItems?: NavListItemProps[]\n}\n\nexport const SubNavListItemsCollapse: React.FC<SubNavListItemsCollapseProps> = ({ collapse, openSubNav, children, ...props }) => {\n return (\n <Collapse in={collapse == true ? false : openSubNav} {...props}>\n <List>{children}</List>\n </Collapse>\n )\n}\n","import { IconButton, IconButtonProps, useTheme } from '@mui/material'\nimport { Dispatch, SetStateAction, SyntheticEvent } from 'react'\n// eslint-disable-next-line import/no-internal-modules\nimport { VscChevronDown } from 'react-icons/vsc/index.js'\n\nexport interface SubNavToggleIconButtonProps extends IconButtonProps {\n openSubNav?: boolean\n setOpenSubNav?: Dispatch<SetStateAction<boolean>>\n}\n\nexport const SubNavToggleIconButton: React.FC<SubNavToggleIconButtonProps> = ({ setOpenSubNav, openSubNav }) => {\n const theme = useTheme()\n return (\n <IconButton\n onClick={(event: SyntheticEvent) => {\n event.stopPropagation()\n setOpenSubNav?.(!openSubNav)\n }}\n sx={{ marginRight: theme.spacing(0.5) }}\n >\n <VscChevronDown fontSize=\"16px\" />\n </IconButton>\n )\n}\n"],"mappings":";AACA,SAAS,gBAA+B;;;ACDxC,SAAS,eAA6B;;;ACAtC,SAAS,YAAY,YAAAA,iBAAgB;AACrC,SAAS,eAAe;AACxB,SAAS,cAA2B;;;ACFpC,SAAS,gBAA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MAAC,YAAS,cAA6B,qBAAU,IAAc;AAAA,KAC9E;AAEJ;;;AJ5BsC,gBAAAI,aAAA;AAH/B,IAAM,oBAAsD,CAAC,EAAE,eAAe,gBAAgB,aAAa,MAAM,GAAG,MAAM,MAAM;AACrI,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACC,eAAe,iBAAiB,gBAAAA,MAAC,iBAAc;AAAA,MAC/C,gBAAgB,kBAAkB,gBAAAA,MAAC,kBAAe;AAAA,MAClD,UAAS;AAAA,MACT;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;","names":["useTheme","jsx","useTheme","jsx","Toolbar","FlexRow","MenuIcon","IconButton","List","FlexRow","useState","useTheme","FlexRow","LinkEx","jsx","Typography","jsx","jsx","jsx","useTheme","jsx","jsx","jsxs","useTheme","LinkEx","FlexRow","jsx","jsxs","useState","FlexRow","IconButton","MenuIcon","List","jsx","jsxs","Toolbar","FlexRow","jsx"]}
|
@@ -1,61 +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/CollapsibleDrawer/CollapseToggle.tsx
|
21
|
-
var CollapseToggle_exports = {};
|
22
|
-
__export(CollapseToggle_exports, {
|
23
|
-
CollapseToggleFlex: () => CollapseToggleFlex
|
24
|
-
});
|
25
|
-
module.exports = __toCommonJS(CollapseToggle_exports);
|
26
|
-
var import_material = require("@mui/material");
|
27
|
-
var import_react_flexbox = require("@xylabs/react-flexbox");
|
28
|
-
var import_react = require("react");
|
29
|
-
var import_vsc = require("react-icons/vsc/index.js");
|
30
|
-
|
31
|
-
// src/contexts/Collapsible/context.ts
|
32
|
-
var import_react_shared = require("@xyo-network/react-shared");
|
33
|
-
var CollapsibleContext = (0, import_react_shared.createContextEx)();
|
34
|
-
|
35
|
-
// src/contexts/Collapsible/use.tsx
|
36
|
-
var import_react_shared2 = require("@xyo-network/react-shared");
|
37
|
-
var useCollapsible = () => (0, import_react_shared2.useContextEx)(CollapsibleContext, "Collapsible", false);
|
38
|
-
|
39
|
-
// src/components/CollapsibleDrawer/CollapseToggle.tsx
|
40
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
41
|
-
var CollapseToggleFlex = (props) => {
|
42
|
-
const { collapse, setCollapse, setCollapseEnd } = useCollapsible();
|
43
|
-
const [hover, setHover] = (0, import_react.useState)(false);
|
44
|
-
const theme = (0, import_material.useTheme)();
|
45
|
-
const handleCollapseToggle = () => {
|
46
|
-
setCollapse?.(!collapse);
|
47
|
-
setCollapseEnd?.((previous) => previous ? false : previous);
|
48
|
-
};
|
49
|
-
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)(
|
50
|
-
import_material.Icon,
|
51
|
-
{
|
52
|
-
onClick: handleCollapseToggle,
|
53
|
-
onMouseEnter: () => setHover(true),
|
54
|
-
onMouseLeave: () => setHover(false),
|
55
|
-
fontSize: "large",
|
56
|
-
sx: { color: hover ? theme.palette.secondary.main : "inherit", cursor: "pointer" },
|
57
|
-
children: !collapse ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscArrowSmallLeft, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_vsc.VscArrowSmallRight, {})
|
58
|
-
}
|
59
|
-
) });
|
60
|
-
};
|
61
|
-
//# sourceMappingURL=CollapseToggle.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/CollapsibleDrawer/CollapseToggle.tsx","../../../../src/contexts/Collapsible/context.ts","../../../../src/contexts/Collapsible/use.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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,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;","names":["import_react_shared"]}
|
@@ -1,40 +0,0 @@
|
|
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
|
-
export {
|
38
|
-
CollapseToggleFlex
|
39
|
-
};
|
40
|
-
//# sourceMappingURL=CollapseToggle.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/CollapsibleDrawer/CollapseToggle.tsx","../../../../src/contexts/Collapsible/context.ts","../../../../src/contexts/Collapsible/use.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"],"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;","names":[]}
|
@@ -1,66 +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/CollapsibleDrawer/CollapsibleDrawer.tsx
|
21
|
-
var CollapsibleDrawer_exports = {};
|
22
|
-
__export(CollapsibleDrawer_exports, {
|
23
|
-
CollapsibleDrawer: () => CollapsibleDrawer
|
24
|
-
});
|
25
|
-
module.exports = __toCommonJS(CollapsibleDrawer_exports);
|
26
|
-
var import_material = require("@mui/material");
|
27
|
-
|
28
|
-
// src/contexts/Collapsible/context.ts
|
29
|
-
var import_react_shared = require("@xyo-network/react-shared");
|
30
|
-
var CollapsibleContext = (0, import_react_shared.createContextEx)();
|
31
|
-
|
32
|
-
// src/contexts/Collapsible/use.tsx
|
33
|
-
var import_react_shared2 = require("@xyo-network/react-shared");
|
34
|
-
var useCollapsible = () => (0, import_react_shared2.useContextEx)(CollapsibleContext, "Collapsible", false);
|
35
|
-
|
36
|
-
// src/components/CollapsibleDrawer/CollapsibleDrawer.tsx
|
37
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
38
|
-
var CollapsibleDrawer = ({ children, sx, ...props }) => {
|
39
|
-
const { collapse, setCollapseEnd } = useCollapsible();
|
40
|
-
const theme = (0, import_material.useTheme)();
|
41
|
-
const collapsedSize = props.collapsedSize ?? theme.spacing(5);
|
42
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
43
|
-
CollapsibleFlexInner,
|
44
|
-
{
|
45
|
-
in: !collapse,
|
46
|
-
orientation: "horizontal",
|
47
|
-
collapsedSize,
|
48
|
-
onExited: () => setCollapseEnd?.(true),
|
49
|
-
sx: {
|
50
|
-
alignItems: "start",
|
51
|
-
display: "flex",
|
52
|
-
height: "100%",
|
53
|
-
...sx
|
54
|
-
},
|
55
|
-
...props,
|
56
|
-
children
|
57
|
-
}
|
58
|
-
);
|
59
|
-
};
|
60
|
-
var CollapsibleFlexInner = (0, import_material.styled)(import_material.Collapse)(() => ({
|
61
|
-
"& .MuiCollapse-wrapperInner": {
|
62
|
-
display: "flex",
|
63
|
-
flexDirection: "column"
|
64
|
-
}
|
65
|
-
}));
|
66
|
-
//# sourceMappingURL=CollapsibleDrawer.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/CollapsibleDrawer/CollapsibleDrawer.tsx","../../../../src/contexts/Collapsible/context.ts","../../../../src/contexts/Collapsible/use.tsx"],"sourcesContent":["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","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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAA0D;;;ACA1D,0BAAgC;AAIzB,IAAM,yBAAqB,qCAAkC;;;ACJpE,IAAAA,uBAA6B;AAItB,IAAM,iBAAiB,UAAM,mCAAa,oBAAoB,eAAe,KAAK;;;AFQrF;AAPG,IAAM,oBAA2D,CAAC,EAAE,UAAU,IAAI,GAAG,MAAM,MAAM;AACtG,QAAM,EAAE,UAAU,eAAe,IAAI,eAAe;AACpD,QAAM,YAAQ,0BAAS;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,wBAAO,wBAAQ,EAAE,OAAO;AAAA,EACnD,+BAA+B;AAAA,IAC7B,SAAS;AAAA,IACT,eAAe;AAAA,EACjB;AACF,EAAE;","names":["import_react_shared"]}
|
@@ -1,45 +0,0 @@
|
|
1
|
-
// src/components/CollapsibleDrawer/CollapsibleDrawer.tsx
|
2
|
-
import { Collapse, styled, useTheme } from "@mui/material";
|
3
|
-
|
4
|
-
// src/contexts/Collapsible/context.ts
|
5
|
-
import { createContextEx } from "@xyo-network/react-shared";
|
6
|
-
var CollapsibleContext = createContextEx();
|
7
|
-
|
8
|
-
// src/contexts/Collapsible/use.tsx
|
9
|
-
import { useContextEx } from "@xyo-network/react-shared";
|
10
|
-
var useCollapsible = () => useContextEx(CollapsibleContext, "Collapsible", false);
|
11
|
-
|
12
|
-
// src/components/CollapsibleDrawer/CollapsibleDrawer.tsx
|
13
|
-
import { jsx } from "react/jsx-runtime";
|
14
|
-
var CollapsibleDrawer = ({ children, sx, ...props }) => {
|
15
|
-
const { collapse, setCollapseEnd } = useCollapsible();
|
16
|
-
const theme = useTheme();
|
17
|
-
const collapsedSize = props.collapsedSize ?? theme.spacing(5);
|
18
|
-
return /* @__PURE__ */ jsx(
|
19
|
-
CollapsibleFlexInner,
|
20
|
-
{
|
21
|
-
in: !collapse,
|
22
|
-
orientation: "horizontal",
|
23
|
-
collapsedSize,
|
24
|
-
onExited: () => setCollapseEnd?.(true),
|
25
|
-
sx: {
|
26
|
-
alignItems: "start",
|
27
|
-
display: "flex",
|
28
|
-
height: "100%",
|
29
|
-
...sx
|
30
|
-
},
|
31
|
-
...props,
|
32
|
-
children
|
33
|
-
}
|
34
|
-
);
|
35
|
-
};
|
36
|
-
var CollapsibleFlexInner = styled(Collapse)(() => ({
|
37
|
-
"& .MuiCollapse-wrapperInner": {
|
38
|
-
display: "flex",
|
39
|
-
flexDirection: "column"
|
40
|
-
}
|
41
|
-
}));
|
42
|
-
export {
|
43
|
-
CollapsibleDrawer
|
44
|
-
};
|
45
|
-
//# sourceMappingURL=CollapsibleDrawer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/CollapsibleDrawer/CollapsibleDrawer.tsx","../../../../src/contexts/Collapsible/context.ts","../../../../src/contexts/Collapsible/use.tsx"],"sourcesContent":["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","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"],"mappings":";AAAA,SAAS,UAAyB,QAAQ,gBAAgB;;;ACA1D,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ACJpE,SAAS,oBAAoB;AAItB,IAAM,iBAAiB,MAAM,aAAa,oBAAoB,eAAe,KAAK;;;AFQrF;AAPG,IAAM,oBAA2D,CAAC,EAAE,UAAU,IAAI,GAAG,MAAM,MAAM;AACtG,QAAM,EAAE,UAAU,eAAe,IAAI,eAAe;AACpD,QAAM,QAAQ,SAAS;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,uBAAuB,OAAO,QAAQ,EAAE,OAAO;AAAA,EACnD,+BAA+B;AAAA,IAC7B,SAAS;AAAA,IACT,eAAe;AAAA,EACjB;AACF,EAAE;","names":[]}
|
@@ -1,96 +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/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
|
@@ -1 +0,0 @@
|
|
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"]}
|
@@ -1,73 +0,0 @@
|
|
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
|
-
};
|
73
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
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"]}
|
@@ -1,92 +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/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
|
@@ -1 +0,0 @@
|
|
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,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