@the-portland-company/shell 0.11.2 → 0.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { useTopBarIconSlotGlyph } from './chunk-VTGRJ4HV.js';
1
+ import { useTopBarIconSlotGlyph, resolveBrandGlyph } from './chunk-2GFWARYP.js';
2
2
  import { extendTheme, IconButton, Tooltip, ChakraProvider, useColorModeValue, Flex, Menu, MenuButton, HStack, Avatar, VStack, Text, Box, Portal, MenuList, MenuItem, MenuDivider, Badge, Link as Link$1, Collapse, Skeleton, Button, useClipboard, Icon, Image, useDisclosure, useToast, Modal, ModalOverlay, ModalContent, ModalHeader, ModalCloseButton, ModalBody, Textarea, ModalFooter } from '@chakra-ui/react';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
4
  import clsx2 from 'clsx';
@@ -2651,16 +2651,8 @@ function AppLayout({
2651
2651
  var TopBarIcon = forwardRef(
2652
2652
  function TopBarIcon2({ slot, fallbackIcon, isSelected, ...rest }, ref) {
2653
2653
  const glyphName = useTopBarIconSlotGlyph(slot);
2654
- const icon = glyphName ? /* @__PURE__ */ jsx(
2655
- BrandIcon,
2656
- {
2657
- name: glyphName,
2658
- style: {
2659
- width: "var(--topbar-icon-size, 20px)",
2660
- height: "var(--topbar-icon-size, 20px)"
2661
- }
2662
- }
2663
- ) : fallbackIcon;
2654
+ const Glyph = resolveBrandGlyph(glyphName);
2655
+ const icon = Glyph ? /* @__PURE__ */ jsx(Glyph, { size: "var(--topbar-icon-size, 20px)" }) : fallbackIcon;
2664
2656
  return /* @__PURE__ */ jsx(
2665
2657
  IconButton,
2666
2658
  {