@kaizen/components 1.38.5 → 1.38.6
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/cjs/Menu/subcomponents/MenuItem/MenuItem.cjs +5 -1
- package/dist/cjs/Menu/subcomponents/MenuItem/MenuItem.cjs.map +1 -1
- package/dist/cjs/TitleBlockZen/TitleBlockZen.cjs +10 -5
- package/dist/cjs/TitleBlockZen/TitleBlockZen.cjs.map +1 -1
- package/dist/cjs/TitleBlockZen/constants.cjs +7 -0
- package/dist/cjs/TitleBlockZen/constants.cjs.map +1 -0
- package/dist/cjs/TitleBlockZen/subcomponents/MainActions.cjs +2 -0
- package/dist/cjs/TitleBlockZen/subcomponents/MainActions.cjs.map +1 -1
- package/dist/cjs/TitleBlockZen/subcomponents/MobileActions.cjs +31 -6
- package/dist/cjs/TitleBlockZen/subcomponents/MobileActions.cjs.map +1 -1
- package/dist/cjs/TitleBlockZen/subcomponents/SecondaryActions.cjs +3 -1
- package/dist/cjs/TitleBlockZen/subcomponents/SecondaryActions.cjs.map +1 -1
- package/dist/cjs/dts/Menu/subcomponents/MenuItem/MenuItem.d.ts +2 -1
- package/dist/cjs/dts/TitleBlockZen/TitleBlockZen.d.ts +1 -1
- package/dist/cjs/dts/TitleBlockZen/constants.d.ts +2 -0
- package/dist/cjs/dts/TitleBlockZen/index.d.ts +1 -0
- package/dist/cjs/dts/TitleBlockZen/subcomponents/MobileActions.d.ts +2 -1
- package/dist/cjs/dts/TitleBlockZen/types.d.ts +2 -0
- package/dist/cjs/index.cjs +3 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.css +3 -3
- package/dist/esm/Menu/subcomponents/MenuItem/MenuItem.mjs +5 -1
- package/dist/esm/Menu/subcomponents/MenuItem/MenuItem.mjs.map +1 -1
- package/dist/esm/TitleBlockZen/TitleBlockZen.mjs +10 -5
- package/dist/esm/TitleBlockZen/TitleBlockZen.mjs.map +1 -1
- package/dist/esm/TitleBlockZen/constants.mjs +4 -0
- package/dist/esm/TitleBlockZen/constants.mjs.map +1 -0
- package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs +2 -0
- package/dist/esm/TitleBlockZen/subcomponents/MainActions.mjs.map +1 -1
- package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs +32 -7
- package/dist/esm/TitleBlockZen/subcomponents/MobileActions.mjs.map +1 -1
- package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs +3 -1
- package/dist/esm/TitleBlockZen/subcomponents/SecondaryActions.mjs.map +1 -1
- package/dist/esm/dts/Menu/subcomponents/MenuItem/MenuItem.d.ts +2 -1
- package/dist/esm/dts/TitleBlockZen/TitleBlockZen.d.ts +1 -1
- package/dist/esm/dts/TitleBlockZen/constants.d.ts +2 -0
- package/dist/esm/dts/TitleBlockZen/index.d.ts +1 -0
- package/dist/esm/dts/TitleBlockZen/subcomponents/MobileActions.d.ts +2 -1
- package/dist/esm/dts/TitleBlockZen/types.d.ts +2 -0
- package/dist/esm/index.css +3 -3
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/index.d.ts +9 -3
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/Menu/subcomponents/MenuItem/MenuItem.tsx +5 -0
- package/src/TitleBlockZen/TitleBlockZen.spec.tsx +41 -0
- package/src/TitleBlockZen/TitleBlockZen.tsx +4 -0
- package/src/TitleBlockZen/constants.ts +3 -0
- package/src/TitleBlockZen/index.ts +1 -0
- package/src/TitleBlockZen/subcomponents/MainActions.tsx +2 -0
- package/src/TitleBlockZen/subcomponents/MobileActions.spec.tsx +87 -0
- package/src/TitleBlockZen/subcomponents/MobileActions.tsx +39 -3
- package/src/TitleBlockZen/subcomponents/SecondaryActions.tsx +2 -0
- package/src/TitleBlockZen/types.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileActions.mjs","sources":["../../../../src/TitleBlockZen/subcomponents/MobileActions.tsx"],"sourcesContent":["import React, { useState } from \"react\"\nimport classnames from \"classnames\"\nimport { FocusOn } from \"react-focus-on\"\nimport { ButtonProps } from \"~components/Button\"\nimport { ChevronDownIcon, ChevronUpIcon } from \"~components/Icon\"\nimport { MenuItem, MenuList, MenuHeading } from \"~components/Menu\"\nimport {\n DefaultActionProps,\n PrimaryActionProps,\n SecondaryActionsProps,\n TitleBlockButtonProps,\n TitleBlockMenuGroup,\n TitleBlockMenuItemProps,\n} from \"../types\"\nimport {\n convertSecondaryActionsToMenuItems,\n isMenuGroupNotButton,\n} from \"../utils\"\nimport { TitleBlockMenuItem } from \"./TitleBlockMenuItem\"\n\nimport styles from \"./MobileActions.module.scss\"\n\nconst menuItemIsLink: (item: TitleBlockMenuItemProps) => boolean = item =>\n \"href\" in item\n\nconst defaultActionIsLink: (action: DefaultActionProps) => boolean = action =>\n \"href\" in action\n\nconst defaultActionIsButton: (action: DefaultActionProps) => boolean = action =>\n (!(\"href\" in action) && \"onClick\" in action) || \"component\" in action\n\nconst filterActions = (\n menuItems: TitleBlockMenuItemProps[],\n filterType: \"link\" | \"action\"\n): TitleBlockMenuItemProps[] =>\n menuItems.filter(item =>\n filterType === \"link\" ? menuItemIsLink(item) : !menuItemIsLink(item)\n )\n\n/** Returns a filtered array of TitleBlockMenuItem based on actionType\n * This is use to sort a selectively render the action into a specifc order\n */\nconst renderPrimaryActionDrawerContent = (\n primaryAction: PrimaryActionProps,\n actionType: \"link\" | \"action\"\n): JSX.Element[] | null => {\n if (!primaryAction) return null\n\n if (isMenuGroupNotButton(primaryAction)) {\n const filteredActions = filterActions(primaryAction.menuItems, actionType)\n return filteredActions.map((item, idx) => {\n const itemType = menuItemIsLink(item) ? \"link\" : \"action\"\n\n return (\n <TitleBlockMenuItem\n {...item}\n key={`title-block-mobile-actions-primary-${itemType}-${idx}`}\n data-automation-id={`title-block-mobile-actions-primary-${itemType}-${idx}`}\n data-testid={`title-block-mobile-actions-primary-${itemType}-${idx}`}\n />\n )\n })\n }\n\n return null\n}\n\nconst renderDefaultLink = (\n defaultAction: DefaultActionProps\n): JSX.Element | undefined => {\n if (!defaultActionIsLink(defaultAction)) return\n if (\"component\" in defaultAction) {\n return (\n <TitleBlockMenuItem\n {...defaultAction}\n key=\"title-block-mobile-actions-default-link\"\n data-automation-id=\"title-block-mobile-actions-default-link\"\n data-testid=\"title-block-mobile-actions-default-link\"\n />\n )\n }\n return (\n <MenuItem\n href={defaultAction.href}\n label={defaultAction.label}\n icon={defaultAction.icon}\n disabled={defaultAction.disabled}\n key=\"title-block-mobile-actions-default-link\"\n data-automation-id=\"title-block-mobile-actions-default-link\"\n data-testid=\"title-block-mobile-actions-default-link\"\n />\n )\n}\n\nconst renderDefaultAction = (\n defaultAction: DefaultActionProps\n): JSX.Element | null => {\n if (!defaultActionIsLink(defaultAction)) {\n return (\n <TitleBlockMenuItem\n {...defaultAction}\n key=\"title-block-mobile-actions-default-action\"\n data-automation-id=\"title-block-mobile-actions-default-action\"\n data-testid=\"title-block-mobile-actions-default-action\"\n />\n )\n }\n\n return null\n}\n\nconst renderSecondaryActions = (\n secondaryActions: SecondaryActionsProps | undefined\n): JSX.Element[] | null => {\n if (!secondaryActions) return null\n const secondaryActionMenuItems: TitleBlockMenuItemProps[] =\n convertSecondaryActionsToMenuItems(secondaryActions)\n\n return secondaryActionMenuItems.map((item, idx) => (\n <TitleBlockMenuItem\n {...item}\n key={`title-block-mobile-actions-secondary-action-${idx}`}\n data-testid=\"title-block-mobile-actions-secondary-action\"\n />\n ))\n}\n\nconst renderSecondaryOverflowMenuItems = (\n secondaryOverflowMenuItems: TitleBlockMenuItemProps[]\n): JSX.Element[] =>\n secondaryOverflowMenuItems.map((item, idx) => (\n <TitleBlockMenuItem\n {...item}\n key={`title-block-mobile-actions-overflow-menu-item-${idx}`}\n data-testid=\"title-block-mobile-actions-overflow-menu-item\"\n />\n ))\n\ntype DrawerMenuContentProps = {\n primaryAction?: PrimaryActionProps\n defaultAction?: DefaultActionProps\n secondaryActions?: SecondaryActionsProps\n secondaryOverflowMenuItems?: TitleBlockMenuItemProps[]\n}\n\nconst DrawerMenuContent = ({\n primaryAction,\n defaultAction,\n secondaryActions,\n secondaryOverflowMenuItems,\n}: DrawerMenuContentProps): JSX.Element => {\n const showOtherActionsHeading =\n (defaultAction && defaultActionIsButton(defaultAction)) ||\n secondaryActions ||\n secondaryOverflowMenuItems\n\n return (\n <>\n <MenuList>\n {primaryAction &&\n renderPrimaryActionDrawerContent(primaryAction, \"link\")}\n {defaultAction && renderDefaultLink(defaultAction)}\n {primaryAction &&\n renderPrimaryActionDrawerContent(primaryAction, \"action\")}\n </MenuList>\n {(defaultAction || secondaryActions || secondaryOverflowMenuItems) && (\n <MenuList\n heading={\n showOtherActionsHeading && <MenuHeading>Other actions</MenuHeading>\n }\n >\n {defaultAction && renderDefaultAction(defaultAction)}\n {secondaryActions && renderSecondaryActions(secondaryActions)}\n {secondaryOverflowMenuItems &&\n renderSecondaryOverflowMenuItems(secondaryOverflowMenuItems)}\n </MenuList>\n )}\n </>\n )\n}\n\nconst renderDrawerHandleLabel = (\n label: string,\n icon?: JSX.Element,\n drawerHandleLabelIconPosition?: ButtonProps[\"iconPosition\"]\n): JSX.Element => {\n if (drawerHandleLabelIconPosition === \"end\") {\n return (\n <>\n <span\n className={styles.drawerHandleLabelText}\n data-testid=\"drawer-handle-lable-text\"\n >\n {label}\n </span>\n <>{icon && <span className={styles.drawerHandleIcon}>{icon}</span>}</>\n </>\n )\n } else {\n return (\n <>\n <>{icon && <span className={styles.drawerHandleIcon}>{icon}</span>}</>\n <span\n className={styles.drawerHandleLabelText}\n data-testid=\"drawer-handle-lable-text\"\n >\n {label}\n </span>\n </>\n )\n }\n}\n\ntype HrefAndOnClick = Pick<TitleBlockButtonProps, \"href\" | \"onClick\">\ntype ButtonOrLinkActionProps =\n | HrefAndOnClick\n | TitleBlockButtonProps[\"href\"]\n | TitleBlockButtonProps[\"onClick\"]\ntype ButtonOrLinkProps = {\n action?: ButtonOrLinkActionProps\n children: React.ReactNode\n}\n\nconst ButtonOrLink = ({ action, children }: ButtonOrLinkProps): JSX.Element => {\n if (typeof action === \"object\" && \"onClick\" in action && \"href\" in action) {\n return (\n <a\n onClick={action.onClick}\n href={action.href}\n className={classnames(\n styles.mobileActionsPrimaryLabel,\n styles.mobileActionsPrimaryButton\n )}\n data-testid=\"title-block-mobile-actions-primary-button\"\n >\n {children}\n </a>\n )\n }\n if (typeof action === \"function\") {\n return (\n <button\n type=\"button\"\n onClick={action}\n className={classnames(\n styles.mobileActionsPrimaryLabel,\n styles.mobileActionsPrimaryButton\n )}\n data-testid=\"title-block-mobile-actions-primary-button\"\n >\n {children}\n </button>\n )\n }\n if (typeof action === \"string\") {\n return (\n <a\n href={action}\n className={classnames(\n styles.mobileActionsPrimaryLabel,\n styles.mobileActionsPrimaryButton\n )}\n data-testid=\"title-block-mobile-actions-primary-button\"\n >\n {children}\n </a>\n )\n }\n\n // when there's no action (e.g. primary button is disabled)\n return (\n <button\n type=\"button\"\n className={classnames(\n styles.mobileActionsPrimaryLabel,\n styles.mobileActionsPrimaryButton\n )}\n data-testid=\"title-block-mobile-actions-primary-button\"\n >\n {children}\n </button>\n )\n}\n\nconst getAction = (\n primaryAction: TitleBlockButtonProps\n): ButtonOrLinkActionProps => {\n if (primaryAction && !primaryAction.disabled) {\n if (primaryAction.onClick && primaryAction.href) {\n return {\n href: primaryAction.href,\n onClick: primaryAction.onClick,\n }\n }\n if (primaryAction.onClick) {\n return primaryAction.onClick\n }\n if (primaryAction.href) {\n return primaryAction.href\n }\n }\n\n return undefined\n}\n\ntype DrawerHandleProps = {\n primaryAction: PrimaryActionProps | undefined\n secondaryActions: SecondaryActionsProps | undefined\n defaultAction?: DefaultActionProps | TitleBlockMenuGroup\n secondaryOverflowMenuItems?: TitleBlockMenuItemProps[]\n drawerHandleLabelIconPosition?: ButtonProps[\"iconPosition\"]\n toggleDisplay: () => void\n isOpen: boolean\n}\n\nconst DrawerHandle = ({\n primaryAction,\n secondaryActions,\n defaultAction,\n secondaryOverflowMenuItems,\n drawerHandleLabelIconPosition,\n toggleDisplay,\n isOpen,\n}: DrawerHandleProps): JSX.Element | null => {\n const showDrawer =\n defaultAction || secondaryActions || secondaryOverflowMenuItems\n if (primaryAction) {\n // If the primary action is a menu\n if (isMenuGroupNotButton(primaryAction)) {\n return (\n <div\n className={classnames(\n styles.mobileActionsTopRow,\n styles.mobileActionsTopRowSingleButton\n )}\n data-testid=\"title-block-mobile-actions-drawer-handle\"\n >\n <button\n type=\"button\"\n className={classnames(\n styles.mobileActionsExpandButton,\n styles.mobileActionsPrimaryLabel\n )}\n onClick={toggleDisplay}\n aria-expanded={isOpen}\n >\n {primaryAction.label}\n <span className={styles.mobileActionsChevronSquare}>\n {isOpen ? (\n <ChevronDownIcon role=\"presentation\" />\n ) : (\n <ChevronUpIcon role=\"presentation\" />\n )}\n </span>\n </button>\n </div>\n )\n }\n\n // If the primary action is a button, or has no onClick/href/action\n return (\n <div\n className={classnames(\n styles.mobileActionsTopRow,\n !showDrawer && styles.mobileActionsTopRowSingleButton\n )}\n data-testid=\"title-block-mobile-actions-drawer-handle\"\n >\n {\"component\" in primaryAction ? (\n <primaryAction.component\n className={classnames(\n styles.mobileActionsPrimaryLabel,\n styles.mobileActionsPrimaryButton\n )}\n {...primaryAction}\n >\n {primaryAction.label &&\n renderDrawerHandleLabel(\n primaryAction.label,\n primaryAction.icon,\n drawerHandleLabelIconPosition\n )}\n </primaryAction.component>\n ) : (\n <ButtonOrLink action={getAction(primaryAction)}>\n {renderDrawerHandleLabel(\n primaryAction.label,\n primaryAction.icon,\n drawerHandleLabelIconPosition\n )}\n </ButtonOrLink>\n )}\n\n {/* If there are no secondary etc. actions, just show the button without drawer */}\n {showDrawer && (\n <button\n type=\"button\"\n className={styles.mobileActionsExpandButton}\n onClick={toggleDisplay}\n aria-expanded={isOpen}\n aria-label=\"Other actions\"\n >\n {isOpen ? (\n <ChevronDownIcon role=\"presentation\" />\n ) : (\n <ChevronUpIcon role=\"presentation\" />\n )}\n </button>\n )}\n </div>\n )\n }\n\n // if there are default/secondary actions but no primary action\n if (showDrawer) {\n return (\n <div\n className={classnames(\n styles.mobileActionsTopRow,\n styles.mobileActionsTopRowSingleButton\n )}\n data-testid=\"title-block-mobile-actions-drawer-handle\"\n >\n <button\n type=\"button\"\n className={classnames(\n styles.mobileActionsExpandButton,\n styles.mobileActionsPrimaryLabel\n )}\n onClick={toggleDisplay}\n aria-expanded={isOpen}\n >\n {renderDrawerHandleLabel(\"Other actions\")}\n <span className={styles.mobileActionsChevronSquare}>\n {isOpen ? (\n <ChevronDownIcon role=\"presentation\" />\n ) : (\n <ChevronUpIcon role=\"presentation\" />\n )}\n </span>\n </button>\n </div>\n )\n }\n return null\n}\n\nexport type MobileActionsProps = {\n primaryAction?: PrimaryActionProps\n defaultAction?: DefaultActionProps\n secondaryActions?: SecondaryActionsProps\n secondaryOverflowMenuItems?: TitleBlockMenuItemProps[]\n drawerHandleLabelIconPosition?: ButtonProps[\"iconPosition\"]\n}\n\nexport const MobileActions = ({\n primaryAction,\n defaultAction,\n secondaryActions,\n secondaryOverflowMenuItems,\n drawerHandleLabelIconPosition,\n}: MobileActionsProps): JSX.Element => {\n const [isOpen, setIsOpen] = useState<boolean>(false)\n\n const toggleDisplay = (): void => {\n setIsOpen(!isOpen)\n }\n\n return (\n <div\n className={classnames(\n styles.mobileActionsContainer,\n isOpen && styles.isOpen\n )}\n >\n <FocusOn enabled={isOpen} scrollLock={false}>\n <DrawerHandle\n primaryAction={primaryAction}\n secondaryActions={secondaryActions}\n defaultAction={defaultAction}\n secondaryOverflowMenuItems={secondaryOverflowMenuItems}\n drawerHandleLabelIconPosition={drawerHandleLabelIconPosition}\n toggleDisplay={toggleDisplay}\n isOpen={isOpen}\n />\n {(defaultAction ||\n secondaryActions ||\n secondaryOverflowMenuItems ||\n (primaryAction && isMenuGroupNotButton(primaryAction))) && (\n <div className={styles.mobileActionsMenuContainer}>\n <DrawerMenuContent\n primaryAction={primaryAction}\n defaultAction={defaultAction}\n secondaryActions={secondaryActions}\n secondaryOverflowMenuItems={secondaryOverflowMenuItems}\n />\n </div>\n )}\n </FocusOn>\n </div>\n )\n}\n\nMobileActions.displayName = \"MobileActions\"\n"],"names":["menuItemIsLink","item","defaultActionIsLink","action","defaultActionIsButton","filterActions","menuItems","filterType","filter","renderPrimaryActionDrawerContent","primaryAction","actionType","isMenuGroupNotButton","filteredActions","map","idx","itemType","React","createElement","TitleBlockMenuItem","__assign","key","concat","renderDefaultLink","defaultAction","MenuItem","href","label","icon","disabled","renderDefaultAction","renderSecondaryActions","secondaryActions","secondaryActionMenuItems","convertSecondaryActionsToMenuItems","renderSecondaryOverflowMenuItems","secondaryOverflowMenuItems","DrawerMenuContent","_a","showOtherActionsHeading","Fragment","MenuList","heading","MenuHeading","renderDrawerHandleLabel","drawerHandleLabelIconPosition","className","styles","drawerHandleLabelText","drawerHandleIcon","ButtonOrLink","children","onClick","classnames","mobileActionsPrimaryLabel","mobileActionsPrimaryButton","type","getAction","undefined","DrawerHandle","toggleDisplay","isOpen","showDrawer","mobileActionsTopRow","mobileActionsTopRowSingleButton","mobileActionsExpandButton","mobileActionsChevronSquare","ChevronDownIcon","role","ChevronUpIcon","component","MobileActions","_b","useState","setIsOpen","mobileActionsContainer","FocusOn","enabled","scrollLock","mobileActionsMenuContainer","displayName"],"mappings":";;;;;;;;;;;;;;;AAsBA,IAAMA,cAAc,GAA+C,SAAAA,CAAAC,IAAI,EAAA;EACrE,OAAA,MAAM,IAAIA,IAAI;AAAd,CAAc;AAEhB,IAAMC,mBAAmB,GAA4C,SAAAA,CAAAC,MAAM,EAAA;EACzE,OAAA,MAAM,IAAIA,MAAM;AAAhB,CAAgB;AAElB,IAAMC,qBAAqB,GAA4C,SAAAA,CAAAD,MAAM,EAAA;EAC3E,OAAC,EAAE,MAAM,IAAIA,MAAM,CAAC,IAAI,SAAS,IAAIA,MAAM,IAAK,WAAW,IAAIA,MAAM;AAAr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Aa;MAC5BQ,gBAAgB,EAAEA,gBAAgB;MAClCI,0BAA0B,EAAEA;IAA0B,CAAA,CACtD,CACE,CACP,CACO,CACN;EAEV,CAAC;EAEDmC,aAAa,CAACS,WAAW,GAAG,eAAe;EAAA,OAhD9BT,aAAa;AAAA;"}
|
|
1
|
+
{"version":3,"file":"MobileActions.mjs","sources":["../../../../src/TitleBlockZen/subcomponents/MobileActions.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useState } from \"react\"\nimport classnames from \"classnames\"\nimport { FocusOn } from \"react-focus-on\"\nimport { ButtonProps } from \"~components/Button\"\nimport { ChevronDownIcon, ChevronUpIcon } from \"~components/Icon\"\nimport { MenuItem, MenuList, MenuHeading } from \"~components/Menu\"\nimport { TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID } from \"../constants\"\nimport {\n DefaultActionProps,\n PrimaryActionProps,\n SecondaryActionsProps,\n TitleBlockButtonProps,\n TitleBlockMenuGroup,\n TitleBlockMenuItemProps,\n} from \"../types\"\nimport {\n convertSecondaryActionsToMenuItems,\n isMenuGroupNotButton,\n} from \"../utils\"\nimport { TitleBlockMenuItem } from \"./TitleBlockMenuItem\"\n\nimport styles from \"./MobileActions.module.scss\"\n\nconst menuItemIsLink: (item: TitleBlockMenuItemProps) => boolean = item =>\n \"href\" in item\n\nconst defaultActionIsLink: (action: DefaultActionProps) => boolean = action =>\n \"href\" in action\n\nconst defaultActionIsButton: (action: DefaultActionProps) => boolean = action =>\n (!(\"href\" in action) && \"onClick\" in action) || \"component\" in action\n\nconst filterActions = (\n menuItems: TitleBlockMenuItemProps[],\n filterType: \"link\" | \"action\"\n): TitleBlockMenuItemProps[] =>\n menuItems.filter(item =>\n filterType === \"link\" ? menuItemIsLink(item) : !menuItemIsLink(item)\n )\n\n/** Returns a filtered array of TitleBlockMenuItem based on actionType\n * This is use to sort a selectively render the action into a specifc order\n */\nconst renderPrimaryActionDrawerContent = (\n primaryAction: PrimaryActionProps,\n actionType: \"link\" | \"action\"\n): JSX.Element[] | null => {\n if (!primaryAction) return null\n\n if (isMenuGroupNotButton(primaryAction)) {\n const filteredActions = filterActions(primaryAction.menuItems, actionType)\n return filteredActions.map((item, idx) => {\n const itemType = menuItemIsLink(item) ? \"link\" : \"action\"\n\n return (\n <TitleBlockMenuItem\n {...item}\n key={`title-block-mobile-actions-primary-${itemType}-${idx}`}\n data-automation-id={`title-block-mobile-actions-primary-${itemType}-${idx}`}\n data-testid={`title-block-mobile-actions-primary-${itemType}-${idx}`}\n />\n )\n })\n }\n\n return null\n}\n\nconst renderDefaultLink = (\n defaultAction: DefaultActionProps\n): JSX.Element | undefined => {\n if (!defaultActionIsLink(defaultAction)) return\n if (\"component\" in defaultAction) {\n return (\n <TitleBlockMenuItem\n {...defaultAction}\n key=\"title-block-mobile-actions-default-link\"\n data-automation-id=\"title-block-mobile-actions-default-link\"\n data-testid=\"title-block-mobile-actions-default-link\"\n />\n )\n }\n return (\n <MenuItem\n href={defaultAction.href}\n label={defaultAction.label}\n icon={defaultAction.icon}\n disabled={defaultAction.disabled}\n key=\"title-block-mobile-actions-default-link\"\n data-automation-id=\"title-block-mobile-actions-default-link\"\n data-testid=\"title-block-mobile-actions-default-link\"\n id={defaultAction.id}\n />\n )\n}\n\nconst renderDefaultAction = (\n defaultAction: DefaultActionProps\n): JSX.Element | null => {\n if (!defaultActionIsLink(defaultAction)) {\n return (\n <TitleBlockMenuItem\n {...defaultAction}\n key=\"title-block-mobile-actions-default-action\"\n data-automation-id=\"title-block-mobile-actions-default-action\"\n data-testid=\"title-block-mobile-actions-default-action\"\n />\n )\n }\n\n return null\n}\n\nconst renderSecondaryActions = (\n secondaryActions: SecondaryActionsProps | undefined\n): JSX.Element[] | null => {\n if (!secondaryActions) return null\n const secondaryActionMenuItems: TitleBlockMenuItemProps[] =\n convertSecondaryActionsToMenuItems(secondaryActions)\n\n return secondaryActionMenuItems.map((item, idx) => (\n <TitleBlockMenuItem\n {...item}\n key={`title-block-mobile-actions-secondary-action-${idx}`}\n data-testid=\"title-block-mobile-actions-secondary-action\"\n />\n ))\n}\n\nconst renderSecondaryOverflowMenuItems = (\n secondaryOverflowMenuItems: TitleBlockMenuItemProps[]\n): JSX.Element[] =>\n secondaryOverflowMenuItems.map((item, idx) => (\n <TitleBlockMenuItem\n {...item}\n key={`title-block-mobile-actions-overflow-menu-item-${idx}`}\n data-testid=\"title-block-mobile-actions-overflow-menu-item\"\n />\n ))\n\ntype DrawerMenuContentProps = {\n primaryAction?: PrimaryActionProps\n defaultAction?: DefaultActionProps\n secondaryActions?: SecondaryActionsProps\n secondaryOverflowMenuItems?: TitleBlockMenuItemProps[]\n}\n\nconst DrawerMenuContent = ({\n primaryAction,\n defaultAction,\n secondaryActions,\n secondaryOverflowMenuItems,\n}: DrawerMenuContentProps): JSX.Element => {\n const showOtherActionsHeading =\n (defaultAction && defaultActionIsButton(defaultAction)) ||\n secondaryActions ||\n secondaryOverflowMenuItems\n\n return (\n <>\n <MenuList>\n {primaryAction &&\n renderPrimaryActionDrawerContent(primaryAction, \"link\")}\n {defaultAction && renderDefaultLink(defaultAction)}\n {primaryAction &&\n renderPrimaryActionDrawerContent(primaryAction, \"action\")}\n </MenuList>\n {(defaultAction || secondaryActions || secondaryOverflowMenuItems) && (\n <MenuList\n heading={\n showOtherActionsHeading && <MenuHeading>Other actions</MenuHeading>\n }\n >\n {defaultAction && renderDefaultAction(defaultAction)}\n {secondaryActions && renderSecondaryActions(secondaryActions)}\n {secondaryOverflowMenuItems &&\n renderSecondaryOverflowMenuItems(secondaryOverflowMenuItems)}\n </MenuList>\n )}\n </>\n )\n}\n\nconst renderDrawerHandleLabel = (\n label: string,\n icon?: JSX.Element,\n drawerHandleLabelIconPosition?: ButtonProps[\"iconPosition\"]\n): JSX.Element => {\n if (drawerHandleLabelIconPosition === \"end\") {\n return (\n <>\n <span\n className={styles.drawerHandleLabelText}\n data-testid=\"drawer-handle-lable-text\"\n >\n {label}\n </span>\n <>{icon && <span className={styles.drawerHandleIcon}>{icon}</span>}</>\n </>\n )\n } else {\n return (\n <>\n <>{icon && <span className={styles.drawerHandleIcon}>{icon}</span>}</>\n <span\n className={styles.drawerHandleLabelText}\n data-testid=\"drawer-handle-lable-text\"\n >\n {label}\n </span>\n </>\n )\n }\n}\n\ntype HrefAndOnClick = Pick<TitleBlockButtonProps, \"href\" | \"onClick\">\ntype ButtonOrLinkActionProps =\n | HrefAndOnClick\n | TitleBlockButtonProps[\"href\"]\n | TitleBlockButtonProps[\"onClick\"]\ntype ButtonOrLinkProps = {\n action?: ButtonOrLinkActionProps\n children: React.ReactNode\n}\n\nconst ButtonOrLink = ({ action, children }: ButtonOrLinkProps): JSX.Element => {\n if (typeof action === \"object\" && \"onClick\" in action && \"href\" in action) {\n return (\n <a\n onClick={action.onClick}\n href={action.href}\n className={classnames(\n styles.mobileActionsPrimaryLabel,\n styles.mobileActionsPrimaryButton\n )}\n data-testid=\"title-block-mobile-actions-primary-button\"\n >\n {children}\n </a>\n )\n }\n if (typeof action === \"function\") {\n return (\n <button\n type=\"button\"\n onClick={action}\n className={classnames(\n styles.mobileActionsPrimaryLabel,\n styles.mobileActionsPrimaryButton\n )}\n data-testid=\"title-block-mobile-actions-primary-button\"\n >\n {children}\n </button>\n )\n }\n if (typeof action === \"string\") {\n return (\n <a\n href={action}\n className={classnames(\n styles.mobileActionsPrimaryLabel,\n styles.mobileActionsPrimaryButton\n )}\n data-testid=\"title-block-mobile-actions-primary-button\"\n >\n {children}\n </a>\n )\n }\n\n // when there's no action (e.g. primary button is disabled)\n return (\n <button\n type=\"button\"\n className={classnames(\n styles.mobileActionsPrimaryLabel,\n styles.mobileActionsPrimaryButton\n )}\n data-testid=\"title-block-mobile-actions-primary-button\"\n >\n {children}\n </button>\n )\n}\n\nconst getAction = (\n primaryAction: TitleBlockButtonProps\n): ButtonOrLinkActionProps => {\n if (primaryAction && !primaryAction.disabled) {\n if (primaryAction.onClick && primaryAction.href) {\n return {\n href: primaryAction.href,\n onClick: primaryAction.onClick,\n }\n }\n if (primaryAction.onClick) {\n return primaryAction.onClick\n }\n if (primaryAction.href) {\n return primaryAction.href\n }\n }\n\n return undefined\n}\n\ntype DrawerHandleProps = {\n primaryAction: PrimaryActionProps | undefined\n secondaryActions: SecondaryActionsProps | undefined\n defaultAction?: DefaultActionProps | TitleBlockMenuGroup\n secondaryOverflowMenuItems?: TitleBlockMenuItemProps[]\n drawerHandleLabelIconPosition?: ButtonProps[\"iconPosition\"]\n toggleDisplay: () => void\n isOpen: boolean\n}\n\nconst DrawerHandle = ({\n primaryAction,\n secondaryActions,\n defaultAction,\n secondaryOverflowMenuItems,\n drawerHandleLabelIconPosition,\n toggleDisplay,\n isOpen,\n}: DrawerHandleProps): JSX.Element | null => {\n const showDrawer =\n defaultAction || secondaryActions || secondaryOverflowMenuItems\n if (primaryAction) {\n // If the primary action is a menu\n if (isMenuGroupNotButton(primaryAction)) {\n return (\n <div\n className={classnames(\n styles.mobileActionsTopRow,\n styles.mobileActionsTopRowSingleButton\n )}\n data-testid=\"title-block-mobile-actions-drawer-handle\"\n >\n <button\n type=\"button\"\n className={classnames(\n styles.mobileActionsExpandButton,\n styles.mobileActionsPrimaryLabel\n )}\n onClick={toggleDisplay}\n aria-expanded={isOpen}\n >\n {primaryAction.label}\n <span className={styles.mobileActionsChevronSquare}>\n {isOpen ? (\n <ChevronDownIcon role=\"presentation\" />\n ) : (\n <ChevronUpIcon role=\"presentation\" />\n )}\n </span>\n </button>\n </div>\n )\n }\n\n // If the primary action is a button, or has no onClick/href/action\n return (\n <div\n className={classnames(\n styles.mobileActionsTopRow,\n !showDrawer && styles.mobileActionsTopRowSingleButton\n )}\n data-testid=\"title-block-mobile-actions-drawer-handle\"\n >\n {\"component\" in primaryAction ? (\n <primaryAction.component\n className={classnames(\n styles.mobileActionsPrimaryLabel,\n styles.mobileActionsPrimaryButton\n )}\n {...primaryAction}\n >\n {primaryAction.label &&\n renderDrawerHandleLabel(\n primaryAction.label,\n primaryAction.icon,\n drawerHandleLabelIconPosition\n )}\n </primaryAction.component>\n ) : (\n <ButtonOrLink action={getAction(primaryAction)}>\n {renderDrawerHandleLabel(\n primaryAction.label,\n primaryAction.icon,\n drawerHandleLabelIconPosition\n )}\n </ButtonOrLink>\n )}\n\n {/* If there are no secondary etc. actions, just show the button without drawer */}\n {showDrawer && (\n <button\n type=\"button\"\n className={styles.mobileActionsExpandButton}\n onClick={toggleDisplay}\n aria-expanded={isOpen}\n id={TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID}\n aria-label=\"Other actions\"\n >\n {isOpen ? (\n <ChevronDownIcon role=\"presentation\" />\n ) : (\n <ChevronUpIcon role=\"presentation\" />\n )}\n </button>\n )}\n </div>\n )\n }\n\n // if there are default/secondary actions but no primary action\n if (showDrawer) {\n return (\n <div\n className={classnames(\n styles.mobileActionsTopRow,\n styles.mobileActionsTopRowSingleButton\n )}\n data-testid=\"title-block-mobile-actions-drawer-handle\"\n >\n <button\n type=\"button\"\n className={classnames(\n styles.mobileActionsExpandButton,\n styles.mobileActionsPrimaryLabel\n )}\n onClick={toggleDisplay}\n aria-expanded={isOpen}\n id={TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID}\n >\n {renderDrawerHandleLabel(\"Other actions\")}\n <span className={styles.mobileActionsChevronSquare}>\n {isOpen ? (\n <ChevronDownIcon role=\"presentation\" />\n ) : (\n <ChevronUpIcon role=\"presentation\" />\n )}\n </span>\n </button>\n </div>\n )\n }\n return null\n}\n\nexport type MobileActionsProps = {\n primaryAction?: PrimaryActionProps\n defaultAction?: DefaultActionProps\n secondaryActions?: SecondaryActionsProps\n secondaryOverflowMenuItems?: TitleBlockMenuItemProps[]\n drawerHandleLabelIconPosition?: ButtonProps[\"iconPosition\"]\n autoHide?: boolean\n}\n\nexport const MobileActions = ({\n primaryAction,\n defaultAction,\n secondaryActions,\n secondaryOverflowMenuItems,\n drawerHandleLabelIconPosition,\n autoHide = false,\n}: MobileActionsProps): JSX.Element => {\n const [isOpen, setIsOpen] = useState<boolean>(false)\n const menuContent = React.createRef<HTMLDivElement>()\n const toggleDisplay = (): void => {\n setIsOpen(!isOpen)\n }\n\n // This callback handler will not run when autoHide === \"off\"\n const handleDocumentClickForAutoHide = useCallback(\n (e: MouseEvent) => {\n if (\n isOpen &&\n e.target instanceof Node &&\n menuContent.current?.contains(e.target)\n ) {\n setIsOpen(false)\n }\n },\n [menuContent]\n )\n\n useEffect(() => {\n if (autoHide) {\n document.addEventListener(\"click\", handleDocumentClickForAutoHide, true)\n }\n\n return () => {\n if (autoHide) {\n document.removeEventListener(\n \"click\",\n handleDocumentClickForAutoHide,\n true\n )\n }\n }\n }, [autoHide, handleDocumentClickForAutoHide])\n\n return (\n <div\n className={classnames(\n styles.mobileActionsContainer,\n isOpen && styles.isOpen\n )}\n >\n <FocusOn enabled={isOpen} scrollLock={false}>\n <DrawerHandle\n primaryAction={primaryAction}\n secondaryActions={secondaryActions}\n defaultAction={defaultAction}\n secondaryOverflowMenuItems={secondaryOverflowMenuItems}\n drawerHandleLabelIconPosition={drawerHandleLabelIconPosition}\n toggleDisplay={toggleDisplay}\n isOpen={isOpen}\n />\n {(defaultAction ||\n secondaryActions ||\n secondaryOverflowMenuItems ||\n (primaryAction && isMenuGroupNotButton(primaryAction))) && (\n <div ref={menuContent} className={styles.mobileActionsMenuContainer}>\n <DrawerMenuContent\n primaryAction={primaryAction}\n defaultAction={defaultAction}\n secondaryActions={secondaryActions}\n secondaryOverflowMenuItems={secondaryOverflowMenuItems}\n />\n </div>\n )}\n </FocusOn>\n </div>\n )\n}\n\nMobileActions.displayName = \"MobileActions\"\n"],"names":["menuItemIsLink","item","defaultActionIsLink","action","defaultActionIsButton","filterActions","menuItems","filterType","filter","renderPrimaryActionDrawerContent","primaryAction","actionType","isMenuGroupNotButton","filteredActions","map","idx","itemType","React","createElement","TitleBlockMenuItem","__assign","key","concat","renderDefaultLink","defaultAction","MenuItem","href","label","icon","disabled","id","renderDefaultAction","renderSecondaryActions","secondaryActions","secondaryActionMenuItems","convertSecondaryActionsToMenuItems","renderSecondaryOverflowMenuItems","secondaryOverflowMenuItems","DrawerMenuContent","_a","showOtherActionsHeading","Fragment","MenuList","heading","MenuHeading","renderDrawerHandleLabel","drawerHandleLabelIconPosition","className","styles","drawerHandleLabelText","drawerHandleIcon","ButtonOrLink","children","onClick","classnames","mobileActionsPrimaryLabel","mobileActionsPrimaryButton","type","getAction","undefined","DrawerHandle","toggleDisplay","isOpen","showDrawer","mobileActionsTopRow","mobileActionsTopRowSingleButton","mobileActionsExpandButton","mobileActionsChevronSquare","ChevronDownIcon","role","ChevronUpIcon","component","TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID","MobileActions","_b","autoHide","_c","useState","setIsOpen","menuContent","createRef","handleDocumentClickForAutoHide","useCallback","e","target","Node","current","contains","useEffect","document","addEventListener","removeEventListener","mobileActionsContainer","FocusOn","enabled","scrollLock","ref","mobileActionsMenuContainer","displayName"],"mappings":";;;;;;;;;;;;;;;;AAuBA,IAAMA,cAAc,GAA+C,SAAAA,CAAAC,IAAI,EAAA;EACrE,OAAA,MAAM,IAAIA,IAAI;AAAd,CAAc;AAEhB,IAAMC,mBAAmB,GAA4C,SAAAA,CAAAC,MAAM,EAAA;EACzE,OAAA,MAAM,IAAIA,MAAM;AAAhB,CAAgB;AAElB,IAAMC,qBAAqB,GAA4C,SAAAA,CAAAD,MAAM,EAAA;EAC3E,OAAC,EAAE,MAAM,IAAIA,MAAM,CAAC,IAAI,SAAS,IAAIA,MAAM,IAAK,WAAW,IAAIA,MAAM;AAArE,CAAqE;AAEvE,IAAME,aAAa,GAAG,SAAAA,CACpBC,SAAoC,EACpCC,UAA6B,EAAA;EAE7B,OAAAD,SAAS,CAACE,MAAM,CAAC,UAAAP,IAAI,EAAA;IACnB,OAAAM,UAAU,KAAK,MAAM,GAAGP,cAAc,CAACC,IAAI,CAAC,GAAG,CAACD,cAAc,CAACC,IAAI,CAAC;EAApE,CAAoE,CACrE;AAFD,CAEC;AAE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,OAAO;MAACC,OAAO,EAAEhC,MAAM;MAAEiC,UAAU,EAAE;IAAK,CAAA,eACzC9E,KAAA,CAAAC,aAAA,CAAC0C,YAAY,EAAA;MACXlD,aAAa,EAAEA,aAAa;MAC5BuB,gBAAgB,EAAEA,gBAAgB;MAClCT,aAAa,EAAEA,aAAa;MAC5Ba,0BAA0B,EAAEA,0BAA0B;MACtDS,6BAA6B,EAAEA,6BAA6B;MAC5De,aAAa,EAAEA,aAAa;MAC5BC,MAAM,EAAEA;KACR,CAAA,EACD,CAACtC,aAAa,IACbS,gBAAgB,IAChBI,0BAA0B,IACzB3B,aAAa,IAAIE,oBAAoB,CAACF,aAAa,CAAE,oBACtDO,KAAK,CAAAC,aAAA,CAAA,KAAA,EAAA;MAAA8E,GAAG,EAAEjB,WAAW;MAAEhC,SAAS,EAAEC,MAAM,CAACiD;IAA0B,CAAA,eACjEhF,KAAC,CAAAC,aAAA,CAAAoB,iBAAiB;MAChB5B,aAAa,EAAEA,aAAa;MAC5Bc,aAAa,EAAEA,aAAa;MAC5BS,gBAAgB,EAAEA,gBAAgB;MAClCI,0BAA0B,EAAEA;IAA0B,CAAA,CACtD,CACE,CACP,CACO,CACN;EAEV,CAAC;EAEDoC,aAAa,CAACyB,WAAW,GAAG,eAAe;EAAA,OA/E9BzB,aAAa;AAAA;"}
|
|
@@ -11,6 +11,7 @@ import '../../Menu/subcomponents/MenuItem/MenuItem.mjs';
|
|
|
11
11
|
import { MenuList } from '../../Menu/subcomponents/MenuList/MenuList.mjs';
|
|
12
12
|
import '../../Menu/subcomponents/StatelessMenu/StatelessMenu.mjs';
|
|
13
13
|
import styles from '../TitleBlockZen.module.scss.mjs';
|
|
14
|
+
import { TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID } from '../constants.mjs';
|
|
14
15
|
import { TitleBlockMenuItem } from './TitleBlockMenuItem.mjs';
|
|
15
16
|
import { Toolbar } from './Toolbar.mjs';
|
|
16
17
|
var renderSecondaryOverflowMenu = function (secondaryOverflowMenuItems, reversed) {
|
|
@@ -22,7 +23,8 @@ var renderSecondaryOverflowMenu = function (secondaryOverflowMenuItems, reversed
|
|
|
22
23
|
reversed: reversed,
|
|
23
24
|
icon: /*#__PURE__*/React.createElement(MeatballsIcon, {
|
|
24
25
|
role: "presentation"
|
|
25
|
-
})
|
|
26
|
+
}),
|
|
27
|
+
id: TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID
|
|
26
28
|
})
|
|
27
29
|
}, /*#__PURE__*/React.createElement(MenuList, null, secondaryOverflowMenuItems.map(function (menuItem, i) {
|
|
28
30
|
return /*#__PURE__*/React.createElement(TitleBlockMenuItem, __assign({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SecondaryActions.mjs","sources":["../../../../src/TitleBlockZen/subcomponents/SecondaryActions.tsx"],"sourcesContent":["import React from \"react\"\nimport { Button, IconButton } from \"~components/Button\"\nimport { ChevronDownIcon, MeatballsIcon } from \"~components/Icon\"\nimport { Menu, MenuList } from \"~components/Menu\"\nimport styles from \"../TitleBlockZen.module.scss\"\nimport { SecondaryActionsProps, TitleBlockMenuItemProps } from \"../types\"\nimport { TitleBlockMenuItem } from \"./TitleBlockMenuItem\"\nimport { Toolbar } from \"./Toolbar\"\n\ntype Props = {\n secondaryActions?: SecondaryActionsProps\n secondaryOverflowMenuItems?: TitleBlockMenuItemProps[]\n reversed?: boolean\n}\n\nconst renderSecondaryOverflowMenu = (\n secondaryOverflowMenuItems?: TitleBlockMenuItemProps[],\n reversed?: boolean\n): JSX.Element | undefined => {\n if (!secondaryOverflowMenuItems) return undefined\n return (\n <Menu\n align=\"right\"\n button={\n <IconButton\n label=\"Open secondary menu\"\n reversed={reversed}\n icon={<MeatballsIcon role=\"presentation\" />}\n />\n }\n >\n <MenuList>\n {secondaryOverflowMenuItems.map((menuItem, i) => (\n <TitleBlockMenuItem key={i} {...menuItem} />\n ))}\n </MenuList>\n </Menu>\n )\n}\n\n// Unfortunately, you'll notice below, that I needed to use the array index,\n// against react best practices (https://reactjs.org/docs/lists-and-keys.html)\n// This is because the menu items have no unique identifier.\n\nexport const SecondaryActions = ({\n secondaryActions,\n secondaryOverflowMenuItems,\n reversed = false,\n}: Props): JSX.Element | null => {\n if (!secondaryActions && !secondaryOverflowMenuItems) return null\n\n const secondaryActionsAsToolbarItems = secondaryActions\n ? secondaryActions.map((action, i) => {\n if (\"menuItems\" in action) {\n return {\n key: `${i}`, // We shouldn't use an index here, see note above\n node: (\n <Menu\n align=\"right\"\n button={\n <Button\n secondary\n label={action.label}\n reversed={reversed}\n icon={<ChevronDownIcon role=\"presentation\" />}\n iconPosition=\"end\"\n />\n }\n >\n <MenuList>\n {action.menuItems.map((menuItem, i2) => (\n <TitleBlockMenuItem key={i2} {...menuItem} />\n ))}\n </MenuList>\n </Menu>\n ),\n }\n } else {\n if (\"onClick\" in action && \"href\" in action) {\n // eslint-disable-next-line no-console\n console.warn(\n \"\\u001b[33m \\nTITLE BLOCK WARNING:\\nSecondary actions only support \" +\n \"either an href or an onClick, not both simultaneously.\\n\"\n )\n }\n return {\n key: `${i}`, // We shouldn't use an index here, see note above\n node: (\n <Button\n secondary\n reversed={reversed}\n {...action}\n data-automation-id=\"title-block-secondary-actions-button\"\n data-testid=\"title-block-secondary-actions-button\"\n />\n ),\n }\n }\n })\n : []\n\n const overflowMenu = renderSecondaryOverflowMenu(\n secondaryOverflowMenuItems,\n reversed\n )\n\n const toolbarItems = [\n ...secondaryActionsAsToolbarItems,\n ...(overflowMenu\n ? [\n {\n key: \"overflowMenu\",\n node: overflowMenu,\n },\n ]\n : []),\n ]\n\n return (\n <div className={styles.secondaryActionsContainer}>\n <Toolbar\n items={toolbarItems}\n noGap\n automationId=\"title-block-secondary-actions-toolbar\"\n />\n </div>\n )\n}\n\nSecondaryActions.displayName = \"SecondaryActions\"\n"],"names":["renderSecondaryOverflowMenu","secondaryOverflowMenuItems","reversed","undefined","React","createElement","Menu","align","button","IconButton","label","icon","MeatballsIcon","role","MenuList","map","menuItem","i","TitleBlockMenuItem","__assign","key","SecondaryActions","_a","secondaryActions","_b","secondaryActionsAsToolbarItems","action","concat","node","Button","secondary","ChevronDownIcon","iconPosition","menuItems","i2","console","warn","overflowMenu","toolbarItems","__spreadArray","className","styles","secondaryActionsContainer","Toolbar","items","noGap","automationId","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SecondaryActions.mjs","sources":["../../../../src/TitleBlockZen/subcomponents/SecondaryActions.tsx"],"sourcesContent":["import React from \"react\"\nimport { Button, IconButton } from \"~components/Button\"\nimport { ChevronDownIcon, MeatballsIcon } from \"~components/Icon\"\nimport { Menu, MenuList } from \"~components/Menu\"\nimport styles from \"../TitleBlockZen.module.scss\"\nimport { TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID } from \"../constants\"\nimport { SecondaryActionsProps, TitleBlockMenuItemProps } from \"../types\"\nimport { TitleBlockMenuItem } from \"./TitleBlockMenuItem\"\nimport { Toolbar } from \"./Toolbar\"\n\ntype Props = {\n secondaryActions?: SecondaryActionsProps\n secondaryOverflowMenuItems?: TitleBlockMenuItemProps[]\n reversed?: boolean\n}\n\nconst renderSecondaryOverflowMenu = (\n secondaryOverflowMenuItems?: TitleBlockMenuItemProps[],\n reversed?: boolean\n): JSX.Element | undefined => {\n if (!secondaryOverflowMenuItems) return undefined\n return (\n <Menu\n align=\"right\"\n button={\n <IconButton\n label=\"Open secondary menu\"\n reversed={reversed}\n icon={<MeatballsIcon role=\"presentation\" />}\n id={TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID}\n />\n }\n >\n <MenuList>\n {secondaryOverflowMenuItems.map((menuItem, i) => (\n <TitleBlockMenuItem key={i} {...menuItem} />\n ))}\n </MenuList>\n </Menu>\n )\n}\n\n// Unfortunately, you'll notice below, that I needed to use the array index,\n// against react best practices (https://reactjs.org/docs/lists-and-keys.html)\n// This is because the menu items have no unique identifier.\n\nexport const SecondaryActions = ({\n secondaryActions,\n secondaryOverflowMenuItems,\n reversed = false,\n}: Props): JSX.Element | null => {\n if (!secondaryActions && !secondaryOverflowMenuItems) return null\n\n const secondaryActionsAsToolbarItems = secondaryActions\n ? secondaryActions.map((action, i) => {\n if (\"menuItems\" in action) {\n return {\n key: `${i}`, // We shouldn't use an index here, see note above\n node: (\n <Menu\n align=\"right\"\n button={\n <Button\n secondary\n label={action.label}\n reversed={reversed}\n icon={<ChevronDownIcon role=\"presentation\" />}\n iconPosition=\"end\"\n />\n }\n >\n <MenuList>\n {action.menuItems.map((menuItem, i2) => (\n <TitleBlockMenuItem key={i2} {...menuItem} />\n ))}\n </MenuList>\n </Menu>\n ),\n }\n } else {\n if (\"onClick\" in action && \"href\" in action) {\n // eslint-disable-next-line no-console\n console.warn(\n \"\\u001b[33m \\nTITLE BLOCK WARNING:\\nSecondary actions only support \" +\n \"either an href or an onClick, not both simultaneously.\\n\"\n )\n }\n return {\n key: `${i}`, // We shouldn't use an index here, see note above\n node: (\n <Button\n secondary\n reversed={reversed}\n {...action}\n data-automation-id=\"title-block-secondary-actions-button\"\n data-testid=\"title-block-secondary-actions-button\"\n />\n ),\n }\n }\n })\n : []\n\n const overflowMenu = renderSecondaryOverflowMenu(\n secondaryOverflowMenuItems,\n reversed\n )\n\n const toolbarItems = [\n ...secondaryActionsAsToolbarItems,\n ...(overflowMenu\n ? [\n {\n key: \"overflowMenu\",\n node: overflowMenu,\n },\n ]\n : []),\n ]\n\n return (\n <div className={styles.secondaryActionsContainer}>\n <Toolbar\n items={toolbarItems}\n noGap\n automationId=\"title-block-secondary-actions-toolbar\"\n />\n </div>\n )\n}\n\nSecondaryActions.displayName = \"SecondaryActions\"\n"],"names":["renderSecondaryOverflowMenu","secondaryOverflowMenuItems","reversed","undefined","React","createElement","Menu","align","button","IconButton","label","icon","MeatballsIcon","role","id","TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID","MenuList","map","menuItem","i","TitleBlockMenuItem","__assign","key","SecondaryActions","_a","secondaryActions","_b","secondaryActionsAsToolbarItems","action","concat","node","Button","secondary","ChevronDownIcon","iconPosition","menuItems","i2","console","warn","overflowMenu","toolbarItems","__spreadArray","className","styles","secondaryActionsContainer","Toolbar","items","noGap","automationId","displayName"],"mappings":";;;;;;;;;;;;;;;;AAgBA,IAAMA,2BAA2B,GAAG,SAAAA,CAClCC,0BAAsD,EACtDC,QAAkB,EAAA;EAElB,IAAI,CAACD,0BAA0B,EAAE,OAAOE,SAAS;EACjD,oBACEC,KAAA,CAAAC,aAAA,CAACC,IAAI,EAAA;IACHC,KAAK,EAAC,OAAO;IACbC,MAAM,eACJJ,KAAC,CAAAC,aAAA,CAAAI,UAAU,EACT;MAAAC,KAAK,EAAC,qBAAqB;MAC3BR,QAAQ,EAAEA,QAAQ;MAClBS,IAAI,eAAEP,oBAACQ,aAAa,EAAA;QAACC,IAAI,EAAC;MAAc,CAAG,CAAA;MAC3CC,EAAE,EAAEC;IACJ,CAAA;EAAA,CAAA,eAGJX,KAAA,CAAAC,aAAA,CAACW,QAAQ,EAAA,IAAA,EACNf,0BAA0B,CAACgB,GAAG,CAAC,UAACC,QAAQ,EAAEC,CAAC,EAAK;IAAA,oBAC/Cf,KAAA,CAAAC,aAAA,CAACe,kBAAkB,EAAAC,QAAA,CAAA;MAACC,GAAG,EAAEH;KAAC,EAAMD,QAAQ,CAAA,CAAI;GAC7C,CAAC,CACO,CACN;AAEX,CAAC;AAED;AACA;AACA;AAAA,MAEaK,gBAAgB;EAAA,MAAhBA,gBAAgB,GAAG,SAAAA,CAACC,EAIzB,EAAA;QAHNC,gBAAgB,GAAAD,EAAA,CAAAC,gBAAA;MAChBxB,0BAA0B,GAAAuB,EAAA,CAAAvB,0BAAA;MAC1ByB,gBAAgB;MAAhBxB,QAAQ,GAAGwB,EAAA,KAAA,KAAA,CAAA,GAAA,KAAK,GAAAA,EAAA;IAEhB,IAAI,CAACD,gBAAgB,IAAI,CAACxB,0BAA0B,EAAE,OAAO,IAAI;IAEjE,IAAM0B,8BAA8B,GAAGF,gBAA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;aACZ;SAEL;MACF;IACH,CAAC,CAAC,GACF,EAAE;IAEN,IAAMW,YAAY,GAAGvC,2BAA2B,CAC9CC,0BAA0B,EAC1BC,QAAQ,CACT;IAED,IAAMsC,YAAY,GAAAC,aAAA,CAAAA,aAAA,CAAA,EAAA,EACbd,8BAA8B,EAAA,IAAA,CAAA,EAC7BY,YAAY,GACZ,CACE;MACEjB,GAAG,EAAE,cAAc;MACnBQ,IAAI,EAAES;IACP,CAAA,CACF,GACD,EAAE,EAAC,IAAA,CACR;IAED,oBACEnC,KAAK,CAAAC,aAAA,CAAA,KAAA,EAAA;MAAAqC,SAAS,EAAEC,MAAM,CAACC;IAAyB,CAAA,eAC9CxC,KAAA,CAAAC,aAAA,CAACwC,OAAO,EAAA;MACNC,KAAK,EAAEN,YAAY;MACnBO,KAAK,EACL,IAAA;MAAAC,YAAY,EAAC;IAAuC,CACpD,CAAA,CACE;EAEV,CAAC;EAEDzB,gBAAgB,CAAC0B,WAAW,GAAG,kBAAkB;EAAA,OArFpC1B,gBAAgB;AAAA;"}
|
|
@@ -18,8 +18,9 @@ export type MenuItemProps = {
|
|
|
18
18
|
*/
|
|
19
19
|
isActive?: boolean;
|
|
20
20
|
"data-testid"?: string;
|
|
21
|
+
id?: string;
|
|
21
22
|
};
|
|
22
23
|
export declare const MenuItem: {
|
|
23
|
-
({ label, icon, destructive, disabled, onClick, href, target, isActive, "data-testid": dataTestId, }: MenuItemProps): JSX.Element;
|
|
24
|
+
({ label, icon, destructive, disabled, onClick, href, target, isActive, "data-testid": dataTestId, id, }: MenuItemProps): JSX.Element;
|
|
24
25
|
displayName: string;
|
|
25
26
|
};
|
|
@@ -4,6 +4,6 @@ import { TitleBlockProps } from "./types";
|
|
|
4
4
|
* {@link https://cultureamp.design/?path=/story/components-titleblock--docs Storybook}
|
|
5
5
|
*/
|
|
6
6
|
export declare const TitleBlockZen: {
|
|
7
|
-
({ title, variant, breadcrumb, avatar, subtitle, sectionTitle, sectionTitleDescription, renderSectionTitle, pageSwitcherSelect, handleHamburgerClick, primaryAction, defaultAction, secondaryActions, secondaryOverflowMenuItems, navigationTabs, collapseNavigationAreaWhenPossible, textDirection, surveyStatus, titleAutomationId, avatarAutomationId, subtitleAutomationId, sectionTitleAutomationId, sectionTitleDescriptionAutomationId, breadcrumbAutomationId, breadcrumbTextAutomationId, }: TitleBlockProps): JSX.Element;
|
|
7
|
+
({ title, variant, breadcrumb, avatar, subtitle, sectionTitle, sectionTitleDescription, renderSectionTitle, pageSwitcherSelect, handleHamburgerClick, primaryAction, defaultAction, secondaryActions, secondaryOverflowMenuItems, navigationTabs, collapseNavigationAreaWhenPossible, textDirection, surveyStatus, id, titleAutomationId, avatarAutomationId, subtitleAutomationId, sectionTitleAutomationId, sectionTitleDescriptionAutomationId, breadcrumbAutomationId, breadcrumbTextAutomationId, autoHideMobileActionsMenu, }: TitleBlockProps): JSX.Element;
|
|
8
8
|
displayName: string;
|
|
9
9
|
};
|
|
@@ -6,8 +6,9 @@ export type MobileActionsProps = {
|
|
|
6
6
|
secondaryActions?: SecondaryActionsProps;
|
|
7
7
|
secondaryOverflowMenuItems?: TitleBlockMenuItemProps[];
|
|
8
8
|
drawerHandleLabelIconPosition?: ButtonProps["iconPosition"];
|
|
9
|
+
autoHide?: boolean;
|
|
9
10
|
};
|
|
10
11
|
export declare const MobileActions: {
|
|
11
|
-
({ primaryAction, defaultAction, secondaryActions, secondaryOverflowMenuItems, drawerHandleLabelIconPosition, }: MobileActionsProps): JSX.Element;
|
|
12
|
+
({ primaryAction, defaultAction, secondaryActions, secondaryOverflowMenuItems, drawerHandleLabelIconPosition, autoHide, }: MobileActionsProps): JSX.Element;
|
|
12
13
|
displayName: string;
|
|
13
14
|
};
|
|
@@ -34,6 +34,7 @@ export type TitleBlockProps = {
|
|
|
34
34
|
collapseNavigationAreaWhenPossible?: boolean;
|
|
35
35
|
textDirection?: TextDirection;
|
|
36
36
|
surveyStatus?: SurveyStatus;
|
|
37
|
+
id?: string;
|
|
37
38
|
titleAutomationId?: string;
|
|
38
39
|
breadcrumbAutomationId?: string;
|
|
39
40
|
breadcrumbTextAutomationId?: string;
|
|
@@ -41,6 +42,7 @@ export type TitleBlockProps = {
|
|
|
41
42
|
subtitleAutomationId?: string;
|
|
42
43
|
sectionTitleAutomationId?: string;
|
|
43
44
|
sectionTitleDescriptionAutomationId?: string;
|
|
45
|
+
autoHideMobileActionsMenu?: boolean;
|
|
44
46
|
};
|
|
45
47
|
/**
|
|
46
48
|
* ### PrimaryActionProps
|
package/dist/esm/index.css
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
.Main-module_main__hMyB1{z-index:0}
|
|
3
3
|
.Wrapper-module_wrapper__89WmC{background:var(--color-gray-100,#f9f9f9);display:grid;grid-template-rows:min-content 1fr min-content;min-height:100vh;position:relative}
|
|
4
4
|
.FooterActions-module_footerAction__v7eL-{display:flex;flex-basis:auto;flex-grow:1}.FooterActions-module_footerActionPrevious__2XByZ{grid-area:"prev";justify-content:start}.FooterActions-module_footerActionNext__IKRta{grid-area:"next";justify-content:end}
|
|
5
|
-
.
|
|
5
|
+
.Actions-module_actions__Prrp0{align-items:center;display:flex;flex-direction:column;flex-grow:1;grid-area:actions;justify-content:center}@media (min-width:768px){.Actions-module_actions__Prrp0{align-items:flex-start;flex-direction:row;justify-content:flex-end;margin-top:calc(var(--spacing-12, .75rem)*-1)}}
|
|
6
6
|
.FooterRoot-module_footerRoot__N-6nQ{align-items:center;background:var(--color-blue-500,#0168b3);display:grid;flex-grow:1;gap:var(--spacing-16,1rem);grid-template-areas:"prev stepper next";grid-template-columns:1fr 2fr 1fr;justify-content:center;padding:var(--spacing-24,1.5rem) var(--spacing-12,.75rem)}@media (min-width:768px){.FooterRoot-module_footerRoot__N-6nQ{bottom:0;grid-template-columns:1fr 5fr 1fr;padding:var(--spacing-24,1.5rem) var(--spacing-32,2rem);position:sticky;z-index:1}}
|
|
7
|
-
.ProgressStepper-module_stepsContainer__WMxXN{grid-area:stepper;width:100%}.ProgressStepper-module_stepList__b1wWX{align-items:flex-end;display:none;justify-content:center;list-style:none;margin:0;padding:0}@media (min-width:768px){.ProgressStepper-module_stepList__b1wWX{display:flex}}.ProgressStepper-module_step__-Ep19{container:step/inline-size;display:flex;flex-basis:100%;flex-grow:1;justify-content:center;max-width:var(--spacing-96,6rem);overflow-wrap:break-word;position:relative}.ProgressStepper-module_stepContent__B4uFS{align-items:center;display:flex;flex-direction:column}.ProgressStepper-module_stepIndicator__-qEWT{height:1.25rem;position:relative;width:1.25rem}.ProgressStepper-module_stepName__hS4lp{display:none;font-weight:var(--typography-paragraph-bold-font-weight,600);margin-bottom:var(--spacing-12,.75rem);text-align:center}.ProgressStepper-module_stepIcon__0Kh4y{color:var(--color-white,#fff);height:1.25rem;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:1.25rem}.ProgressStepper-module_stepDivider__KEZPU{border:var(--spacing-1,.0625rem) solid var(--color-white,#fff);border-radius:var(--border-solid-border-radius,7px);display:flex;flex-grow:1;height:0;left:100%;margin:0;min-width:calc(100% - var(--spacing-24, 1.5rem));position:absolute;top:calc(100% - .625rem);transform:translateX(-50%)}[dir=rtl] .ProgressStepper-module_stepDivider__KEZPU{left:unset;right:100%;transform:translateX(50%)}.ProgressStepper-module_stepperDescription__B00hX{display:flex;justify-content:center}@media (min-width:768px){.ProgressStepper-module_stepperDescription__B00hX{height:0;overflow:hidden;position:absolute;width:0}}@container step (min-width: 4.5rem){.ProgressStepper-module_stepName__hS4lp{display:inline}}
|
|
8
7
|
.Titles-module_titles__JYwU0{align-items:center;flex-grow:1;grid-area:titles;justify-content:center}.Titles-module_pageTitle__YDp9S,.Titles-module_titles__JYwU0{display:flex;flex-direction:column}.Titles-module_prefix__40x8n{margin-bottom:var(--spacing-4,.25rem)}.Titles-module_status__huuP7{margin-top:var(--spacing-8,.5rem)}
|
|
9
|
-
.
|
|
8
|
+
.Branding-module_branding__4h-rD{display:flex;flex-grow:1;grid-area:branding;justify-content:center;padding-top:var(--spacing-4,.25rem)}@media (min-width:768px){.Branding-module_branding__4h-rD{justify-content:unset}}.Branding-module_logo__vqqec{flex-basis:7.5rem}
|
|
9
|
+
.ProgressStepper-module_stepsContainer__WMxXN{grid-area:stepper;width:100%}.ProgressStepper-module_stepList__b1wWX{align-items:flex-end;display:none;justify-content:center;list-style:none;margin:0;padding:0}@media (min-width:768px){.ProgressStepper-module_stepList__b1wWX{display:flex}}.ProgressStepper-module_step__-Ep19{container:step/inline-size;display:flex;flex-basis:100%;flex-grow:1;justify-content:center;max-width:var(--spacing-96,6rem);overflow-wrap:break-word;position:relative}.ProgressStepper-module_stepContent__B4uFS{align-items:center;display:flex;flex-direction:column}.ProgressStepper-module_stepIndicator__-qEWT{height:1.25rem;position:relative;width:1.25rem}.ProgressStepper-module_stepName__hS4lp{display:none;font-weight:var(--typography-paragraph-bold-font-weight,600);margin-bottom:var(--spacing-12,.75rem);text-align:center}.ProgressStepper-module_stepIcon__0Kh4y{color:var(--color-white,#fff);height:1.25rem;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:1.25rem}.ProgressStepper-module_stepDivider__KEZPU{border:var(--spacing-1,.0625rem) solid var(--color-white,#fff);border-radius:var(--border-solid-border-radius,7px);display:flex;flex-grow:1;height:0;left:100%;margin:0;min-width:calc(100% - var(--spacing-24, 1.5rem));position:absolute;top:calc(100% - .625rem);transform:translateX(-50%)}[dir=rtl] .ProgressStepper-module_stepDivider__KEZPU{left:unset;right:100%;transform:translateX(50%)}.ProgressStepper-module_stepperDescription__B00hX{display:flex;justify-content:center}@media (min-width:768px){.ProgressStepper-module_stepperDescription__B00hX{height:0;overflow:hidden;position:absolute;width:0}}@container step (min-width: 4.5rem){.ProgressStepper-module_stepName__hS4lp{display:inline}}
|
|
10
10
|
.Root-module_root__7DVw5{align-items:center;background-color:var(--color-white,#fff);box-shadow:var(--shadow-small-box-shadow,0 3px 16px rgba(0,0,0,.06),0 1px 3px rgba(0,0,0,.1));display:grid;flex-grow:1;gap:var(--spacing-16,1rem);grid-template:"branding" min-content "titles" max-content "actions" min-content/1fr;justify-content:center;padding:var(--spacing-24,1.5rem);text-align:center}@media (min-width:768px){.Root-module_root__7DVw5{align-items:start;grid-template:"branding titles actions" min-content/1fr max-content 1fr;position:sticky;top:0;z-index:1}}
|
|
11
11
|
.SVG-module_icon__8J5Ev{display:inline-block;height:20px;width:20px}.SVG-module_icon__8J5Ev>use{pointer-events:none}@media screen and (-ms-high-contrast:active){.SVG-module_icon__8J5Ev{color:#000}}@media screen and (-ms-high-contrast:white-on-black){.SVG-module_icon__8J5Ev{color:#fff}}@media screen and (-ms-high-contrast:black-on-white){.SVG-module_icon__8J5Ev{color:#000}}.SVG-module_inheritSize__Q8iam{display:block;height:inherit;width:inherit}
|
|
12
12
|
.Avatar-module_wrapper__LY2q2{align-items:center;background:var(--color-gray-300,#eaeaec);border-radius:100%;box-sizing:border-box;display:flex;justify-content:center;overflow:hidden}.Avatar-module_wrapper__LY2q2:not(.Avatar-module_small__PeksS){border:3px solid var(--color-white,#fff);box-shadow:var(--shadow-small-box-shadow,0 3px 16px rgba(0,0,0,.06),0 1px 3px rgba(0,0,0,.1))}.Avatar-module_wrapper__LY2q2.Avatar-module_personal__2U7--{background:var(--color-orange-100,#fff0e8)}.Avatar-module_wrapper__LY2q2.Avatar-module_otherUser__b-drl{background:var(--color-gray-300,#eaeaec)}.Avatar-module_wrapper__LY2q2.Avatar-module_company__2qtJE{background:var(--color-white,#fff);border:0;border-radius:var(--border-solid-border-radius,7px);padding:6px}.Avatar-module_wrapper__LY2q2.Avatar-module_small__PeksS{height:1.25rem;width:1.25rem}.Avatar-module_wrapper__LY2q2.Avatar-module_small__PeksS .Avatar-module_initials__VDY2Q{margin-bottom:-1px}.Avatar-module_wrapper__LY2q2.Avatar-module_small__PeksS.Avatar-module_company__2qtJE{padding:0}.Avatar-module_wrapper__LY2q2.Avatar-module_medium__Vy3V8{height:3rem;width:3rem}.Avatar-module_wrapper__LY2q2.Avatar-module_medium__Vy3V8 .Avatar-module_initials__VDY2Q{margin-bottom:-1px}.Avatar-module_wrapper__LY2q2.Avatar-module_large__qiNWs{height:4.5rem;width:4.5rem}.Avatar-module_wrapper__LY2q2.Avatar-module_xlarge__Vx4IG{height:6rem;width:6rem}.Avatar-module_wrapper__LY2q2.Avatar-module_xxlarge__oOoGq{height:7.75rem;width:7.75rem}.Avatar-module_wrapper__LY2q2 .Avatar-module_initials__VDY2Q{speak-as:spell-out;border-bottom:none;text-decoration:none}.Avatar-module_avatarImage__FuULy{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.Avatar-module_loading__i9V-D .Avatar-module_avatarImage__FuULy{display:none}.Avatar-module_companyAvatarImage__7rlfG{border-radius:4px;box-sizing:border-box;-o-object-fit:contain;object-fit:contain}.Avatar-module_fallbackIcon__MPWxq{color:rgba(var(--color-purple-800-rgb,47,36,56),.7);width:28px}.Avatar-module_xxlarge__oOoGq .Avatar-module_fallbackIcon__MPWxq{width:75px}.Avatar-module_xlarge__Vx4IG .Avatar-module_fallbackIcon__MPWxq{width:60px}.Avatar-module_large__qiNWs .Avatar-module_fallbackIcon__MPWxq{width:35px}.Avatar-module_medium__Vy3V8 .Avatar-module_fallbackIcon__MPWxq{margin-bottom:-1px;width:25px}.Avatar-module_small__PeksS .Avatar-module_fallbackIcon__MPWxq{margin-bottom:-1px;width:10px}.Avatar-module_initials__VDY2Q{box-sizing:border-box;color:var(--color-purple-800,#2f2438);font-family:var(--typography-heading-1-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:22px;font-weight:var(--typography-heading-1-font-weight,700);letter-spacing:var(--typography-heading-3-letter-spacing,normal);padding-left:5px;padding-right:5px;text-align:center;width:100%}.Avatar-module_initials__VDY2Q:not(.Avatar-module_longName__31Yuf):before{content:"";display:block;margin-top:-.001em}.Avatar-module_xlarge__Vx4IG .Avatar-module_initials__VDY2Q,.Avatar-module_xxlarge__oOoGq .Avatar-module_initials__VDY2Q{font-size:34px;letter-spacing:var(--typography-heading-1-letter-spacing,normal)}.Avatar-module_medium__Vy3V8 .Avatar-module_initials__VDY2Q{font-size:16px}.Avatar-module_medium__Vy3V8 .Avatar-module_initials__VDY2Q,.Avatar-module_small__PeksS .Avatar-module_initials__VDY2Q{font-weight:var(--typography-heading-5-font-weight,600);letter-spacing:var(--typography-heading-5-letter-spacing,normal)}.Avatar-module_small__PeksS .Avatar-module_initials__VDY2Q{font-size:8px}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -406,6 +406,7 @@ export { TileGrid } from './Tile/TileGrid/TileGrid.mjs';
|
|
|
406
406
|
export { TimeField } from './TimeField/TimeField.mjs';
|
|
407
407
|
export { TitleBlockZen } from './TitleBlockZen/TitleBlockZen.mjs';
|
|
408
408
|
export { NavigationTab } from './TitleBlockZen/subcomponents/NavigationTabs.mjs';
|
|
409
|
+
export { TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID, TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID } from './TitleBlockZen/constants.mjs';
|
|
409
410
|
export { ToggleSwitch } from './ToggleSwitch/ToggleSwitch/ToggleSwitch.mjs';
|
|
410
411
|
export { ToggleSwitchField } from './ToggleSwitch/ToggleSwitchField/ToggleSwitchField.mjs';
|
|
411
412
|
export { Tooltip } from './Tooltip/Tooltip.mjs';
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2770,9 +2770,10 @@ type MenuItemProps = {
|
|
|
2770
2770
|
*/
|
|
2771
2771
|
isActive?: boolean;
|
|
2772
2772
|
"data-testid"?: string;
|
|
2773
|
+
id?: string;
|
|
2773
2774
|
};
|
|
2774
2775
|
declare const MenuItem: {
|
|
2775
|
-
({ label, icon, destructive, disabled, onClick, href, target, isActive, "data-testid": dataTestId, }: MenuItemProps): JSX.Element;
|
|
2776
|
+
({ label, icon, destructive, disabled, onClick, href, target, isActive, "data-testid": dataTestId, id, }: MenuItemProps): JSX.Element;
|
|
2776
2777
|
displayName: string;
|
|
2777
2778
|
};
|
|
2778
2779
|
|
|
@@ -4141,6 +4142,7 @@ type TitleBlockProps = {
|
|
|
4141
4142
|
collapseNavigationAreaWhenPossible?: boolean;
|
|
4142
4143
|
textDirection?: TextDirection;
|
|
4143
4144
|
surveyStatus?: SurveyStatus;
|
|
4145
|
+
id?: string;
|
|
4144
4146
|
titleAutomationId?: string;
|
|
4145
4147
|
breadcrumbAutomationId?: string;
|
|
4146
4148
|
breadcrumbTextAutomationId?: string;
|
|
@@ -4148,6 +4150,7 @@ type TitleBlockProps = {
|
|
|
4148
4150
|
subtitleAutomationId?: string;
|
|
4149
4151
|
sectionTitleAutomationId?: string;
|
|
4150
4152
|
sectionTitleDescriptionAutomationId?: string;
|
|
4153
|
+
autoHideMobileActionsMenu?: boolean;
|
|
4151
4154
|
};
|
|
4152
4155
|
/**
|
|
4153
4156
|
* ### PrimaryActionProps
|
|
@@ -4257,10 +4260,13 @@ type CustomBreadcrumbProps = TitleBlockBreadcrumbProps & {
|
|
|
4257
4260
|
* {@link https://cultureamp.design/?path=/story/components-titleblock--docs Storybook}
|
|
4258
4261
|
*/
|
|
4259
4262
|
declare const TitleBlockZen: {
|
|
4260
|
-
({ title, variant, breadcrumb, avatar, subtitle, sectionTitle, sectionTitleDescription, renderSectionTitle, pageSwitcherSelect, handleHamburgerClick, primaryAction, defaultAction, secondaryActions, secondaryOverflowMenuItems, navigationTabs, collapseNavigationAreaWhenPossible, textDirection, surveyStatus, titleAutomationId, avatarAutomationId, subtitleAutomationId, sectionTitleAutomationId, sectionTitleDescriptionAutomationId, breadcrumbAutomationId, breadcrumbTextAutomationId, }: TitleBlockProps): JSX.Element;
|
|
4263
|
+
({ title, variant, breadcrumb, avatar, subtitle, sectionTitle, sectionTitleDescription, renderSectionTitle, pageSwitcherSelect, handleHamburgerClick, primaryAction, defaultAction, secondaryActions, secondaryOverflowMenuItems, navigationTabs, collapseNavigationAreaWhenPossible, textDirection, surveyStatus, id, titleAutomationId, avatarAutomationId, subtitleAutomationId, sectionTitleAutomationId, sectionTitleDescriptionAutomationId, breadcrumbAutomationId, breadcrumbTextAutomationId, autoHideMobileActionsMenu, }: TitleBlockProps): JSX.Element;
|
|
4261
4264
|
displayName: string;
|
|
4262
4265
|
};
|
|
4263
4266
|
|
|
4267
|
+
declare const TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID = "title-block-secondary-menu";
|
|
4268
|
+
declare const TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID = "title-block-other-actions";
|
|
4269
|
+
|
|
4264
4270
|
type ToggledStatus = "on" | "off";
|
|
4265
4271
|
type ToggleSwitchProps = {
|
|
4266
4272
|
toggledStatus?: ToggledStatus;
|
|
@@ -4390,4 +4396,4 @@ declare const Workflow: {
|
|
|
4390
4396
|
};
|
|
4391
4397
|
};
|
|
4392
4398
|
|
|
4393
|
-
export { AcademyIcon, AccountBasics, Action, ActionOffIcon, ActionOffWhiteIcon, ActionOnIcon, ActionPlans, type ActionProps, type ActiveFiltersArray, AddIcon, AddImage, AddLinkIcon, AddUser, AddWhiteIcon, AiIcon, Alarm, type AllowedHeadingColors, type AllowedHeadingTags, type AllowedTextColors, type AllowedTextTags, AmplifyOthers, type AnimatedSceneProps, ArchivedIcon, ArchivedWhiteIcon, ArrowBackwardIcon, ArrowDownIcon, ArrowForwardIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, Assertive, AsyncSelect, type AttrsValidator, Avatar, AvatarGroup, type AvatarGroupAvatarProps, type AvatarGroupProps, type AvatarGroupSize, type AvatarList, type AvatarProps, type AvatarSizes, BCorp, Badge, BadgeAnimated, type BadgeProps, BaselineSurvey, Behaviour, BenefitsSurvey, BlankIcon, BlankSurvey, BoldIcon, BookmarkOffIcon, BookmarkOnIcon, BranchingIcon, Brand, BrandMoment, BrandMomentCaptureIntro, BrandMomentError, BrandMomentLogin, BrandMomentNewAccountOnboarding, BrandMomentPositiveOutro, type BrandMomentProps, BrandMomentStarterKit, BrandMomentUploadEmployeeData, type BrandProps, BullettedListIcon, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonWithHrefNotOnClick, type ButtonWithOnClickNotHref, CaMonogramIcon, CalendarRange, type CalendarRangeElement, type CalendarRangeProps, CalendarSingle, type CalendarSingleElement, type CalendarSingleProps, CalendarSync, CameraIcon, CandidateSurvey, Card, type CardProps, type CardVariants, CautionIcon, CautionWhiteIcon, Cautionary, ChangeAgents, ChangeReadiness, ChangeSuccess, CheckIcon, Checkbox, CheckboxField, type CheckboxFieldProps, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckedStatus, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClearButton, type ClearButtonProps, ClearIcon, ClearWhiteIcon, CloseIcon, ClosedIcon, ClosedWhiteIcon, Coaching, Collaboration, Collapsible, CollapsibleGroup, type CollapsibleGroupProps, type CollapsibleProps, type CommandFactory, type CommandOrTransaction, CommentAddIcon, CommentAddWhiteIcon, CommentBankIcon, CommentDisabledIcon, CommentDisabledWhiteIcon, CommentIcon, CommentWhiteIcon, Communication, Communications, CommunicationsIcon, Community, Company, type CompanyAvatarProps, CompanyDetails, CompanyValues, CompetencyLibraryIcon, ConfigureIcon, ConfirmationModal, type ConfirmationModalProps, ConnectIcon, ConnectLineIcon, ConnectTheDots, Container, Content, type ContentProps, ContextModal, type ContextModalProps, type ContextModalSecondaryActionProps, Conversations, CultureLab, type CustomBreadcrumbProps, type CustomButtonProps, CustomIcon, type CustomNavigationTabProps, CustomOnboardSurvey, CustomSurvey, CustomUnattributedSurvey, DashboardIcon, DataVisualization, DateEndIcon, DateEndWhiteIcon, DateFormat, DateInput, DateInputDescription, type DateInputDescriptionProps, type DateInputProps, DateInputWithIconButton, type DateInputWithIconButtonProps, type DateInputWithIconButtonRefs, DatePicker, type DatePickerProps, type DateRangeFieldValidationMessage, DateRangeIcon, DateRangePicker, type DateRangePickerProps, DateRangeWhiteIcon, DateStartIcon, DateStartWhiteIcon, type DateValidationResponse, DayOfWeek, DecreaseIndentIcon, type DefaultActionProps, type DefaultTagProps, DeltaBareIcon, DeltaBareWhiteIcon, DeltaFlatIcon, DeltaIcon, DeltaNegativeIcon, DeltaPositiveIcon, DeltaWhiteIcon, DemographicsIcon, DepartmentIcon, DirectionalLink, type DirectionalLinkProps, type DisabledDayMatchers, type DisabledDays, type Dispatch, Divider, type DividerProps, type Doc, type DocContent, DraftIcon, DraftWhiteIcon, DragIcon, DuplicateIcon, EditIcon, EditableRichTextContent, type EditableRichTextContentProps, type EditorContentArray, type EditorRows, type EditorView, EffectivenessIcon, EllipsisIcon, EmailIcon, EmergencyResponse, EmployeeData, EmptyIcon, EmptyState, type EmptyStateProps, EmptyStatesAction, EmptyStatesInformative, EmptyStatesNegative, EmptyStatesNeutral, EmptyStatesPositive, EmptyWhiteIcon, EndIcon, EndOfProbation, EngagementIcon, EngagementSurvey, EngagementSurveySummaryFemale, EngagementSurveySummaryMale, EngagementWhiteIcon, EqualIcon, EqualWhiteIcon, ErrorPage, type ErrorPageProps, EssentialProductivity, EssentialResilience, ExclamationIcon, ExclamationOctagonIcon, ExclamationOctagonWhiteIcon, ExclamationWhiteIcon, ExecutiveReportSharing, ExitSurvey, ExperienceIcon, ExpertAdviceCollapsible, type ExpertAdviceCollapsibleProps, ExportIcon, ExportWhiteIcon, ExternalLinkIcon, FaceDissatisfiedIcon, FaceDissatisfiedWhiteIcon, FaceNeutralIcon, FaceNeutralWhiteIcon, FaceSatisfiedIcon, FaceSatisfiedWhiteIcon, FaceVeryDissatisfiedIcon, FaceVeryDissatisfiedWhiteIcon, FaceVerySatisfiedIcon, FaceVerySatisfiedWhiteIcon, FactorsIcon, FastAction, FavoriteOffIcon, FavoriteOnIcon, Feedback, FeedbackClassifyIcon, FeedbackClassifyWhiteIcon, FeedbackCompletedIcon, FeedbackCompletedWhiteIcon, FeedbackReportIcon, FeedbackReportWhiteIcon, FeedbackReviewIcon, FeedbackReviewWhiteIcon, FeedbackShareIcon, FeedbackShareWhiteIcon, FieldGroup, type FieldGroupProps, FieldMessage, type FieldMessageProps, type FieldMessageStatus, FileIcon, FileWhiteIcon, Filter, type FilterAttributes, FilterBar, type FilterBarContextValue, type FilterBarProps, FilterBarProvider, type FilterBarProviderProps, type FilterBarState, type FilterBarStateFilters, FilterButton, type FilterButtonProps, FilterButtonRemovable, type FilterButtonRemovableProps, type FilterButtonRemovableRefs, FilterContents, type FilterContentsProps, FilterDatePicker, FilterDatePickerField, type FilterDatePickerFieldProps, type FilterDatePickerProps, FilterDateRangePicker, type FilterDateRangePickerProps, FilterIcon, type FilterIsUsableWhen, FilterMultiSelect, type FilterMultiSelectProps, type FilterProps, FilterSelect, type FilterSelectProps, type FilterState, type FilterStateEditableAttributes, type FilterTriggerButtonProps, type FilterTriggerRef, type Filters, type FiltersValues, Fire, Fireworks, FlagOffIcon, FlagOffWhiteIcon, FlagOnIcon, FullIcon, FullImport, Gdpr, GeneralOnboardSurvey, type GenericAvatarProps, GenericModal, type GenericModalProps, type GetDateValidationHandlerArgs, GlobalNotification, type GlobalNotificationProps, Goals, GridViewIcon, GuidanceBlock, type GuidanceBlockProps, type GuidanceBlockState, GuidanceIcon, HamburgerIcon, HaveTheCourageToBeVulnerable, Heading, type HeadingProps, type HeadingVariants, HealthAndSafety, HeatmapIcon, HeatmapWhiteIcon, HierarchyIcon, HomeIcon, HrisImport, IconButton, type IconButtonProps, ImportIcon, ImportWhiteIcon, InclusionSurvey, IncreaseIndentIcon, IndicatorActiveIcon, IndicatorInactiveIcon, Individual180, Individual360, InfluentialCommunication, Information360Upgrade, InformationDemographicFocus, InformationEmergingTrends, InformationEmployeeLifecycle, InformationIcon, InformationReportOwner, InformationReportOwnerByRule, InformationTile, type InformationTileProps, InformationTurnoverCalculator, InformationTurnoverForecast, InformationWhiteIcon, Informative, InlineNotification, type InlineNotificationProps, Input, InputEditModal, type InputEditModalProps, type InputProps, InputRange, type InputRangeProps, InputSearch, type InputSearchProps, InputStatus, type InputStatusType, type InputType, InputTypes, InsightIcon, Insights, InsightsIcon, InternSurvey, type InternalFilterState, InvisibleIcon, ItalicsIcon, type ItemType, KaizenProvider, type KaizenProviderProps, KebabIcon, KioskIcon, KioskWhiteIcon, Label, type LabelProps, LabelledMessage, type LabelledMessageProps, LaunchIcon, LaunchWhiteIcon, LeaderReportSharing, LeaderboardIcon, Leadership180, Leadership360, LeadingChange, LeadingThroughCrisis, Learn, LearnFasterThroughFeedback, LikertScaleLegacy, type LikertScaleProps, LinkEditor, type LinkEditorAttrs, type LinkEditorProps, LinkModal, LinkPopover, type LinkPopoverProps, type ListBoxItems, type ListBoxProps, type ListBoxSectionProps$1 as ListBoxSectionProps, ListViewIcon, LiveIcon, type LoadMoreButtonProps, LoadingGraphic, type LoadingGraphicProps, type LoadingGraphicSize, LoadingHeading, type LoadingHeadingProps, LoadingInput, type LoadingInputProps, LoadingParagraph, type LoadingParagraphProps, LoadingSpinner, type LoadingSpinnerProps, LockIcon, LockWhiteIcon, LogOutIcon, London, Manager180, Manager360, ManagerLearning, ManagerReportSharing, type MappedFilters, type MarkRange, MaximizeIcon, MeatballsIcon, MeetingVoices, Melbourne, Menu, type MenuFooterProps, MenuHeading, type MenuHeadingProps, MenuItem, type MenuItemProps, MenuList, type MenuListProps, type MenuLoadingSkeletonProps, type MenuProps, MenuTriggerConsumer, MenuTriggerProvider, type MenuTriggerProviderContextType, type MenuTriggerProviderProps, Microphone, MinimizeIcon, MinusIcon, ModalAccessibleDescription, type ModalAccessibleDescriptionProps, ModalAccessibleLabel, type ModalAccessibleLabelProps, ModalBody, type ModalBodyProps, ModalContext, type ModalContextType, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, MultiActionTile, type MultiActionTileProps, MultiSelect, type MultiSelectItem, type MultiSelectOptionProps, type MultiSelectProps, NavigationTab, type NavigationTabProps, type NavigationTabs, NavigatorIcon, Negative, NewWaysOfWorking, NewYork, type NoResultsProps, NotificationIcon, NumberedListIcon, NumberedListRtlIcon, Objective, OneOnOne, OpenIcon, OpenWhiteIcon, OrganizationIcon, Pagination, PaginationLink, type PaginationLinkProps, type PaginationProps, PaperPen, PartialImport, ParticipationIcon, ParticipationWhiteIcon, PauseIcon, PauseWhiteIcon, PercentageIcon, PerformanceCompanySettings, PerformanceDiagnostics, PermissionsIcon, PersonIcon, PhasedWeek1OnboardSurvey, PhasedWeek5OnboardSurvey, PhotoUploadIcon, Popover, type PopoverProps, Positive, PowerIcon, PowerfulInsights, type PrimaryActionProps, PrintIcon, PrintWhiteIcon, Privacy, Process, ProcessManagerIcon, Productivity, Programs, ProgressBar, type ProgressBarProps, PromotionIcon, PromotionWhiteIcon, PulseSurvey, QuestionIcon, QuestionWhiteIcon, QuestionsIcon, QuickEngagementSurvey, Radio, RadioField, type RadioFieldProps, RadioGroup, type RadioGroupProps, type RadioProps, ReOnboarding, ReadArticle, Recommendation, RedoIcon, RefreshIcon, RemoteManager, RemoteOnboardSurvey, RemoteWorkQSet, type RemovableFilterTriggerProps, RemoveLinkIcon, RepeatsIcon, ReportIcon, ReportSharing, ReportSharingIcon, Resilience, Resources, Response, RestoreIcon, ReturnToWorkplace, RichTextContent, type RichTextContentProps, RichTextEditor, type RichTextEditorProps, SanFrancisco, SaveIcon, type SceneProps, ScienceBackedTools, SearchField, type SearchFieldProps, SearchIcon, type SearchInputProps, SearchWhiteIcon, type SecondaryActionItemProps, type SecondaryActionsProps, type SectionTitleRenderProps, SecurityTipIcon, Select, type SelectItem, type SelectItemNode, type SelectOption, type SelectOptionGroup, type SelectOptionGroupNode, type SelectOptionNode, type SelectProps, SelectionConsumer, SelectionProvider, type SelectionProviderContextType, type SelectionProviderProps, SendIcon, SendRtlIcon, SettingsIcon, SettingsWhiteIcon, ShareIcon, ShareReport, SinglePointOnboardSurvey, SkillsCoach1On1Meetings, SkillsCoachCoaching, SkillsCoachEmployeeDevelopment, SkillsCoachEssentialFeedback, SkillsCoachEssentialProductivity, SkillsCoachEssentialResilience, SkillsCoachFeedback, SkillsCoachInfluentialCommunication, SkillsCoachLeadingChange, SkillsCoachManagerHub, SkillsCoachProductivity, SkillsCoachRemoteManager, SkillsCoachResilience, SkillsCoachStrategy, SkillsDevelopment, SkipIcon, SkipWhiteIcon, Skirt, SkirtCard, type SkirtCardProps, type SkirtProps, Slider, type SliderFieldProps, SortAscendingIcon, SortDescendingIcon, type SourceFiltersState, SpinnerIcon, SplitButton, type SplitButtonProps, type SpotProps, SpreadsheetTemplate, StarOffIcon, StarOnIcon, Starburst, StartIcon, StatelessMenu, type StatelessMenuProps, Stop, Strategy, SubtractIcon, SubtractWhiteIcon, SuccessIcon, SuccessWhiteIcon, SupportIcon, SurveyGetStarted, SurveyOverviewClosed, type SurveyStatus, SurveysIcon, SurveysWhiteIcon, SyncIcon, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, TableCard, type TableCardProps, TableContainer, type TableContainerProps, TableHeader, type TableHeaderProps, TableHeaderRowCell, type TableHeaderRowCellProps, type TableHeaderRowProps, TableRow, TableRowCell, type TableRowCellProps, type TableRowProps, Tabs, type TabsProps, Tag, TagIcon, type TagProps, type TagWithAvatarProps, TakeAim, TasksIcon, TasksWhiteIcon, Team1, Team2, TeamEffectiveness1, TeamEffectiveness2, TemplateIcon, TemplateWhiteIcon, Templates, TermsAgreement, Text, TextAnalyticsIcon, TextAnalyticsWhiteIcon, TextArea, TextAreaField, type TextAreaFieldProps, type TextAreaProps, type TextDirection, TextField, type TextFieldProps, type TextProps, type TextVariants, ThumbsDownIcon, ThumbsUpIcon, type TileElement, TileGrid, type TileGridProps, TimeField, type TimeFieldProps, TimeIcon, TimeWhiteIcon, Timezone, type TitleBlockAvatarProps, type TitleBlockBadgeProps, type TitleBlockBreadcrumbProps, type TitleBlockBreadcrumbType, type TitleBlockButtonProps, type TitleBlockCustomButtonProps, type TitleBlockDistributiveOmit, type TitleBlockMenuGroup, type TitleBlockMenuItemProps, type TitleBlockProps, type TitleBlockSelectProps, type TitleBlockVariant, TitleBlockZen, ToastNotification, type ToastNotificationObj, type ToastNotificationProps, ToastNotificationsList, ToggleIconButton, type ToggleIconButtonProps, ToggleSwitch, ToggleSwitchField, type ToggleSwitchFieldProps, type ToggleSwitchProps, type ToggledStatus, Toolbar, type ToolbarControlTypes, type ToolbarItems, type ToolbarProps, ToolbarSection, type ToolbarSectionProps, Tooltip, type TooltipProps, TrafficCone, Training1, Training2, Training3, TranslationIcon, TrashIcon, Trophy, TrustOthersToMakeDecisions, UnattributedIcon, UnattributedWhiteIcon, UnderConstruction, UnderlineIcon, UndoIcon, type UseDateValidationArgs, type UseDateValidationValue, UserAddIcon, UserDeleteIcon, UserExitIcon, UserIcon, UserSelectIcon, UserSettingsIcon, UserUpdateIcon, UsersIcon, type ValidateDateResponse, type ValidationMessage$1 as ValidationMessage, type ValidationResponse, ValueAdd, ValuesSurvey1, ValuesSurvey2, Video, ViewReports, VisibleIcon, VisuallyHidden, type VisuallyHiddenProps, Well, type WellProps, WellbeingSurvey, WellbeingSurvey1, WellbeingSurvey2, WellbeingSurvey3, Workflow, type WorkflowProps, Workshop, WritingIcon, ZoomInIcon, ZoomOutIcon, addMark, bulletListRule, calculateDisabledDays, createDocNode, createDocNodeFromContent, createEditorState, createLinkManager, createRichTextEditor, formatDateAsNumeral, formatDateAsText, formatDateRangeValue, getDateValidationHandler, getMarkAttrs, getMarkRange, getMarks, getNodes, getSelectedOptionKeys, getSelectedOptionLabels, getTruncatedLabels, isDisabledDate, isInvalidDate, isSelectingDayInCalendar, isValidWeekStartsOn, listIsActive, markContainsSelection, markIsActive, orderedListRule, parseDateAsTextOrNumeral, parseDateFromNumeralFormatValue, parseDateFromTextFormatValue, removeMark, setFocusInCalendar, updateMark, useDateValidation, useFilterBarContext, useMenuTriggerContext, usePopover, useRichTextEditor, useSelectionContext, useToastNotification, validateAndRemoveMarks, validateDate };
|
|
4399
|
+
export { AcademyIcon, AccountBasics, Action, ActionOffIcon, ActionOffWhiteIcon, ActionOnIcon, ActionPlans, type ActionProps, type ActiveFiltersArray, AddIcon, AddImage, AddLinkIcon, AddUser, AddWhiteIcon, AiIcon, Alarm, type AllowedHeadingColors, type AllowedHeadingTags, type AllowedTextColors, type AllowedTextTags, AmplifyOthers, type AnimatedSceneProps, ArchivedIcon, ArchivedWhiteIcon, ArrowBackwardIcon, ArrowDownIcon, ArrowForwardIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, Assertive, AsyncSelect, type AttrsValidator, Avatar, AvatarGroup, type AvatarGroupAvatarProps, type AvatarGroupProps, type AvatarGroupSize, type AvatarList, type AvatarProps, type AvatarSizes, BCorp, Badge, BadgeAnimated, type BadgeProps, BaselineSurvey, Behaviour, BenefitsSurvey, BlankIcon, BlankSurvey, BoldIcon, BookmarkOffIcon, BookmarkOnIcon, BranchingIcon, Brand, BrandMoment, BrandMomentCaptureIntro, BrandMomentError, BrandMomentLogin, BrandMomentNewAccountOnboarding, BrandMomentPositiveOutro, type BrandMomentProps, BrandMomentStarterKit, BrandMomentUploadEmployeeData, type BrandProps, BullettedListIcon, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonWithHrefNotOnClick, type ButtonWithOnClickNotHref, CaMonogramIcon, CalendarRange, type CalendarRangeElement, type CalendarRangeProps, CalendarSingle, type CalendarSingleElement, type CalendarSingleProps, CalendarSync, CameraIcon, CandidateSurvey, Card, type CardProps, type CardVariants, CautionIcon, CautionWhiteIcon, Cautionary, ChangeAgents, ChangeReadiness, ChangeSuccess, CheckIcon, Checkbox, CheckboxField, type CheckboxFieldProps, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckedStatus, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClearButton, type ClearButtonProps, ClearIcon, ClearWhiteIcon, CloseIcon, ClosedIcon, ClosedWhiteIcon, Coaching, Collaboration, Collapsible, CollapsibleGroup, type CollapsibleGroupProps, type CollapsibleProps, type CommandFactory, type CommandOrTransaction, CommentAddIcon, CommentAddWhiteIcon, CommentBankIcon, CommentDisabledIcon, CommentDisabledWhiteIcon, CommentIcon, CommentWhiteIcon, Communication, Communications, CommunicationsIcon, Community, Company, type CompanyAvatarProps, CompanyDetails, CompanyValues, CompetencyLibraryIcon, ConfigureIcon, ConfirmationModal, type ConfirmationModalProps, ConnectIcon, ConnectLineIcon, ConnectTheDots, Container, Content, type ContentProps, ContextModal, type ContextModalProps, type ContextModalSecondaryActionProps, Conversations, CultureLab, type CustomBreadcrumbProps, type CustomButtonProps, CustomIcon, type CustomNavigationTabProps, CustomOnboardSurvey, CustomSurvey, CustomUnattributedSurvey, DashboardIcon, DataVisualization, DateEndIcon, DateEndWhiteIcon, DateFormat, DateInput, DateInputDescription, type DateInputDescriptionProps, type DateInputProps, DateInputWithIconButton, type DateInputWithIconButtonProps, type DateInputWithIconButtonRefs, DatePicker, type DatePickerProps, type DateRangeFieldValidationMessage, DateRangeIcon, DateRangePicker, type DateRangePickerProps, DateRangeWhiteIcon, DateStartIcon, DateStartWhiteIcon, type DateValidationResponse, DayOfWeek, DecreaseIndentIcon, type DefaultActionProps, type DefaultTagProps, DeltaBareIcon, DeltaBareWhiteIcon, DeltaFlatIcon, DeltaIcon, DeltaNegativeIcon, DeltaPositiveIcon, DeltaWhiteIcon, DemographicsIcon, DepartmentIcon, DirectionalLink, type DirectionalLinkProps, type DisabledDayMatchers, type DisabledDays, type Dispatch, Divider, type DividerProps, type Doc, type DocContent, DraftIcon, DraftWhiteIcon, DragIcon, DuplicateIcon, EditIcon, EditableRichTextContent, type EditableRichTextContentProps, type EditorContentArray, type EditorRows, type EditorView, EffectivenessIcon, EllipsisIcon, EmailIcon, EmergencyResponse, EmployeeData, EmptyIcon, EmptyState, type EmptyStateProps, EmptyStatesAction, EmptyStatesInformative, EmptyStatesNegative, EmptyStatesNeutral, EmptyStatesPositive, EmptyWhiteIcon, EndIcon, EndOfProbation, EngagementIcon, EngagementSurvey, EngagementSurveySummaryFemale, EngagementSurveySummaryMale, EngagementWhiteIcon, EqualIcon, EqualWhiteIcon, ErrorPage, type ErrorPageProps, EssentialProductivity, EssentialResilience, ExclamationIcon, ExclamationOctagonIcon, ExclamationOctagonWhiteIcon, ExclamationWhiteIcon, ExecutiveReportSharing, ExitSurvey, ExperienceIcon, ExpertAdviceCollapsible, type ExpertAdviceCollapsibleProps, ExportIcon, ExportWhiteIcon, ExternalLinkIcon, FaceDissatisfiedIcon, FaceDissatisfiedWhiteIcon, FaceNeutralIcon, FaceNeutralWhiteIcon, FaceSatisfiedIcon, FaceSatisfiedWhiteIcon, FaceVeryDissatisfiedIcon, FaceVeryDissatisfiedWhiteIcon, FaceVerySatisfiedIcon, FaceVerySatisfiedWhiteIcon, FactorsIcon, FastAction, FavoriteOffIcon, FavoriteOnIcon, Feedback, FeedbackClassifyIcon, FeedbackClassifyWhiteIcon, FeedbackCompletedIcon, FeedbackCompletedWhiteIcon, FeedbackReportIcon, FeedbackReportWhiteIcon, FeedbackReviewIcon, FeedbackReviewWhiteIcon, FeedbackShareIcon, FeedbackShareWhiteIcon, FieldGroup, type FieldGroupProps, FieldMessage, type FieldMessageProps, type FieldMessageStatus, FileIcon, FileWhiteIcon, Filter, type FilterAttributes, FilterBar, type FilterBarContextValue, type FilterBarProps, FilterBarProvider, type FilterBarProviderProps, type FilterBarState, type FilterBarStateFilters, FilterButton, type FilterButtonProps, FilterButtonRemovable, type FilterButtonRemovableProps, type FilterButtonRemovableRefs, FilterContents, type FilterContentsProps, FilterDatePicker, FilterDatePickerField, type FilterDatePickerFieldProps, type FilterDatePickerProps, FilterDateRangePicker, type FilterDateRangePickerProps, FilterIcon, type FilterIsUsableWhen, FilterMultiSelect, type FilterMultiSelectProps, type FilterProps, FilterSelect, type FilterSelectProps, type FilterState, type FilterStateEditableAttributes, type FilterTriggerButtonProps, type FilterTriggerRef, type Filters, type FiltersValues, Fire, Fireworks, FlagOffIcon, FlagOffWhiteIcon, FlagOnIcon, FullIcon, FullImport, Gdpr, GeneralOnboardSurvey, type GenericAvatarProps, GenericModal, type GenericModalProps, type GetDateValidationHandlerArgs, GlobalNotification, type GlobalNotificationProps, Goals, GridViewIcon, GuidanceBlock, type GuidanceBlockProps, type GuidanceBlockState, GuidanceIcon, HamburgerIcon, HaveTheCourageToBeVulnerable, Heading, type HeadingProps, type HeadingVariants, HealthAndSafety, HeatmapIcon, HeatmapWhiteIcon, HierarchyIcon, HomeIcon, HrisImport, IconButton, type IconButtonProps, ImportIcon, ImportWhiteIcon, InclusionSurvey, IncreaseIndentIcon, IndicatorActiveIcon, IndicatorInactiveIcon, Individual180, Individual360, InfluentialCommunication, Information360Upgrade, InformationDemographicFocus, InformationEmergingTrends, InformationEmployeeLifecycle, InformationIcon, InformationReportOwner, InformationReportOwnerByRule, InformationTile, type InformationTileProps, InformationTurnoverCalculator, InformationTurnoverForecast, InformationWhiteIcon, Informative, InlineNotification, type InlineNotificationProps, Input, InputEditModal, type InputEditModalProps, type InputProps, InputRange, type InputRangeProps, InputSearch, type InputSearchProps, InputStatus, type InputStatusType, type InputType, InputTypes, InsightIcon, Insights, InsightsIcon, InternSurvey, type InternalFilterState, InvisibleIcon, ItalicsIcon, type ItemType, KaizenProvider, type KaizenProviderProps, KebabIcon, KioskIcon, KioskWhiteIcon, Label, type LabelProps, LabelledMessage, type LabelledMessageProps, LaunchIcon, LaunchWhiteIcon, LeaderReportSharing, LeaderboardIcon, Leadership180, Leadership360, LeadingChange, LeadingThroughCrisis, Learn, LearnFasterThroughFeedback, LikertScaleLegacy, type LikertScaleProps, LinkEditor, type LinkEditorAttrs, type LinkEditorProps, LinkModal, LinkPopover, type LinkPopoverProps, type ListBoxItems, type ListBoxProps, type ListBoxSectionProps$1 as ListBoxSectionProps, ListViewIcon, LiveIcon, type LoadMoreButtonProps, LoadingGraphic, type LoadingGraphicProps, type LoadingGraphicSize, LoadingHeading, type LoadingHeadingProps, LoadingInput, type LoadingInputProps, LoadingParagraph, type LoadingParagraphProps, LoadingSpinner, type LoadingSpinnerProps, LockIcon, LockWhiteIcon, LogOutIcon, London, Manager180, Manager360, ManagerLearning, ManagerReportSharing, type MappedFilters, type MarkRange, MaximizeIcon, MeatballsIcon, MeetingVoices, Melbourne, Menu, type MenuFooterProps, MenuHeading, type MenuHeadingProps, MenuItem, type MenuItemProps, MenuList, type MenuListProps, type MenuLoadingSkeletonProps, type MenuProps, MenuTriggerConsumer, MenuTriggerProvider, type MenuTriggerProviderContextType, type MenuTriggerProviderProps, Microphone, MinimizeIcon, MinusIcon, ModalAccessibleDescription, type ModalAccessibleDescriptionProps, ModalAccessibleLabel, type ModalAccessibleLabelProps, ModalBody, type ModalBodyProps, ModalContext, type ModalContextType, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, MultiActionTile, type MultiActionTileProps, MultiSelect, type MultiSelectItem, type MultiSelectOptionProps, type MultiSelectProps, NavigationTab, type NavigationTabProps, type NavigationTabs, NavigatorIcon, Negative, NewWaysOfWorking, NewYork, type NoResultsProps, NotificationIcon, NumberedListIcon, NumberedListRtlIcon, Objective, OneOnOne, OpenIcon, OpenWhiteIcon, OrganizationIcon, Pagination, PaginationLink, type PaginationLinkProps, type PaginationProps, PaperPen, PartialImport, ParticipationIcon, ParticipationWhiteIcon, PauseIcon, PauseWhiteIcon, PercentageIcon, PerformanceCompanySettings, PerformanceDiagnostics, PermissionsIcon, PersonIcon, PhasedWeek1OnboardSurvey, PhasedWeek5OnboardSurvey, PhotoUploadIcon, Popover, type PopoverProps, Positive, PowerIcon, PowerfulInsights, type PrimaryActionProps, PrintIcon, PrintWhiteIcon, Privacy, Process, ProcessManagerIcon, Productivity, Programs, ProgressBar, type ProgressBarProps, PromotionIcon, PromotionWhiteIcon, PulseSurvey, QuestionIcon, QuestionWhiteIcon, QuestionsIcon, QuickEngagementSurvey, Radio, RadioField, type RadioFieldProps, RadioGroup, type RadioGroupProps, type RadioProps, ReOnboarding, ReadArticle, Recommendation, RedoIcon, RefreshIcon, RemoteManager, RemoteOnboardSurvey, RemoteWorkQSet, type RemovableFilterTriggerProps, RemoveLinkIcon, RepeatsIcon, ReportIcon, ReportSharing, ReportSharingIcon, Resilience, Resources, Response, RestoreIcon, ReturnToWorkplace, RichTextContent, type RichTextContentProps, RichTextEditor, type RichTextEditorProps, SanFrancisco, SaveIcon, type SceneProps, ScienceBackedTools, SearchField, type SearchFieldProps, SearchIcon, type SearchInputProps, SearchWhiteIcon, type SecondaryActionItemProps, type SecondaryActionsProps, type SectionTitleRenderProps, SecurityTipIcon, Select, type SelectItem, type SelectItemNode, type SelectOption, type SelectOptionGroup, type SelectOptionGroupNode, type SelectOptionNode, type SelectProps, SelectionConsumer, SelectionProvider, type SelectionProviderContextType, type SelectionProviderProps, SendIcon, SendRtlIcon, SettingsIcon, SettingsWhiteIcon, ShareIcon, ShareReport, SinglePointOnboardSurvey, SkillsCoach1On1Meetings, SkillsCoachCoaching, SkillsCoachEmployeeDevelopment, SkillsCoachEssentialFeedback, SkillsCoachEssentialProductivity, SkillsCoachEssentialResilience, SkillsCoachFeedback, SkillsCoachInfluentialCommunication, SkillsCoachLeadingChange, SkillsCoachManagerHub, SkillsCoachProductivity, SkillsCoachRemoteManager, SkillsCoachResilience, SkillsCoachStrategy, SkillsDevelopment, SkipIcon, SkipWhiteIcon, Skirt, SkirtCard, type SkirtCardProps, type SkirtProps, Slider, type SliderFieldProps, SortAscendingIcon, SortDescendingIcon, type SourceFiltersState, SpinnerIcon, SplitButton, type SplitButtonProps, type SpotProps, SpreadsheetTemplate, StarOffIcon, StarOnIcon, Starburst, StartIcon, StatelessMenu, type StatelessMenuProps, Stop, Strategy, SubtractIcon, SubtractWhiteIcon, SuccessIcon, SuccessWhiteIcon, SupportIcon, SurveyGetStarted, SurveyOverviewClosed, type SurveyStatus, SurveysIcon, SurveysWhiteIcon, SyncIcon, TITLE_BLOCK_ZEN_OTHER_ACTIONS_HTML_ID, TITLE_BLOCK_ZEN_SECONDARY_MENU_HTML_ID, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, TableCard, type TableCardProps, TableContainer, type TableContainerProps, TableHeader, type TableHeaderProps, TableHeaderRowCell, type TableHeaderRowCellProps, type TableHeaderRowProps, TableRow, TableRowCell, type TableRowCellProps, type TableRowProps, Tabs, type TabsProps, Tag, TagIcon, type TagProps, type TagWithAvatarProps, TakeAim, TasksIcon, TasksWhiteIcon, Team1, Team2, TeamEffectiveness1, TeamEffectiveness2, TemplateIcon, TemplateWhiteIcon, Templates, TermsAgreement, Text, TextAnalyticsIcon, TextAnalyticsWhiteIcon, TextArea, TextAreaField, type TextAreaFieldProps, type TextAreaProps, type TextDirection, TextField, type TextFieldProps, type TextProps, type TextVariants, ThumbsDownIcon, ThumbsUpIcon, type TileElement, TileGrid, type TileGridProps, TimeField, type TimeFieldProps, TimeIcon, TimeWhiteIcon, Timezone, type TitleBlockAvatarProps, type TitleBlockBadgeProps, type TitleBlockBreadcrumbProps, type TitleBlockBreadcrumbType, type TitleBlockButtonProps, type TitleBlockCustomButtonProps, type TitleBlockDistributiveOmit, type TitleBlockMenuGroup, type TitleBlockMenuItemProps, type TitleBlockProps, type TitleBlockSelectProps, type TitleBlockVariant, TitleBlockZen, ToastNotification, type ToastNotificationObj, type ToastNotificationProps, ToastNotificationsList, ToggleIconButton, type ToggleIconButtonProps, ToggleSwitch, ToggleSwitchField, type ToggleSwitchFieldProps, type ToggleSwitchProps, type ToggledStatus, Toolbar, type ToolbarControlTypes, type ToolbarItems, type ToolbarProps, ToolbarSection, type ToolbarSectionProps, Tooltip, type TooltipProps, TrafficCone, Training1, Training2, Training3, TranslationIcon, TrashIcon, Trophy, TrustOthersToMakeDecisions, UnattributedIcon, UnattributedWhiteIcon, UnderConstruction, UnderlineIcon, UndoIcon, type UseDateValidationArgs, type UseDateValidationValue, UserAddIcon, UserDeleteIcon, UserExitIcon, UserIcon, UserSelectIcon, UserSettingsIcon, UserUpdateIcon, UsersIcon, type ValidateDateResponse, type ValidationMessage$1 as ValidationMessage, type ValidationResponse, ValueAdd, ValuesSurvey1, ValuesSurvey2, Video, ViewReports, VisibleIcon, VisuallyHidden, type VisuallyHiddenProps, Well, type WellProps, WellbeingSurvey, WellbeingSurvey1, WellbeingSurvey2, WellbeingSurvey3, Workflow, type WorkflowProps, Workshop, WritingIcon, ZoomInIcon, ZoomOutIcon, addMark, bulletListRule, calculateDisabledDays, createDocNode, createDocNodeFromContent, createEditorState, createLinkManager, createRichTextEditor, formatDateAsNumeral, formatDateAsText, formatDateRangeValue, getDateValidationHandler, getMarkAttrs, getMarkRange, getMarks, getNodes, getSelectedOptionKeys, getSelectedOptionLabels, getTruncatedLabels, isDisabledDate, isInvalidDate, isSelectingDayInCalendar, isValidWeekStartsOn, listIsActive, markContainsSelection, markIsActive, orderedListRule, parseDateAsTextOrNumeral, parseDateFromNumeralFormatValue, parseDateFromTextFormatValue, removeMark, setFocusInCalendar, updateMark, useDateValidation, useFilterBarContext, useMenuTriggerContext, usePopover, useRichTextEditor, useSelectionContext, useToastNotification, validateAndRemoveMarks, validateDate };
|