@pega/cosmos-react-cs 2.0.0-dev.2.0 → 2.0.0-dev.21.1
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/lib/components/Article/Article.d.ts.map +1 -1
- package/lib/components/Article/Article.js +4 -19
- package/lib/components/Article/Article.js.map +1 -1
- package/lib/components/Article/ArticleFooter.d.ts.map +1 -1
- package/lib/components/Article/ArticleFooter.js +6 -7
- package/lib/components/Article/ArticleFooter.js.map +1 -1
- package/lib/components/Article/ArticleSkeleton.d.ts.map +1 -1
- package/lib/components/Article/ArticleSkeleton.js +7 -8
- package/lib/components/Article/ArticleSkeleton.js.map +1 -1
- package/lib/components/ArticleList/ArticleList.d.ts.map +1 -1
- package/lib/components/ArticleList/ArticleList.js +6 -10
- package/lib/components/ArticleList/ArticleList.js.map +1 -1
- package/lib/components/ArticleList/ArticleListHeader.d.ts +4 -1
- package/lib/components/ArticleList/ArticleListHeader.d.ts.map +1 -1
- package/lib/components/ArticleList/ArticleListHeader.js +43 -34
- package/lib/components/ArticleList/ArticleListHeader.js.map +1 -1
- package/lib/components/ArticleList/ArticleSummary.d.ts.map +1 -1
- package/lib/components/ArticleList/ArticleSummary.js +10 -7
- package/lib/components/ArticleList/ArticleSummary.js.map +1 -1
- package/lib/components/ArticleList/SummarySkeleton.d.ts.map +1 -1
- package/lib/components/ArticleList/SummarySkeleton.js +3 -11
- package/lib/components/ArticleList/SummarySkeleton.js.map +1 -1
- package/lib/components/CSCaseView/CSCaseView.d.ts +9 -0
- package/lib/components/CSCaseView/CSCaseView.d.ts.map +1 -0
- package/lib/components/CSCaseView/CSCaseView.js +16 -0
- package/lib/components/CSCaseView/CSCaseView.js.map +1 -0
- package/lib/components/CSCaseView/index.d.ts +3 -0
- package/lib/components/CSCaseView/index.d.ts.map +1 -0
- package/lib/components/CSCaseView/index.js +2 -0
- package/lib/components/CSCaseView/index.js.map +1 -0
- package/lib/components/CallControlPanel/Call.d.ts +6 -0
- package/lib/components/CallControlPanel/Call.d.ts.map +1 -0
- package/lib/components/CallControlPanel/Call.js +145 -0
- package/lib/components/CallControlPanel/Call.js.map +1 -0
- package/lib/components/CallControlPanel/CallControlPanel.d.ts +6 -0
- package/lib/components/CallControlPanel/CallControlPanel.d.ts.map +1 -0
- package/lib/components/CallControlPanel/CallControlPanel.js +68 -0
- package/lib/components/CallControlPanel/CallControlPanel.js.map +1 -0
- package/lib/components/CallControlPanel/CallControlPanel.styles.d.ts +15 -0
- package/lib/components/CallControlPanel/CallControlPanel.styles.d.ts.map +1 -0
- package/lib/components/CallControlPanel/CallControlPanel.styles.js +118 -0
- package/lib/components/CallControlPanel/CallControlPanel.styles.js.map +1 -0
- package/lib/components/CallControlPanel/CallControlPanel.types.d.ts +112 -0
- package/lib/components/CallControlPanel/CallControlPanel.types.d.ts.map +1 -0
- package/lib/components/CallControlPanel/CallControlPanel.types.js +2 -0
- package/lib/components/CallControlPanel/CallControlPanel.types.js.map +1 -0
- package/lib/components/CallControlPanel/CallControlPanelIcon.d.ts +19 -0
- package/lib/components/CallControlPanel/CallControlPanelIcon.d.ts.map +1 -0
- package/lib/components/CallControlPanel/CallControlPanelIcon.js +74 -0
- package/lib/components/CallControlPanel/CallControlPanelIcon.js.map +1 -0
- package/lib/components/CallControlPanel/CallTransfer.d.ts +19 -0
- package/lib/components/CallControlPanel/CallTransfer.d.ts.map +1 -0
- package/lib/components/CallControlPanel/CallTransfer.js +121 -0
- package/lib/components/CallControlPanel/CallTransfer.js.map +1 -0
- package/lib/components/CallControlPanel/CalleePicker.d.ts +20 -0
- package/lib/components/CallControlPanel/CalleePicker.d.ts.map +1 -0
- package/lib/components/CallControlPanel/CalleePicker.js +61 -0
- package/lib/components/CallControlPanel/CalleePicker.js.map +1 -0
- package/lib/components/CallControlPanel/ContactsList.d.ts +23 -0
- package/lib/components/CallControlPanel/ContactsList.d.ts.map +1 -0
- package/lib/components/CallControlPanel/ContactsList.js +88 -0
- package/lib/components/CallControlPanel/ContactsList.js.map +1 -0
- package/lib/components/CallControlPanel/DTMFKeypad.d.ts +11 -0
- package/lib/components/CallControlPanel/DTMFKeypad.d.ts.map +1 -0
- package/lib/components/CallControlPanel/DTMFKeypad.js +23 -0
- package/lib/components/CallControlPanel/DTMFKeypad.js.map +1 -0
- package/lib/components/CallControlPanel/StopWatch.d.ts +9 -0
- package/lib/components/CallControlPanel/StopWatch.d.ts.map +1 -0
- package/lib/components/CallControlPanel/StopWatch.js +28 -0
- package/lib/components/CallControlPanel/StopWatch.js.map +1 -0
- package/lib/components/CallControlPanel/index.d.ts +4 -0
- package/lib/components/CallControlPanel/index.d.ts.map +1 -0
- package/lib/components/CallControlPanel/index.js +3 -0
- package/lib/components/CallControlPanel/index.js.map +1 -0
- package/lib/components/CallControlPanel/utils.d.ts +7 -0
- package/lib/components/CallControlPanel/utils.d.ts.map +1 -0
- package/lib/components/CallControlPanel/utils.js +35 -0
- package/lib/components/CallControlPanel/utils.js.map +1 -0
- package/lib/components/DialPad/DialPad.d.ts +16 -0
- package/lib/components/DialPad/DialPad.d.ts.map +1 -0
- package/lib/components/DialPad/DialPad.js +33 -0
- package/lib/components/DialPad/DialPad.js.map +1 -0
- package/lib/components/DialPad/DialPad.types.d.ts +33 -0
- package/lib/components/DialPad/DialPad.types.d.ts.map +1 -0
- package/lib/components/DialPad/DialPad.types.js +2 -0
- package/lib/components/DialPad/DialPad.types.js.map +1 -0
- package/lib/components/DialPad/DialPadKeyboard.d.ts +12 -0
- package/lib/components/DialPad/DialPadKeyboard.d.ts.map +1 -0
- package/lib/components/DialPad/DialPadKeyboard.js +87 -0
- package/lib/components/DialPad/DialPadKeyboard.js.map +1 -0
- package/lib/components/DialPad/DialPadKeyboard.styles.d.ts +5 -0
- package/lib/components/DialPad/DialPadKeyboard.styles.d.ts.map +1 -0
- package/lib/components/DialPad/DialPadKeyboard.styles.js +76 -0
- package/lib/components/DialPad/DialPadKeyboard.styles.js.map +1 -0
- package/lib/components/DialPad/KeyboardNavigation.d.ts +6 -0
- package/lib/components/DialPad/KeyboardNavigation.d.ts.map +1 -0
- package/lib/components/DialPad/KeyboardNavigation.js +156 -0
- package/lib/components/DialPad/KeyboardNavigation.js.map +1 -0
- package/lib/components/DialPad/utils.d.ts +4 -0
- package/lib/components/DialPad/utils.d.ts.map +1 -0
- package/lib/components/DialPad/utils.js +7 -0
- package/lib/components/DialPad/utils.js.map +1 -0
- package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts +6 -0
- package/lib/components/IntelligentGuidance/IntelligentGuidance.d.ts.map +1 -0
- package/lib/components/IntelligentGuidance/IntelligentGuidance.js +75 -0
- package/lib/components/IntelligentGuidance/IntelligentGuidance.js.map +1 -0
- package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts +9 -0
- package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.d.ts.map +1 -0
- package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js +142 -0
- package/lib/components/IntelligentGuidance/IntelligentGuidance.styles.js.map +1 -0
- package/lib/components/IntelligentGuidance/IntelligentGuidance.types.d.ts +31 -0
- package/lib/components/IntelligentGuidance/IntelligentGuidance.types.d.ts.map +1 -0
- package/lib/components/IntelligentGuidance/IntelligentGuidance.types.js +2 -0
- package/lib/components/IntelligentGuidance/IntelligentGuidance.types.js.map +1 -0
- package/lib/components/IntelligentGuidance/index.d.ts +3 -0
- package/lib/components/IntelligentGuidance/index.d.ts.map +1 -0
- package/lib/components/IntelligentGuidance/index.js +2 -0
- package/lib/components/IntelligentGuidance/index.js.map +1 -0
- package/lib/components/InteractionNotification/InteractionNotification.d.ts.map +1 -1
- package/lib/components/InteractionNotification/InteractionNotification.js +19 -26
- package/lib/components/InteractionNotification/InteractionNotification.js.map +1 -1
- package/lib/components/InteractionTimer/InteractionTimer.d.ts +2 -4
- package/lib/components/InteractionTimer/InteractionTimer.d.ts.map +1 -1
- package/lib/components/InteractionTimer/InteractionTimer.js +14 -11
- package/lib/components/InteractionTimer/InteractionTimer.js.map +1 -1
- package/lib/components/TaskManager/Picker/Picker.d.ts.map +1 -1
- package/lib/components/TaskManager/Picker/Picker.js +138 -48
- package/lib/components/TaskManager/Picker/Picker.js.map +1 -1
- package/lib/components/TaskManager/Picker/Picker.types.d.ts +11 -2
- package/lib/components/TaskManager/Picker/Picker.types.d.ts.map +1 -1
- package/lib/components/TaskManager/Picker/Picker.types.js.map +1 -1
- package/lib/components/TaskManager/TaskManager.context.d.ts +1 -0
- package/lib/components/TaskManager/TaskManager.context.d.ts.map +1 -1
- package/lib/components/TaskManager/TaskManager.d.ts.map +1 -1
- package/lib/components/TaskManager/TaskManager.js +54 -83
- package/lib/components/TaskManager/TaskManager.js.map +1 -1
- package/lib/components/TaskManager/TaskManager.styles.d.ts +15 -20
- package/lib/components/TaskManager/TaskManager.styles.d.ts.map +1 -1
- package/lib/components/TaskManager/TaskManager.styles.js +173 -166
- package/lib/components/TaskManager/TaskManager.styles.js.map +1 -1
- package/lib/components/TaskManager/TaskManager.types.d.ts +12 -6
- package/lib/components/TaskManager/TaskManager.types.d.ts.map +1 -1
- package/lib/components/TaskManager/TaskManager.types.js.map +1 -1
- package/lib/components/TaskManager/TaskManagerTabs.d.ts +6 -0
- package/lib/components/TaskManager/TaskManagerTabs.d.ts.map +1 -0
- package/lib/components/TaskManager/TaskManagerTabs.js +159 -0
- package/lib/components/TaskManager/TaskManagerTabs.js.map +1 -0
- package/lib/components/TaskManager/TaskView.d.ts.map +1 -1
- package/lib/components/TaskManager/TaskView.js +3 -6
- package/lib/components/TaskManager/TaskView.js.map +1 -1
- package/lib/components/TaskManager/index.d.ts +1 -1
- package/lib/components/TaskManager/index.d.ts.map +1 -1
- package/lib/components/TaskManager/index.js.map +1 -1
- package/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -1
- package/package.json +14 -14
- package/lib/components/TaskManager/TaskDrawer.d.ts +0 -6
- package/lib/components/TaskManager/TaskDrawer.d.ts.map +0 -1
- package/lib/components/TaskManager/TaskDrawer.js +0 -84
- package/lib/components/TaskManager/TaskDrawer.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskManager.js","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAGZ,UAAU,EACV,MAAM,EACN,SAAS,EACT,QAAQ,EACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,kBAAkB,EAClB,UAAU,EACV,MAAM,EACN,IAAI,EACJ,WAAW,EACX,aAAa,EACb,OAAO,EACP,QAAQ,EACR,QAAQ,EAET,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACvB,qBAAqB,EACrB,aAAa,EACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,UAAU,MAAM,cAAc,CAAC;AAEtC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,MAAM,WAAW,GAAuD,UAAU,CAChF,CAAC,KAAwC,EAAE,GAA4B,EAAE,EAAE;IACzE,MAAM,EACJ,KAAK,GAAG,EAAE,EACV,SAAS,EACT,YAAY,EACZ,aAAa,EACb,OAAO,EACP,MAAM,EACN,IAAI,EACJ,MAAM,EACN,GAAG,SAAS,EACb,GAAG,KAAK,CAAC;IACV,MAAM,CAAC,GAAG,OAAO,EAAE,CAAC;IACpB,MAAM,aAAa,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IACnD,MAAM,eAAe,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;IAChD,MAAM,SAAS,GAAG,KAAK,CAAC,MA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E,GAAG,EAAE;4CACZ,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAG,EAAE,CAAC,CAAC;wCACrB,CAAC,IAEA,CAAC,CAAC,UAAU,CAAC,CACP,CACV;oCACA,OAAO,KAAK,UAAU,IAAI,CACzB,oBAAC,MAAM,IACL,OAAO,EAAC,WAAW,gBACP,CAAC,CAAC,mBAAmB,EAAE,IAAI,CAAC,EACxC,OAAO,EAAE,GAAG,EAAE;4CACZ,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAG,EAAE,CAAC,CAAC;wCACrB,CAAC,IAEA,CAAC,CAAC,QAAQ,CAAC,CACL,CACV,CACI,GAET,CACH,CAAC;wBACJ,CAAC,CACF;wBACA,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,oBAAC,OAAO,IAAC,OAAO,EAAE,SAAS,GAAI,CACjD,CACE,CACZ,CACiB,CAChB,CACsB,CAC/B,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import React, {\n FunctionComponent,\n PropsWithoutRef,\n forwardRef,\n useRef,\n useEffect,\n useState\n} from 'react';\nimport { remToPx, stripUnit } from 'polished';\n\nimport {\n Flex,\n Icon,\n Text,\n Status,\n useI18n,\n useConsolidatedRef,\n useElement,\n Button,\n Grid,\n SummaryItem,\n useOuterEvent,\n NoItems,\n useTheme,\n tryCatch,\n ForwardProps\n} from '@pega/cosmos-react-core';\n\nimport {\n StyledTaskManager,\n StyledTaskIcon,\n StyledTaskManagerBanner,\n StyledTaskSummaryItem,\n StyledPopover\n} from './TaskManager.styles';\nimport TaskManagerContext from './TaskManager.context';\nimport TaskDrawer from './TaskDrawer';\nimport { TaskManagerProps } from './TaskManager.types';\nimport TaskView from './TaskView';\nimport Picker from './Picker/Picker';\nimport { PickerProps } from './Picker/Picker.types';\n\nconst TaskManager: FunctionComponent<TaskManagerProps & ForwardProps> = forwardRef(\n (props: PropsWithoutRef<TaskManagerProps>, ref: TaskManagerProps['ref']) => {\n const {\n tasks = [],\n emptyText,\n onLaunchTask,\n onDismissTask,\n addTask,\n wrapUp,\n main,\n banner,\n ...restProps\n } = props;\n const t = useI18n();\n const taskDrawerRef = useRef<HTMLDivElement>(null);\n const consolidatedRef = useConsolidatedRef(ref);\n const hasDrawer = tasks.filter(task => task.active).length > 0 || !!wrapUp?.active;\n const [showPicker, setShowPicker] = useState(false);\n const [addTaskEl, setAddTaskEl] = useElement<HTMLButtonElement>(null);\n const [popoverEl, setPopoverEl] = useElement<HTMLElement>(null);\n const theme = useTheme();\n\n useEffect(() => {\n if (taskDrawerRef.current && consolidatedRef.current) {\n consolidatedRef.current.style.minHeight = `${taskDrawerRef.current.scrollHeight}px`;\n } else if (consolidatedRef.current) {\n consolidatedRef.current.style.minHeight = '0';\n }\n }, [tasks, addTask]);\n\n useOuterEvent('mousedown', [popoverEl, addTaskEl], () => {\n setShowPicker(false);\n });\n\n return (\n <TaskManagerContext.Provider\n value={{\n addTask,\n wrapUp,\n tasks,\n onLaunchTask\n }}\n >\n <div>\n {banner && (\n <Flex\n as={StyledTaskManagerBanner}\n container={{\n alignItems: 'center'\n }}\n aria-live='polite'\n >\n <StyledTaskIcon variant='banner'>\n <Icon name={banner.icon} />\n </StyledTaskIcon>\n <Text variant='h4'>{banner.content}</Text>\n </Flex>\n )}\n <StyledTaskManager {...restProps} ref={consolidatedRef} hasDrawer={hasDrawer}>\n {hasDrawer && <TaskDrawer ref={taskDrawerRef} addTask={addTask} />}\n {hasDrawer && main}\n {!hasDrawer && (\n <TaskView\n header={<Text variant='h2'>{t('task_manager_tasks')}</Text>}\n actions={\n <Flex\n container={{\n itemGap: 1\n }}\n >\n {wrapUp && (\n <Button variant='secondary' onClick={wrapUp.onWrapUp}>\n <Flex\n container={{\n itemGap: 1,\n alignItems: 'center'\n }}\n >\n <Icon name='flag-finish' />\n <span>{t('task_manager_wrap_up')}</span>\n </Flex>\n </Button>\n )}\n {addTask && (\n <>\n <Button\n variant='primary'\n onClick={() => setShowPicker(cur => !cur)}\n ref={setAddTaskEl}\n >\n <Flex\n container={{\n itemGap: 1,\n alignItems: 'center'\n }}\n >\n <Icon name='plus' />\n <span>{t('task_manager_add_task')}</span>\n </Flex>\n </Button>\n <StyledPopover\n show={showPicker}\n ref={setPopoverEl}\n target={addTaskEl}\n placement='bottom-end'\n modifiers={[\n {\n name: 'offset',\n options: {\n offset: [\n tryCatch(\n () => stripUnit(remToPx(theme.base.spacing)),\n () => 8\n ),\n tryCatch(\n () => stripUnit(remToPx(theme.base.spacing)),\n () => 8\n )\n ]\n }\n }\n ]}\n >\n <Picker\n scrollAt={10}\n emptyText={t('task_manager_search_results_empty_text')}\n items={addTask?.items}\n onAdd={(selectedItems: PickerProps['items']) => {\n if (addTask.onAdd) {\n addTask?.onAdd(selectedItems);\n }\n setShowPicker(false);\n }}\n onCancel={() => {\n setShowPicker(false);\n }}\n ref={addTask.ref}\n />\n </StyledPopover>\n </>\n )}\n </Flex>\n }\n >\n <Grid as='ul' container>\n {tasks.map(\n ({\n name,\n id,\n status,\n variant = 'in-progress',\n meta,\n icon,\n ...restTaskProps\n }) => {\n return (\n <SummaryItem\n {...restTaskProps}\n key={id}\n as={StyledTaskSummaryItem}\n variant={variant}\n primary={<Text variant='h4'>{name}</Text>}\n secondary={\n <>\n {!status && meta && <Text variant='secondary'>{meta}</Text>}\n {status && <Status variant={status.variant}>{status.text}</Status>}\n </>\n }\n visual={<Icon name={icon} />}\n actions={\n <Flex container={{ itemGap: 1 }}>\n {(variant === 'queued' || variant === 'suggested') && (\n <>\n <Button\n variant='simple'\n aria-label={t('dismiss_label_a11y', name)}\n onClick={() => {\n onDismissTask?.(id);\n }}\n >\n {t('dismiss')}\n </Button>\n <Button\n variant='secondary'\n aria-label={t('go_label_a11y', name)}\n onClick={() => {\n onLaunchTask?.(id);\n }}\n >\n {t('go')}\n </Button>\n </>\n )}\n {variant === 'in-progress' && (\n <Button\n variant='secondary'\n aria-label={t('continue_label_a11y', name)}\n onClick={() => {\n onLaunchTask?.(id);\n }}\n >\n {t('continue')}\n </Button>\n )}\n {variant === 'resolved' && (\n <Button\n variant='secondary'\n aria-label={t('review_label_a11y', name)}\n onClick={() => {\n onLaunchTask?.(id);\n }}\n >\n {t('review')}\n </Button>\n )}\n </Flex>\n }\n />\n );\n }\n )}\n {tasks.length === 0 && <NoItems message={emptyText} />}\n </Grid>\n </TaskView>\n )}\n </StyledTaskManager>\n </div>\n </TaskManagerContext.Provider>\n );\n }\n);\n\nexport default TaskManager;\n"]}
|
|
1
|
+
{"version":3,"file":"TaskManager.js","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManager.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAsC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,kBAAkB,EAClB,UAAU,EACV,MAAM,EACN,IAAI,EACJ,WAAW,EACX,UAAU,EACV,QAAQ,EACR,QAAQ,EAET,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,cAAc,MAAM,oEAAoE,CAAC;AACrG,OAAO,KAAK,QAAQ,MAAM,6DAA6D,CAAC;AAExF,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,aAAa,EACb,cAAc,EACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,YAAY,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;AAEvC,MAAM,WAAW,GAAuD,UAAU,CAChF,CAAC,KAAwC,EAAE,GAA4B,EAAE,EAA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AC,EAAE,CAAC,CAAC;wDACrB,CAAC,YAEA,CAAC,CAAC,UAAU,CAAC,WACP,CACV,EACA,OAAO,KAAK,UAAU,IAAI,CACzB,KAAC,MAAM,IACL,OAAO,EAAC,WAAW,gBACP,CAAC,CAAC,mBAAmB,EAAE,CAAC,IAAI,CAAC,CAAC,EAC1C,OAAO,EAAE,GAAG,EAAE;4DACZ,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC;wDACrB,CAAC,YAEA,CAAC,CAAC,QAAQ,CAAC,WACL,CACV,YACI,GAET,CACH,CAAC;oCACJ,CAAC,CACF,EACA,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,KAAC,UAAU,IAAC,OAAO,EAAE,SAAS,WAAI,YACpD,CACR,YACQ,WACO,YAChB,WACsB,CAC/B,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC","sourcesContent":["import { FunctionComponent, PropsWithoutRef, forwardRef, useRef, useEffect, useState } from 'react';\nimport { remToPx, stripUnit } from 'polished';\n\nimport {\n Flex,\n Icon,\n registerIcon,\n Text,\n Status,\n useI18n,\n useConsolidatedRef,\n useElement,\n Button,\n Grid,\n SummaryItem,\n EmptyState,\n useTheme,\n tryCatch,\n ForwardProps\n} from '@pega/cosmos-react-core';\nimport * as flagFinishIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/flag-finish.icon';\nimport * as plusIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/plus.icon';\n\nimport {\n StyledTaskManager,\n StyledTaskManagerBanner,\n StyledTaskSummaryItem,\n StyledPopover,\n StyledTaskMain\n} from './TaskManager.styles';\nimport TaskManagerContext from './TaskManager.context';\nimport TaskManagerTabs from './TaskManagerTabs';\nimport { TaskManagerProps } from './TaskManager.types';\nimport TaskView from './TaskView';\nimport Picker from './Picker/Picker';\nimport { SelectedItemProps } from './Picker/Picker.types';\n\nregisterIcon(plusIcon, flagFinishIcon);\n\nconst TaskManager: FunctionComponent<TaskManagerProps & ForwardProps> = forwardRef(\n (props: PropsWithoutRef<TaskManagerProps>, ref: TaskManagerProps['ref']) => {\n const {\n tasks = [],\n emptyText,\n onTaskLaunch,\n onTaskDismiss,\n addTask,\n wrapUp,\n main,\n banner,\n ...restProps\n } = props;\n const t = useI18n();\n const TaskManagerTabsRef = useRef<HTMLDivElement>(null);\n const consolidatedRef = useConsolidatedRef(ref);\n const hasDrawer = tasks.filter(task => task.active).length > 0 || !!wrapUp?.active;\n const [showPicker, setShowPicker] = useState(false);\n const [addTaskEl, setAddTaskEl] = useElement<HTMLButtonElement>(null);\n const theme = useTheme();\n\n useEffect(() => {\n if (TaskManagerTabsRef.current && consolidatedRef.current) {\n consolidatedRef.current.style.minHeight = `${TaskManagerTabsRef.current.scrollHeight}px`;\n } else if (consolidatedRef.current) {\n consolidatedRef.current.style.minHeight = '0';\n }\n }, [tasks, addTask]);\n\n return (\n <TaskManagerContext.Provider\n value={{\n addTask,\n wrapUp,\n tasks,\n onTaskLaunch\n }}\n >\n <div>\n {banner && (\n <Flex\n as={StyledTaskManagerBanner}\n container={{\n alignItems: 'center'\n }}\n aria-live='polite'\n >\n <Icon name={banner.icon} />\n <Text variant='h4'>{banner.content}</Text>\n </Flex>\n )}\n <StyledTaskManager {...restProps} ref={consolidatedRef} hasDrawer={hasDrawer}>\n <TaskView\n header={<Text variant='h2'>{t('task_manager_tasks')}</Text>}\n actions={\n <Flex\n container={{\n itemGap: 1\n }}\n >\n {wrapUp && (\n <Button variant='secondary' onClick={wrapUp.onWrapUp}>\n <Flex\n container={{\n itemGap: 1,\n alignItems: 'center'\n }}\n >\n <Icon name='flag-finish' />\n <span>{t('task_manager_wrap_up')}</span>\n </Flex>\n </Button>\n )}\n {addTask && (\n <>\n <Button\n variant='primary'\n onClick={() => setShowPicker(cur => !cur)}\n ref={setAddTaskEl}\n >\n <Flex\n container={{\n gap: 1,\n alignItems: 'center'\n }}\n >\n <Icon name='plus' />\n <span>{t('task_manager_add_task')}</span>\n </Flex>\n </Button>\n <StyledPopover\n show={showPicker}\n target={addTaskEl}\n placement='bottom-end'\n modifiers={[\n {\n name: 'offset',\n options: {\n offset: [\n tryCatch(\n () => stripUnit(remToPx(theme.base.spacing)),\n () => 8\n ),\n tryCatch(\n () => stripUnit(remToPx(theme.base.spacing)),\n () => 8\n )\n ]\n }\n }\n ]}\n >\n <Picker\n scrollAt={10}\n emptyText={t('task_manager_search_results_empty_text')}\n items={addTask?.items}\n onAdd={(selectedItems: SelectedItemProps[]) => {\n if (addTask.onAdd) {\n addTask?.onAdd(selectedItems);\n }\n setShowPicker(false);\n }}\n onCancel={() => {\n setShowPicker(false);\n }}\n ref={addTask.ref}\n placeholder={t('search_tasks')}\n />\n </StyledPopover>\n </>\n )}\n </Flex>\n }\n >\n {hasDrawer && <TaskManagerTabs ref={TaskManagerTabsRef} />}\n {hasDrawer && <StyledTaskMain>{main}</StyledTaskMain>}\n {!hasDrawer && (\n <Grid as='ul' container>\n {tasks.map(\n ({\n name,\n id,\n status,\n variant = 'in-progress',\n meta,\n icon,\n ...restTaskProps\n }) => {\n return (\n <SummaryItem\n {...restTaskProps}\n key={id}\n as={StyledTaskSummaryItem}\n variant={variant}\n primary={<Text variant='h4'>{name}</Text>}\n secondary={\n <>\n {!status && meta && <Text variant='secondary'>{meta}</Text>}\n {status && <Status variant={status.variant}>{status.text}</Status>}\n </>\n }\n visual={<Icon name={icon} />}\n actions={\n <Flex container={{ gap: 1 }}>\n {(variant === 'queued' || variant === 'suggested') && (\n <>\n <Button\n variant='simple'\n aria-label={t('dismiss_label_a11y', [name])}\n onClick={() => {\n onTaskDismiss?.(id);\n }}\n >\n {t('dismiss')}\n </Button>\n <Button\n variant='secondary'\n aria-label={t('go_label_a11y', [name])}\n onClick={() => {\n onTaskLaunch?.(id);\n }}\n >\n {t('go')}\n </Button>\n </>\n )}\n {variant === 'in-progress' && (\n <Button\n variant='secondary'\n aria-label={t('continue_label_a11y', [name])}\n onClick={() => {\n onTaskLaunch?.(id);\n }}\n >\n {t('continue')}\n </Button>\n )}\n {variant === 'resolved' && (\n <Button\n variant='secondary'\n aria-label={t('review_label_a11y', [name])}\n onClick={() => {\n onTaskLaunch?.(id);\n }}\n >\n {t('review')}\n </Button>\n )}\n </Flex>\n }\n />\n );\n }\n )}\n {tasks.length === 0 && <EmptyState message={emptyText} />}\n </Grid>\n )}\n </TaskView>\n </StyledTaskManager>\n </div>\n </TaskManagerContext.Provider>\n );\n }\n);\n\nexport default TaskManager;\n"]}
|
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
export declare const StyledTaskDrawerBareButton: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core/lib/components/Button/BareButton").BareButtonProps & import("@pega/cosmos-react-core").ForwardProps>, DefaultTheme, StyledTaskDrawerBareButtonProps, never>;
|
|
15
|
-
export declare const StyledTasksTabList: import("styled-components").StyledComponent<"div", DefaultTheme, {}, never>;
|
|
16
|
-
export declare const StyledStickyCardHeader: import("styled-components").StyledComponent<"header", DefaultTheme, import("@pega/cosmos-react-core").CardHeaderProps, never>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TaskManagerTabProps } from './TaskManager.types';
|
|
3
|
+
export declare const StyledTaskMain: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const StyledTaskManagerTabsSummaryItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const StyledTaskManagerTabs: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
+
export declare const StyledTaskSummaryItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const StyleTaskName: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export declare const StyledTaskStatus: import("styled-components").StyledComponent<import("react").FC<import("@pega/cosmos-react-core").StatusProps & import("@pega/cosmos-react-core").ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
+
export declare const StyledTaskManagerTab: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, TaskManagerTabProps, never>;
|
|
10
|
+
export declare const StyledTasksTabList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
+
export declare const StyledStickyCardHeader: import("styled-components").StyledComponent<"header", import("styled-components").DefaultTheme, import("@pega/cosmos-react-core").CardHeaderProps, never>;
|
|
12
|
+
export declare const StyledOverflowTabMenu: import("styled-components").StyledComponent<import("react").FunctionComponent<import("@pega/cosmos-react-core").ForwardProps & import("@pega/cosmos-react-core").MenuButtonProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
17
13
|
interface StyledTaskManagerProps {
|
|
18
14
|
hasDrawer?: boolean;
|
|
19
15
|
}
|
|
20
|
-
export declare const
|
|
21
|
-
export declare const
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const StyledPopover: import("styled-components").StyledComponent<(<Modifiers extends string = string>(props: import("@pega/cosmos-react-core").PopoverProps<Modifiers> & import("@pega/cosmos-react-core").ForwardProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null), DefaultTheme, {}, never>;
|
|
16
|
+
export declare const StyledTaskManager: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledTaskManagerProps, never>;
|
|
17
|
+
export declare const StyledTaskManagerBanner: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
18
|
+
export declare const StyledPopover: import("styled-components").StyledComponent<(<Modifiers extends string = string>(props: import("@pega/cosmos-react-core").PopoverProps<Modifiers> & import("@pega/cosmos-react-core").ForwardProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null), import("styled-components").DefaultTheme, {}, never>;
|
|
24
19
|
export default StyledTaskManager;
|
|
25
20
|
//# sourceMappingURL=TaskManager.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskManager.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManager.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TaskManager.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManager.styles.ts"],"names":[],"mappings":";AAkBA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,eAAO,MAAM,cAAc,yGAAe,CAAC;AAC3C,eAAO,MAAM,gCAAgC,yGAAe,CAAC;AAE7D,eAAO,MAAM,qBAAqB,yGAahC,CAAC;AAIH,eAAO,MAAM,qBAAqB,wGAWhC,CAAC;AAIH,eAAO,MAAM,aAAa,0GAMxB,CAAC;AAEH,eAAO,MAAM,gBAAgB,sNAI3B,CAAC;AAKH,eAAO,MAAM,oBAAoB,yHAqE/B,CAAC;AAIH,eAAO,MAAM,kBAAkB,wGAwB7B,CAAC;AAIH,eAAO,MAAM,sBAAsB,2JASjC,CAAC;AACH,eAAO,MAAM,qBAAqB,yOAahC,CAAC;AAKH,UAAU,sBAAsB;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,6HAqC5B,CAAC;AAIH,eAAO,MAAM,uBAAuB,yGAYlC,CAAC;AAIH,eAAO,MAAM,aAAa,6VAKxB,CAAC;AAIH,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,203 +1,210 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { transparentize } from 'polished';
|
|
3
|
-
import { defaultThemeProp, Popover, tryCatch } from '@pega/cosmos-react-core';
|
|
2
|
+
import { mix, transparentize } from 'polished';
|
|
3
|
+
import { defaultThemeProp, MenuButton, Popover, tryCatch, Status, StyledCard, StyledEmptyState, StyledFlex } from '@pega/cosmos-react-core';
|
|
4
4
|
import { StyledCardHeader } from '@pega/cosmos-react-core/lib/components/Card/CardHeader';
|
|
5
|
+
import { StyledCardContent } from '@pega/cosmos-react-core/lib/components/Card/CardContent';
|
|
5
6
|
import { StyledStatus } from '@pega/cosmos-react-core/lib/components/Badges/Status';
|
|
6
7
|
import { StyledVisual } from '@pega/cosmos-react-core/lib/components/SummaryItem/SummaryItem';
|
|
7
|
-
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
const styleTaskIcon = (variant, theme) => {
|
|
11
|
-
const { background, foreground } = theme.components['task-manager']['task-icon'][variant];
|
|
12
|
-
let borderColor = 'transparent';
|
|
13
|
-
if (variant === 'queued') {
|
|
14
|
-
borderColor = theme.base.colors.slate['extra-dark'];
|
|
15
|
-
}
|
|
8
|
+
export const StyledTaskMain = styled.div ``;
|
|
9
|
+
export const StyledTaskManagerTabsSummaryItem = styled.div ``;
|
|
10
|
+
export const StyledTaskManagerTabs = styled.div(({ theme }) => {
|
|
16
11
|
return css `
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
padding: calc(0.75 * ${theme.base.spacing});
|
|
28
|
-
color: ${foreground};
|
|
29
|
-
background: ${background};
|
|
30
|
-
font-size: 1rem;
|
|
31
|
-
border: 0.0625rem dashed ${borderColor};
|
|
32
|
-
`;
|
|
33
|
-
};
|
|
34
|
-
export const StyledTaskIcon = styled.div(({ variant, theme }) => {
|
|
35
|
-
return css `
|
|
36
|
-
${styleTaskIcon(variant, theme)}
|
|
12
|
+
background-color: ${theme.base.palette['secondary-background']};
|
|
13
|
+
|
|
14
|
+
::before {
|
|
15
|
+
content: '';
|
|
16
|
+
border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
|
|
17
|
+
height: 0.0625rem;
|
|
18
|
+
width: 100%;
|
|
19
|
+
position: absolute;
|
|
20
|
+
inset-block-end: 0;
|
|
21
|
+
}
|
|
37
22
|
`;
|
|
38
23
|
});
|
|
39
|
-
|
|
24
|
+
StyledTaskManagerTabs.defaultProps = defaultThemeProp;
|
|
25
|
+
export const StyledTaskSummaryItem = styled.li(({ theme }) => {
|
|
40
26
|
const { base: { spacing } } = theme;
|
|
41
27
|
return css `
|
|
42
28
|
min-height: 2.5rem;
|
|
43
|
-
padding: ${spacing}
|
|
44
|
-
> ${StyledVisual} {
|
|
45
|
-
${styleTaskIcon(variant, theme)}
|
|
46
|
-
}
|
|
29
|
+
padding: ${spacing};
|
|
47
30
|
&:not(:last-child) {
|
|
48
|
-
border-
|
|
31
|
+
border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
|
|
49
32
|
}
|
|
50
33
|
`;
|
|
51
34
|
});
|
|
52
35
|
StyledTaskSummaryItem.defaultProps = defaultThemeProp;
|
|
53
|
-
export const
|
|
54
|
-
export const StyledTaskDrawerBareButton = styled(BareButton)(({ variant, active = false, theme, theme: { base: { palette: { 'border-line': borderLine } } } }) => {
|
|
55
|
-
const primaryColor = theme.base.palette.interactive;
|
|
36
|
+
export const StyleTaskName = styled.span(() => {
|
|
56
37
|
return css `
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
`;
|
|
42
|
+
});
|
|
43
|
+
export const StyledTaskStatus = styled(Status)(({ theme }) => {
|
|
44
|
+
return css `
|
|
45
|
+
margin-block-start: calc(0.25 * ${theme.base.spacing});
|
|
46
|
+
`;
|
|
47
|
+
});
|
|
48
|
+
StyleTaskName.defaultProps = defaultThemeProp;
|
|
49
|
+
StyledTaskStatus.defaultProps = defaultThemeProp;
|
|
50
|
+
export const StyledTaskManagerTab = styled.li(({ active = false, theme }) => {
|
|
51
|
+
const hoverColor = tryCatch(() => mix(0.85, theme.base.palette['primary-background'], theme.base.palette.interactive));
|
|
52
|
+
return css `
|
|
53
|
+
max-width: 20rem;
|
|
54
|
+
min-width: 18rem;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
border-inline-end: 0.065rem solid ${theme.base.palette['border-line']};
|
|
57
|
+
text-align: start;
|
|
58
|
+
outline: none;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
position: relative;
|
|
63
|
+
flex: 1;
|
|
64
|
+
min-height: 2.5rem;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
padding-block: calc(0.5 * ${theme.base.spacing});
|
|
67
|
+
padding-inline: calc(2 * ${theme.base.spacing}) calc(1 * ${theme.base.spacing});
|
|
68
|
+
background-color: ${active &&
|
|
65
69
|
css `
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
${theme.base.palette['primary-background']};
|
|
71
|
+
`};
|
|
68
72
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
& + & {
|
|
74
|
+
margin-inline-start: 0;
|
|
75
|
+
}
|
|
72
76
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
background: ${primaryColor};
|
|
77
|
-
position: absolute;
|
|
78
|
-
width: 0.25rem;
|
|
79
|
-
height: 100%;
|
|
80
|
-
top: 0;
|
|
81
|
-
left: 0;
|
|
82
|
-
}
|
|
77
|
+
> ${StyledTaskManagerTabsSummaryItem} {
|
|
78
|
+
overflow-x: hidden;
|
|
79
|
+
}
|
|
83
80
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
display: ${active ? 'block' : 'none'};
|
|
87
|
-
position: absolute;
|
|
88
|
-
width: 0.0625rem;
|
|
89
|
-
top: 0;
|
|
90
|
-
height: 100%;
|
|
91
|
-
right: -0.0625rem;
|
|
92
|
-
background-color: ${active &&
|
|
81
|
+
> ${StyledTaskManagerTabsSummaryItem} > ${StyledVisual} {
|
|
82
|
+
${active &&
|
|
93
83
|
css `
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
84
|
+
background: ${theme.base.palette.interactive};
|
|
85
|
+
color: ${theme.base.colors.white};
|
|
86
|
+
`}
|
|
87
|
+
}
|
|
88
|
+
${active &&
|
|
89
|
+
css `
|
|
90
|
+
::after {
|
|
91
|
+
position: absolute;
|
|
92
|
+
content: '';
|
|
93
|
+
height: 0.0625rem;
|
|
94
|
+
width: 100%;
|
|
95
|
+
background-color: ${theme.base.palette['primary-background']};
|
|
96
|
+
inset-inline-start: 0;
|
|
97
|
+
inset-block-end: 0;
|
|
105
98
|
}
|
|
99
|
+
`}
|
|
106
100
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
color: ${theme.base.colors.white};
|
|
113
|
-
`}
|
|
101
|
+
&:hover,
|
|
102
|
+
&:focus {
|
|
103
|
+
background-color: ${hoverColor};
|
|
104
|
+
::after {
|
|
105
|
+
background-color: ${hoverColor};
|
|
114
106
|
}
|
|
107
|
+
box-shadow: none;
|
|
108
|
+
}
|
|
109
|
+
&:focus {
|
|
110
|
+
box-shadow: inset ${theme.base.shadow.focus};
|
|
111
|
+
}
|
|
115
112
|
|
|
113
|
+
> ${StyledFlex} {
|
|
114
|
+
max-width: 100%;
|
|
115
|
+
}
|
|
116
|
+
`;
|
|
117
|
+
});
|
|
118
|
+
StyledTaskManagerTab.defaultProps = defaultThemeProp;
|
|
119
|
+
export const StyledTasksTabList = styled.ul(({ theme }) => {
|
|
120
|
+
const primaryColor = theme.base.palette.interactive;
|
|
121
|
+
const lightenedColor = tryCatch(() => transparentize(0.5, primaryColor)) ?? '';
|
|
122
|
+
return css `
|
|
123
|
+
position: relative;
|
|
124
|
+
display: flex;
|
|
125
|
+
flex-grow: 1;
|
|
126
|
+
overflow: scroll;
|
|
127
|
+
-ms-overflow-style: none;
|
|
128
|
+
&::-webkit-scrollbar {
|
|
129
|
+
display: none;
|
|
130
|
+
}
|
|
131
|
+
scrollbar-width: none;
|
|
132
|
+
${StyledTaskManagerTab} {
|
|
133
|
+
margin-inline-start: 0;
|
|
116
134
|
&:hover,
|
|
117
135
|
&:focus {
|
|
118
|
-
|
|
136
|
+
::before {
|
|
137
|
+
display: block;
|
|
138
|
+
background-color: ${lightenedColor};
|
|
139
|
+
}
|
|
119
140
|
}
|
|
120
|
-
|
|
141
|
+
}
|
|
142
|
+
`;
|
|
121
143
|
});
|
|
122
|
-
|
|
123
|
-
export const
|
|
124
|
-
export const StyledStickyCardHeader = styled(StyledCardHeader) ``;
|
|
125
|
-
export const TASK_DRAWER_COLLAPSED_WIDTH = '4rem';
|
|
126
|
-
export const StyledTaskManager = styled.div(({ hasDrawer = true, theme: { base: { animation } }, theme }) => {
|
|
127
|
-
var _a;
|
|
144
|
+
StyledTasksTabList.defaultProps = defaultThemeProp;
|
|
145
|
+
export const StyledStickyCardHeader = styled(StyledCardHeader)(({ theme }) => {
|
|
128
146
|
const primaryBackgroundColor = theme.base.palette['primary-background'];
|
|
129
|
-
const primaryColor = theme.base.palette.interactive;
|
|
130
|
-
const lightenedColor = (_a = tryCatch(() => transparentize(0.5, primaryColor))) !== null && _a !== void 0 ? _a : '';
|
|
131
147
|
return css `
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
148
|
+
inset-block-start: 0;
|
|
149
|
+
inset-inline-start: 0;
|
|
150
|
+
background: ${primaryBackgroundColor};
|
|
151
|
+
height: calc(3.5rem - 0.0625rem);
|
|
152
|
+
border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
|
|
153
|
+
`;
|
|
154
|
+
});
|
|
155
|
+
export const StyledOverflowTabMenu = styled(MenuButton)(({ theme }) => {
|
|
156
|
+
return css `
|
|
157
|
+
border-radius: 0;
|
|
158
|
+
display: inline-block;
|
|
159
|
+
position: relative;
|
|
160
|
+
inset-inline-end: 0;
|
|
161
|
+
inset-block-start: 0;
|
|
162
|
+
align-self: stretch;
|
|
163
|
+
margin-inline-start: auto;
|
|
164
|
+
background-color: ${theme.base.palette['secondary-background']};
|
|
165
|
+
border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
|
|
166
|
+
padding: 0 ${theme.base.spacing};
|
|
167
|
+
`;
|
|
168
|
+
});
|
|
169
|
+
StyledStickyCardHeader.defaultProps = defaultThemeProp;
|
|
170
|
+
StyledOverflowTabMenu.defaultProps = defaultThemeProp;
|
|
171
|
+
export const StyledTaskManager = styled.div(({ theme }) => {
|
|
172
|
+
const primaryBackgroundColor = theme.base.palette['primary-background'];
|
|
173
|
+
return css `
|
|
174
|
+
background: ${primaryBackgroundColor};
|
|
175
|
+
position: relative;
|
|
176
|
+
border-radius: 0 0 0.5rem 0.5rem;
|
|
162
177
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
left: 0;
|
|
169
|
-
width: 100%;
|
|
170
|
-
}
|
|
178
|
+
${StyledStatus} {
|
|
179
|
+
line-height: calc(${theme.base.spacing} * 2);
|
|
180
|
+
height: calc(${theme.base.spacing} * 2);
|
|
181
|
+
font-size: 0.7rem;
|
|
182
|
+
}
|
|
171
183
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
&:hover,
|
|
176
|
-
&:focus {
|
|
177
|
-
::before {
|
|
178
|
-
display: block;
|
|
179
|
-
background-color: ${lightenedColor};
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
184
|
+
${StyledCardContent} {
|
|
185
|
+
&:not(${StyledCard} ${StyledCard} > &) {
|
|
186
|
+
padding: 0;
|
|
183
187
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
+
}
|
|
189
|
+
${StyledTaskMain} {
|
|
190
|
+
padding: 0 calc(2 * ${theme.base.spacing}) calc(2 * ${theme.base.spacing});
|
|
191
|
+
${StyledCardHeader} {
|
|
192
|
+
padding: ${theme.base.spacing} 0;
|
|
193
|
+
margin-block-end: ${theme.base.spacing};
|
|
188
194
|
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
margin
|
|
195
|
+
}
|
|
196
|
+
${StyledEmptyState} {
|
|
197
|
+
padding: calc(2 * ${theme.base.spacing});
|
|
198
|
+
}
|
|
199
|
+
${StyledTaskManagerTabs} {
|
|
200
|
+
position: relative;
|
|
201
|
+
}
|
|
202
|
+
${StyledTaskManagerTab} {
|
|
203
|
+
> ${StyledTaskManagerTabsSummaryItem} > ${StyledVisual} {
|
|
204
|
+
margin: 0 calc(2 * ${theme.base.spacing});
|
|
199
205
|
}
|
|
200
|
-
|
|
206
|
+
}
|
|
207
|
+
`;
|
|
201
208
|
});
|
|
202
209
|
StyledTaskManager.defaultProps = defaultThemeProp;
|
|
203
210
|
export const StyledTaskManagerBanner = styled.div(({ theme }) => {
|
|
@@ -206,9 +213,9 @@ export const StyledTaskManagerBanner = styled.div(({ theme }) => {
|
|
|
206
213
|
color: ${theme.base.colors.orange.medium};
|
|
207
214
|
border-radius: ${theme.base['border-radius']} ${theme.base['border-radius']} 0 0;
|
|
208
215
|
background-color: ${theme.base.colors.gray['extra-light']};
|
|
216
|
+
gap: ${theme.base.spacing};
|
|
209
217
|
|
|
210
218
|
& + ${StyledTaskManager} {
|
|
211
|
-
box-shadow: ${theme.base.shadow.low};
|
|
212
219
|
margin-block-start: 0;
|
|
213
220
|
}
|
|
214
221
|
`;
|
|
@@ -216,7 +223,7 @@ export const StyledTaskManagerBanner = styled.div(({ theme }) => {
|
|
|
216
223
|
StyledTaskManagerBanner.defaultProps = defaultThemeProp;
|
|
217
224
|
export const StyledPopover = styled(Popover)(({ theme }) => {
|
|
218
225
|
return css `
|
|
219
|
-
width:
|
|
226
|
+
width: 35rem;
|
|
220
227
|
border-radius: ${theme.base['border-radius']};
|
|
221
228
|
`;
|
|
222
229
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskManager.styles.js","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManager.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAgB,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,gEAAgE,CAAC;AAC9F,OAAO,UAAU,MAAM,0DAA0D,CAAC;AAIlF,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAA,EAAE,CAAC;AACpD,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAA,EAAE,CAAC;AAM7C,MAAM,aAAa,GAAG,CAAC,OAAuC,EAAE,KAAmB,EAAE,EAAE;IACrF,MAAM,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AAG,gBAAgB,CAAC;AAElD,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IAC9D,OAAO,GAAG,CAAA;0BACc,KAAK,CAAC,IAAI,CAAC,OAAO;aAC/B,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM;qBACvB,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;wBACvD,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;;UAEnD,iBAAiB;oBACP,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG;;;GAGtC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,uBAAuB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAExD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACzD,OAAO,GAAG,CAAA;;qBAES,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;GAC7C,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,aAAa,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE9C,eAAe,iBAAiB,CAAC","sourcesContent":["import styled, { css, DefaultTheme } from 'styled-components';\nimport { transparentize } from 'polished';\n\nimport { defaultThemeProp, Popover, tryCatch } from '@pega/cosmos-react-core';\nimport { StyledCardHeader } from '@pega/cosmos-react-core/lib/components/Card/CardHeader';\nimport { StyledStatus } from '@pega/cosmos-react-core/lib/components/Badges/Status';\nimport { StyledVisual } from '@pega/cosmos-react-core/lib/components/SummaryItem/SummaryItem';\nimport BareButton from '@pega/cosmos-react-core/lib/components/Button/BareButton';\n\nimport { TaskProps } from './TaskManager.types';\n\nexport const StyledTaskDrawerWrapper = styled.div``;\nexport const StyledTaskDrawer = styled.div``;\n\nexport interface StyledTaskIconProps {\n variant: TaskProps['variant'] | 'action' | 'banner';\n}\n\nconst styleTaskIcon = (variant: StyledTaskIconProps['variant'], theme: DefaultTheme) => {\n const { background, foreground } = theme.components['task-manager']['task-icon'][variant];\n let borderColor = 'transparent';\n if (variant === 'queued') {\n borderColor = theme.base.colors.slate['extra-dark'];\n }\n return css`\n margin-inline-end: ${theme.base.spacing};\n border-radius: 50%;\n width: 2rem;\n height: 2rem;\n align-items: center;\n min-height: 2rem;\n min-width: 2rem;\n justify-content: center;\n line-height: 1rem;\n display: inline-flex;\n padding: calc(0.75 * ${theme.base.spacing});\n color: ${foreground};\n background: ${background};\n font-size: 1rem;\n border: 0.0625rem dashed ${borderColor};\n `;\n};\n\nexport const StyledTaskIcon = styled.div<StyledTaskIconProps>(({ variant, theme }) => {\n return css`\n ${styleTaskIcon(variant, theme)}\n `;\n});\n\nexport const StyledTaskSummaryItem = styled.li<StyledTaskIconProps>(({ variant, theme }) => {\n const {\n base: { spacing }\n } = theme;\n return css`\n min-height: 2.5rem;\n padding: ${spacing} 0;\n > ${StyledVisual} {\n ${styleTaskIcon(variant, theme)}\n }\n &:not(:last-child) {\n border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n `;\n});\n\nStyledTaskSummaryItem.defaultProps = defaultThemeProp;\n\nexport const StyledTaskDrawerSummaryItem = styled.div``;\ninterface StyledTaskDrawerBareButtonProps extends StyledTaskIconProps {\n active?: boolean;\n}\n\nexport const StyledTaskDrawerBareButton = styled(BareButton)<StyledTaskDrawerBareButtonProps>(\n ({\n variant,\n active = false,\n theme,\n theme: {\n base: {\n palette: { 'border-line': borderLine }\n }\n }\n }) => {\n const primaryColor = theme.base.palette.interactive;\n return css`\n white-space: nowrap;\n border-bottom: 0.1rem solid ${borderLine};\n position: relative;\n width: 100%;\n text-align: left;\n min-height: 3.45rem;\n outline: none;\n background-color: ${active &&\n css`\n ${theme.base.colors.white}\n `};\n\n & + & {\n margin-inline-start: 0;\n }\n\n &::before {\n content: '';\n display: ${active ? 'block' : 'none'};\n background: ${primaryColor};\n position: absolute;\n width: 0.25rem;\n height: 100%;\n top: 0;\n left: 0;\n }\n\n &::after {\n content: '';\n display: ${active ? 'block' : 'none'};\n position: absolute;\n width: 0.0625rem;\n top: 0;\n height: 100%;\n right: -0.0625rem;\n background-color: ${active &&\n css`\n ${theme.base.colors.white}\n `};\n }\n\n &:not(:first-child):not(:last-child)::before,\n &:not(:first-child):not(:last-child)::after {\n height: calc(100% + 0.0625rem);\n }\n\n > ${StyledTaskDrawerSummaryItem} {\n overflow-x: hidden;\n }\n\n > ${StyledTaskDrawerSummaryItem} > ${StyledVisual} {\n ${styleTaskIcon(variant, theme)}\n ${active &&\n css`\n background: ${theme.base.palette.interactive};\n color: ${theme.base.colors.white};\n `}\n }\n\n &:hover,\n &:focus {\n background: ${theme.base.colors.white};\n }\n `;\n }\n);\n\nStyledTaskDrawerBareButton.defaultProps = defaultThemeProp;\n\nexport const StyledTasksTabList = styled.div``;\nexport const StyledStickyCardHeader = styled(StyledCardHeader)``;\n\ninterface StyledTaskManagerProps {\n hasDrawer?: boolean;\n}\n\nexport const TASK_DRAWER_COLLAPSED_WIDTH = '4rem';\n\nexport const StyledTaskManager = styled.div<StyledTaskManagerProps>(\n ({\n hasDrawer = true,\n theme: {\n base: { animation }\n },\n theme\n }) => {\n const primaryBackgroundColor = theme.base.palette['primary-background'];\n const primaryColor = theme.base.palette.interactive;\n const lightenedColor = tryCatch(() => transparentize(0.5, primaryColor)) ?? '';\n\n return css`\n background: ${primaryBackgroundColor};\n position: relative;\n border-radius: 0.5rem;\n padding-left: calc(${hasDrawer ? 8 : 0} * ${theme.base.spacing});\n\n ${StyledStatus} {\n line-height: calc(${theme.base.spacing} * 2);\n height: calc(${theme.base.spacing} * 2);\n font-size: 0.7rem;\n }\n\n ${StyledTaskDrawerWrapper} {\n background-color: ${theme.base.colors.gray.light};\n border-right: 0.0625rem solid ${theme.base.palette['border-line']};\n position: absolute;\n z-index: 10;\n top: 0;\n bottom: 0;\n left: 0;\n width: ${TASK_DRAWER_COLLAPSED_WIDTH};\n transition: width ${animation.speed} ${animation.timing.ease};\n will-change: width;\n border-bottom-left-radius: 0.5rem;\n\n &:hover,\n &:focus-within {\n width: 25rem;\n transition-delay: 0.25s;\n }\n }\n\n ${StyledTaskDrawer} {\n position: sticky;\n z-index: 2;\n top: 0;\n bottom: 0;\n left: 0;\n width: 100%;\n }\n\n ${StyledTasksTabList} {\n ${StyledTaskDrawerBareButton} {\n margin-inline-start: 0;\n &:hover,\n &:focus {\n ::before {\n display: block;\n background-color: ${lightenedColor};\n }\n }\n }\n }\n ${StyledTaskDrawerBareButton} {\n > ${StyledTaskDrawerSummaryItem} > ${StyledVisual} {\n margin: 0 calc(2 * ${theme.base.spacing});\n }\n }\n\n ${StyledStickyCardHeader} {\n position: sticky;\n top: 0;\n left: 0;\n background: ${primaryBackgroundColor};\n z-index: 6;\n height: calc(3.5rem - 0.0625rem);\n border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};\n margin-bottom: calc(${theme.base.spacing} * 2);\n }\n `;\n }\n);\n\nStyledTaskManager.defaultProps = defaultThemeProp;\n\nexport const StyledTaskManagerBanner = styled.div(({ theme }) => {\n return css`\n padding: calc(1.5 * ${theme.base.spacing});\n color: ${theme.base.colors.orange.medium};\n border-radius: ${theme.base['border-radius']} ${theme.base['border-radius']} 0 0;\n background-color: ${theme.base.colors.gray['extra-light']};\n\n & + ${StyledTaskManager} {\n box-shadow: ${theme.base.shadow.low};\n margin-block-start: 0;\n }\n `;\n});\n\nStyledTaskManagerBanner.defaultProps = defaultThemeProp;\n\nexport const StyledPopover = styled(Popover)(({ theme }) => {\n return css`\n width: 20rem;\n border-radius: ${theme.base['border-radius']};\n `;\n});\n\nStyledPopover.defaultProps = defaultThemeProp;\n\nexport default StyledTaskManager;\n"]}
|
|
1
|
+
{"version":3,"file":"TaskManager.styles.js","sourceRoot":"","sources":["../../../src/components/TaskManager/TaskManager.styles.ts"],"names":[],"m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ACc,KAAK,CAAC,IAAI,CAAC,OAAO;aAC/B,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM;qBACvB,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;wBACvD,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC;WAClD,KAAK,CAAC,IAAI,CAAC,OAAO;;UAEnB,iBAAiB;;;GAGxB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,uBAAuB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAExD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACzD,OAAO,GAAG,CAAA;;qBAES,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;GAC7C,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,aAAa,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE9C,eAAe,iBAAiB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\nimport { mix, transparentize } from 'polished';\n\nimport {\n defaultThemeProp,\n MenuButton,\n Popover,\n tryCatch,\n Status,\n StyledCard,\n StyledEmptyState,\n StyledFlex\n} from '@pega/cosmos-react-core';\nimport { StyledCardHeader } from '@pega/cosmos-react-core/lib/components/Card/CardHeader';\nimport { StyledCardContent } from '@pega/cosmos-react-core/lib/components/Card/CardContent';\nimport { StyledStatus } from '@pega/cosmos-react-core/lib/components/Badges/Status';\nimport { StyledVisual } from '@pega/cosmos-react-core/lib/components/SummaryItem/SummaryItem';\n\nimport { TaskManagerTabProps } from './TaskManager.types';\n\nexport const StyledTaskMain = styled.div``;\nexport const StyledTaskManagerTabsSummaryItem = styled.div``;\n\nexport const StyledTaskManagerTabs = styled.div(({ theme }) => {\n return css`\n background-color: ${theme.base.palette['secondary-background']};\n\n ::before {\n content: '';\n border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};\n height: 0.0625rem;\n width: 100%;\n position: absolute;\n inset-block-end: 0;\n }\n `;\n});\n\nStyledTaskManagerTabs.defaultProps = defaultThemeProp;\n\nexport const StyledTaskSummaryItem = styled.li(({ theme }) => {\n const {\n base: { spacing }\n } = theme;\n return css`\n min-height: 2.5rem;\n padding: ${spacing};\n &:not(:last-child) {\n border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n `;\n});\n\nStyledTaskSummaryItem.defaultProps = defaultThemeProp;\n\nexport const StyleTaskName = styled.span(() => {\n return css`\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n `;\n});\n\nexport const StyledTaskStatus = styled(Status)(({ theme }) => {\n return css`\n margin-block-start: calc(0.25 * ${theme.base.spacing});\n `;\n});\n\nStyleTaskName.defaultProps = defaultThemeProp;\nStyledTaskStatus.defaultProps = defaultThemeProp;\n\nexport const StyledTaskManagerTab = styled.li<TaskManagerTabProps>(({ active = false, theme }) => {\n const hoverColor = tryCatch(() =>\n mix(0.85, theme.base.palette['primary-background'], theme.base.palette.interactive)\n );\n return css`\n max-width: 20rem;\n min-width: 18rem;\n white-space: nowrap;\n border-inline-end: 0.065rem solid ${theme.base.palette['border-line']};\n text-align: start;\n outline: none;\n overflow: hidden;\n display: flex;\n align-items: center;\n position: relative;\n flex: 1;\n min-height: 2.5rem;\n cursor: pointer;\n padding-block: calc(0.5 * ${theme.base.spacing});\n padding-inline: calc(2 * ${theme.base.spacing}) calc(1 * ${theme.base.spacing});\n background-color: ${active &&\n css`\n ${theme.base.palette['primary-background']};\n `};\n\n & + & {\n margin-inline-start: 0;\n }\n\n > ${StyledTaskManagerTabsSummaryItem} {\n overflow-x: hidden;\n }\n\n > ${StyledTaskManagerTabsSummaryItem} > ${StyledVisual} {\n ${active &&\n css`\n background: ${theme.base.palette.interactive};\n color: ${theme.base.colors.white};\n `}\n }\n ${active &&\n css`\n ::after {\n position: absolute;\n content: '';\n height: 0.0625rem;\n width: 100%;\n background-color: ${theme.base.palette['primary-background']};\n inset-inline-start: 0;\n inset-block-end: 0;\n }\n `}\n\n &:hover,\n &:focus {\n background-color: ${hoverColor};\n ::after {\n background-color: ${hoverColor};\n }\n box-shadow: none;\n }\n &:focus {\n box-shadow: inset ${theme.base.shadow.focus};\n }\n\n > ${StyledFlex} {\n max-width: 100%;\n }\n `;\n});\n\nStyledTaskManagerTab.defaultProps = defaultThemeProp;\n\nexport const StyledTasksTabList = styled.ul(({ theme }) => {\n const primaryColor = theme.base.palette.interactive;\n const lightenedColor = tryCatch(() => transparentize(0.5, primaryColor)) ?? '';\n return css`\n position: relative;\n display: flex;\n flex-grow: 1;\n overflow: scroll;\n -ms-overflow-style: none;\n &::-webkit-scrollbar {\n display: none;\n }\n scrollbar-width: none;\n ${StyledTaskManagerTab} {\n margin-inline-start: 0;\n &:hover,\n &:focus {\n ::before {\n display: block;\n background-color: ${lightenedColor};\n }\n }\n }\n `;\n});\n\nStyledTasksTabList.defaultProps = defaultThemeProp;\n\nexport const StyledStickyCardHeader = styled(StyledCardHeader)(({ theme }) => {\n const primaryBackgroundColor = theme.base.palette['primary-background'];\n return css`\n inset-block-start: 0;\n inset-inline-start: 0;\n background: ${primaryBackgroundColor};\n height: calc(3.5rem - 0.0625rem);\n border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};\n `;\n});\nexport const StyledOverflowTabMenu = styled(MenuButton)(({ theme }) => {\n return css`\n border-radius: 0;\n display: inline-block;\n position: relative;\n inset-inline-end: 0;\n inset-block-start: 0;\n align-self: stretch;\n margin-inline-start: auto;\n background-color: ${theme.base.palette['secondary-background']};\n border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};\n padding: 0 ${theme.base.spacing};\n `;\n});\n\nStyledStickyCardHeader.defaultProps = defaultThemeProp;\nStyledOverflowTabMenu.defaultProps = defaultThemeProp;\n\ninterface StyledTaskManagerProps {\n hasDrawer?: boolean;\n}\n\nexport const StyledTaskManager = styled.div<StyledTaskManagerProps>(({ theme }) => {\n const primaryBackgroundColor = theme.base.palette['primary-background'];\n return css`\n background: ${primaryBackgroundColor};\n position: relative;\n border-radius: 0 0 0.5rem 0.5rem;\n\n ${StyledStatus} {\n line-height: calc(${theme.base.spacing} * 2);\n height: calc(${theme.base.spacing} * 2);\n font-size: 0.7rem;\n }\n\n ${StyledCardContent} {\n &:not(${StyledCard} ${StyledCard} > &) {\n padding: 0;\n }\n }\n ${StyledTaskMain} {\n padding: 0 calc(2 * ${theme.base.spacing}) calc(2 * ${theme.base.spacing});\n ${StyledCardHeader} {\n padding: ${theme.base.spacing} 0;\n margin-block-end: ${theme.base.spacing};\n }\n }\n ${StyledEmptyState} {\n padding: calc(2 * ${theme.base.spacing});\n }\n ${StyledTaskManagerTabs} {\n position: relative;\n }\n ${StyledTaskManagerTab} {\n > ${StyledTaskManagerTabsSummaryItem} > ${StyledVisual} {\n margin: 0 calc(2 * ${theme.base.spacing});\n }\n }\n `;\n});\n\nStyledTaskManager.defaultProps = defaultThemeProp;\n\nexport const StyledTaskManagerBanner = styled.div(({ theme }) => {\n return css`\n padding: calc(1.5 * ${theme.base.spacing});\n color: ${theme.base.colors.orange.medium};\n border-radius: ${theme.base['border-radius']} ${theme.base['border-radius']} 0 0;\n background-color: ${theme.base.colors.gray['extra-light']};\n gap: ${theme.base.spacing};\n\n & + ${StyledTaskManager} {\n margin-block-start: 0;\n }\n `;\n});\n\nStyledTaskManagerBanner.defaultProps = defaultThemeProp;\n\nexport const StyledPopover = styled(Popover)(({ theme }) => {\n return css`\n width: 35rem;\n border-radius: ${theme.base['border-radius']};\n `;\n});\n\nStyledPopover.defaultProps = defaultThemeProp;\n\nexport default StyledTaskManager;\n"]}
|