@pega/cosmos-react-core 10.0.0-build.12.2 → 10.0.0-build.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/AppShell/AppNavigationPanel.d.ts.map +1 -1
- package/lib/components/AppShell/AppNavigationPanel.js +12 -3
- package/lib/components/AppShell/AppNavigationPanel.js.map +1 -1
- package/lib/components/AppShell/AppShell.d.ts.map +1 -1
- package/lib/components/AppShell/AppShell.js +1 -1
- package/lib/components/AppShell/AppShell.js.map +1 -1
- package/lib/components/AppShell/AppShell.types.d.ts +18 -0
- package/lib/components/AppShell/AppShell.types.d.ts.map +1 -1
- package/lib/components/AppShell/AppShell.types.js.map +1 -1
- package/lib/components/AppShell/NavigationList.d.ts.map +1 -1
- package/lib/components/AppShell/NavigationList.js +34 -11
- package/lib/components/AppShell/NavigationList.js.map +1 -1
- package/lib/components/AppShell/NavigationListItemWrapper.d.ts.map +1 -1
- package/lib/components/AppShell/NavigationListItemWrapper.js +2 -0
- package/lib/components/AppShell/NavigationListItemWrapper.js.map +1 -1
- package/lib/components/Drawer/ResizeHandle.d.ts.map +1 -1
- package/lib/components/Drawer/ResizeHandle.js +7 -5
- package/lib/components/Drawer/ResizeHandle.js.map +1 -1
- package/lib/components/Link/Link.d.ts.map +1 -1
- package/lib/components/Link/Link.js +14 -2
- package/lib/components/Link/Link.js.map +1 -1
- package/lib/components/LiveLog/LiveLog.styles.d.ts.map +1 -1
- package/lib/components/LiveLog/LiveLog.styles.js +1 -0
- package/lib/components/LiveLog/LiveLog.styles.js.map +1 -1
- package/lib/components/Menu/Menu.types.d.ts +1 -0
- package/lib/components/Menu/Menu.types.d.ts.map +1 -1
- package/lib/components/Menu/Menu.types.js.map +1 -1
- package/lib/components/Menu/MenuItem.d.ts.map +1 -1
- package/lib/components/Menu/MenuItem.js +5 -2
- package/lib/components/Menu/MenuItem.js.map +1 -1
- package/lib/components/MultiStepForm/HorizontalFormProgress.d.ts.map +1 -1
- package/lib/components/MultiStepForm/HorizontalFormProgress.js +8 -3
- package/lib/components/MultiStepForm/HorizontalFormProgress.js.map +1 -1
- package/lib/components/MultiStepForm/VerticalFormProgress.d.ts.map +1 -1
- package/lib/components/MultiStepForm/VerticalFormProgress.js +12 -6
- package/lib/components/MultiStepForm/VerticalFormProgress.js.map +1 -1
- package/lib/components/SearchInput/SearchInput.d.ts +2 -0
- package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
- package/lib/components/SearchInput/SearchInput.js +48 -20
- package/lib/components/SearchInput/SearchInput.js.map +1 -1
- package/lib/components/Tabs/Tab.d.ts.map +1 -1
- package/lib/components/Tabs/Tab.js +0 -5
- package/lib/components/Tabs/Tab.js.map +1 -1
- package/lib/components/Tabs/TabPanel.d.ts.map +1 -1
- package/lib/components/Tabs/TabPanel.js +59 -1
- package/lib/components/Tabs/TabPanel.js.map +1 -1
- package/lib/components/Tabs/Tabs.styles.d.ts.map +1 -1
- package/lib/components/Tabs/Tabs.styles.js +36 -5
- package/lib/components/Tabs/Tabs.styles.js.map +1 -1
- package/lib/hooks/useI18n.d.ts +15 -0
- package/lib/hooks/useI18n.d.ts.map +1 -1
- package/lib/i18n/default.d.ts +15 -0
- package/lib/i18n/default.d.ts.map +1 -1
- package/lib/i18n/default.js +16 -1
- package/lib/i18n/default.js.map +1 -1
- package/lib/i18n/i18n.d.ts +15 -0
- package/lib/i18n/i18n.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabPanel.js","sourceRoot":"","sources":["../../../src/components/Tabs/TabPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE/E,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,cAAc,E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AAQ;gBACnB,MAAM,EAAE,CAAC;gBACT,GAAG,CAAC,WAAW,KAAK,YAAY,IAAI;oBAClC,GAAG,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC;iBACtD,CAAC;aACH,EACD,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EACjB,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAClC,IAAI,EAAC,UAAU,qBACE,GAAG,KAAK,EAAE,EAC3B,EAAE,EAAE,GAAG,KAAK,QAAQ,EACpB,GAAG,EAAE,WAAW,EAChB,QAAQ,EAAE,CAAC,EACX,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,aAEX,KAAK,IAAI,KAAC,IAAI,IAAC,OAAO,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,EAAgB,YAAG,KAAK,GAAQ,EAClF,QAAQ,EACR,UAAU,EAAE,OAAO,IAAI,gBAAgB,IAAI,CAC1C,KAAC,YAAY,IACX,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,GAAG,EAAE;wBACZ,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;oBACxC,CAAC,YAEA,CAAC,CAAC,oBAAoB,CAAC,GACX,CAChB,IACc,GACI,CACxB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AAErC,eAAe,QAAQ,CAAC","sourcesContent":["import { forwardRef, useState, useCallback, useMemo, useContext } from 'react';\nimport type { ReactNode, Ref, PropsWithoutRef, RefObject } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { useConsolidatedRef, useI18n, useFocusWithin, useEvent } from '../../hooks';\nimport { defaultThemeProp } from '../../theme';\nimport type { ForwardRefForwardPropsComponent, HeadingTag } from '../../types';\nimport Button from '../Button';\nimport { getFocusables } from '../../utils';\nimport Flex from '../Flex';\nimport Text from '../Text';\nimport { StyledCardContent } from '../Card/CardContent';\nimport { StyledCard } from '../Card/Card';\nimport { StyledCardHeader } from '../Card/CardHeader';\n\nimport type { TabsProps } from './Tabs.types';\nimport TabsContext from './TabsContext';\nimport { StyledAllTabsWrapper, StyledTabs } from './Tabs.styles';\n\ninterface TabPanelProps {\n /** The id of the Tab that the tab panel is related to. */\n tabId: string;\n /**\n * The current selected value of the tabs. Controls the visibility of the tab panel.\n * The tabsValue must match the tabId in order for the TabPanel to show itself.\n */\n currentTabId?: string;\n /** The title for the tab panel */\n title?: string;\n /** Content of the tab panel. */\n children: ReactNode;\n /** Ref to the tablist element. */\n tablistRef?: RefObject<HTMLElement>;\n /**\n * The tablist type indicates what direction the tabs are rendered in.\n * @default 'horizontal'\n */\n tablistType?: TabsProps['type'];\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLDivElement>;\n}\n\nconst defaultProps: Partial<TabPanelProps> = {\n tabId: ''\n};\n\nexport const StyledTabPanel = styled(Flex)<\n Pick<TabPanelProps, 'tablistType'> & {\n current: boolean;\n level: number;\n }\n>(({ current, tablistType, level, theme }) => {\n return css`\n min-width: 0;\n max-width: 100%;\n\n &:focus-visible {\n outline: none;\n box-shadow: ${tablistType === 'horizontal' && level > 1\n ? theme.base.shadow['focus-inset']\n : theme.base.shadow.focus};\n }\n\n ${!current &&\n css`\n display: none;\n `}\n\n ${tablistType === 'horizontal' &&\n level > 1 &&\n css`\n background-color: ${theme.base.palette['primary-background']};\n border: 0.0625rem solid ${theme.base.palette['border-line']};\n border-block-start: none;\n border-end-start-radius: calc(0.5rem * 0.5);\n border-end-end-radius: calc(0.5rem * 0.5);\n `}\n\n ${theme.components.tabs.detached &&\n tablistType === 'horizontal' &&\n css`\n background: ${theme.base.palette['primary-background']};\n border: 0.0625rem solid ${theme.base.palette['border-line']};\n border-block-start: none;\n border-radius: var(--border-radius, ${theme.base['border-radius']});\n border-start-start-radius: 0;\n border-start-end-radius: 0;\n padding: calc(2 * ${theme.base.spacing}) calc(2 * ${theme.base.spacing});\n\n &&& ${StyledCardHeader}:not(${StyledCard} ${StyledCard} > ${StyledCardHeader}) {\n padding: 0;\n @media (width < ${theme.base.breakpoints.sm}) {\n padding: 0;\n }\n }\n\n &&& ${StyledCardContent} {\n padding: 0;\n\n ${StyledCard} {\n border: 0;\n padding: 0;\n }\n }\n\n &&& ${StyledCard} {\n padding: calc(2 * ${theme.base.spacing});\n padding-block-start: ${theme.base.spacing};\n border: 0.0625rem solid ${theme.base.palette['border-line']};\n border-radius: var(--border-radius, ${theme.base['border-radius']});\n background: ${theme.components.card.background};\n }\n\n &&& > ${StyledCard} {\n padding: 0;\n border: 0;\n }\n\n ${StyledAllTabsWrapper} {\n ${StyledTabs} {\n margin-block-end: 0;\n }\n }\n\n ${level > 1 &&\n css`\n :has(&) {\n ${StyledAllTabsWrapper} {\n ${StyledTabs} {\n margin: 0;\n }\n }\n }\n `}\n `}\n `;\n});\n\nStyledTabPanel.defaultProps = defaultThemeProp;\n\nconst StyledButton = styled(Button)(({ theme }) => {\n return css`\n padding-inline: calc(${theme.base.spacing});\n opacity: 0;\n\n &:focus {\n opacity: 1;\n }\n `;\n});\n\nStyledButton.defaultProps = defaultThemeProp;\n\nconst TabPanel: ForwardRefForwardPropsComponent<TabPanelProps> = forwardRef(function TabPanel(\n {\n tabId,\n currentTabId,\n title,\n tablistRef,\n tablistType = 'horizontal',\n children,\n ...restProps\n }: PropsWithoutRef<TabPanelProps>,\n ref: TabPanelProps['ref']\n) {\n const t = useI18n();\n const tabPanelRef = useConsolidatedRef(ref);\n const [showReturnButton, setShowReturnButton] = useState(false);\n const { level } = useContext(TabsContext);\n\n const onFocusChange = useCallback((isFocused: boolean) => {\n if (!isFocused) {\n setShowReturnButton(false);\n }\n }, []);\n\n useFocusWithin([tabPanelRef], onFocusChange);\n\n const contextValue = useMemo(\n () => ({ level: tablistType === 'horizontal' ? level + 1 : 1 }),\n [level, tablistType]\n );\n\n const onKeyUp = () => {\n if (tabPanelRef.current?.contains(document.activeElement)) {\n setShowReturnButton(true);\n }\n };\n useEvent('keyup', onKeyUp);\n\n const currentTab = currentTabId && tabId ? currentTabId === tabId : true;\n\n return (\n <TabsContext.Provider value={contextValue}>\n <StyledTabPanel\n {...restProps}\n container={{\n direction: 'column',\n rowGap: 1,\n ...(tablistType === 'horizontal' && {\n pad: level > 1 ? [1, 1.5] : [1, undefined, undefined]\n })\n }}\n item={{ grow: 1 }}\n current={currentTab}\n inert={currentTab ? undefined : ''}\n role='tabpanel'\n aria-labelledby={`${tabId}`}\n id={`${tabId}-panel`}\n ref={tabPanelRef}\n tabIndex={0}\n tablistType={tablistType}\n level={level}\n >\n {title && <Text variant={`h${Math.min(2 + level, 6)}` as HeadingTag}>{title}</Text>}\n {children}\n {tablistRef?.current && showReturnButton && (\n <StyledButton\n variant='link'\n onClick={() => {\n getFocusables(tablistRef)[0]?.focus();\n }}\n >\n {t('return_to_tab_list')}\n </StyledButton>\n )}\n </StyledTabPanel>\n </TabsContext.Provider>\n );\n});\n\nTabPanel.defaultProps = defaultProps;\n\nexport default TabPanel;\n"]}
|
|
1
|
+
{"version":3,"file":"TabPanel.js","sourceRoot":"","sources":["../../../src/components/Tabs/TabPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE/E,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,MAAM,MAAM,W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AG,EAAE,WAAW,EAChB,QAAQ,EAAE,CAAC,EACX,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,aAEX,KAAK,IAAI,KAAC,IAAI,IAAC,OAAO,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,EAAgB,YAAG,KAAK,GAAQ,EAClF,QAAQ,EACR,UAAU,EAAE,OAAO,IAAI,gBAAgB,IAAI,CAC1C,KAAC,YAAY,IACX,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,GAAG,EAAE;wBACZ,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;oBACxC,CAAC,YAEA,CAAC,CAAC,oBAAoB,CAAC,GACX,CAChB,IACc,GACI,CACxB,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AAErC,eAAe,QAAQ,CAAC","sourcesContent":["import { forwardRef, useState, useCallback, useMemo, useContext } from 'react';\nimport type { ReactNode, Ref, PropsWithoutRef, RefObject } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { useConsolidatedRef, useI18n, useFocusWithin, useEvent } from '../../hooks';\nimport { defaultThemeProp } from '../../theme';\nimport type { ForwardRefForwardPropsComponent, HeadingTag } from '../../types';\nimport Button from '../Button';\nimport { getFocusables } from '../../utils';\nimport Flex from '../Flex';\nimport Text from '../Text';\nimport { StyledCardContent } from '../Card/CardContent';\nimport { StyledCard } from '../Card/Card';\nimport { StyledCardHeader } from '../Card/CardHeader';\n\nimport { StyledTab } from './Tab';\nimport type { TabsProps } from './Tabs.types';\nimport TabsContext from './TabsContext';\nimport {\n StyledAllTabsWrapper,\n StyledAllTabsButton,\n StyledSeparator,\n StyledTabs\n} from './Tabs.styles';\n\ninterface TabPanelProps {\n /** The id of the Tab that the tab panel is related to. */\n tabId: string;\n /**\n * The current selected value of the tabs. Controls the visibility of the tab panel.\n * The tabsValue must match the tabId in order for the TabPanel to show itself.\n */\n currentTabId?: string;\n /** The title for the tab panel */\n title?: string;\n /** Content of the tab panel. */\n children: ReactNode;\n /** Ref to the tablist element. */\n tablistRef?: RefObject<HTMLElement>;\n /**\n * The tablist type indicates what direction the tabs are rendered in.\n * @default 'horizontal'\n */\n tablistType?: TabsProps['type'];\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLDivElement>;\n}\n\nconst defaultProps: Partial<TabPanelProps> = {\n tabId: ''\n};\n\nexport const StyledTabPanel = styled(Flex)<\n Pick<TabPanelProps, 'tablistType'> & {\n current: boolean;\n level: number;\n }\n>(({ current, tablistType, level, theme }) => {\n return css`\n min-width: 0;\n max-width: 100%;\n\n &:focus-visible {\n outline: none;\n box-shadow: ${tablistType === 'horizontal' && level > 1\n ? theme.base.shadow['focus-inset']\n : theme.base.shadow.focus};\n }\n\n ${!current &&\n css`\n display: none;\n `}\n\n ${tablistType === 'horizontal' &&\n css`\n @media (width < ${theme.base.breakpoints.sm}) {\n border: none;\n padding-block-start: ${theme.base.spacing};\n &:has(${StyledTabs}[aria-orientation='horizontal']) {\n padding-inline: 0;\n padding-block-end: 0;\n\n ${StyledTabs}[aria-orientation='horizontal'], ${StyledAllTabsWrapper}, ${StyledAllTabsWrapper} ${StyledTabs}[aria-orientation='horizontal'] {\n border-radius: 0;\n }\n\n ${StyledAllTabsWrapper} ${StyledAllTabsButton} {\n border-radius: calc(\n ${theme.base['border-radius']} * ${theme.components.button['border-radius']}\n );\n }\n\n ${StyledTabs}[aria-orientation='horizontal'] > ${StyledTab}:first-child,\n ${StyledTabs}[aria-orientation='horizontal'] > ${StyledSeparator}:first-child + ${StyledTab},\n ${StyledAllTabsWrapper} ${StyledTabs}[aria-orientation='horizontal'] > ${StyledTab}:first-child,\n ${StyledAllTabsWrapper} ${StyledTabs}[aria-orientation='horizontal'] > ${StyledSeparator}:first-child + ${StyledTab} {\n border-start-start-radius: 0;\n\n &:focus-visible::after,\n &:not(:disabled):focus-visible::after {\n border-start-start-radius: calc(0.5rem * 0.5);\n }\n }\n\n ${StyledTabs}[aria-orientation='horizontal'] > ${StyledTab}:last-child,\n ${StyledAllTabsWrapper} ${StyledTabs}[aria-orientation='horizontal'] > ${StyledTab}:last-child {\n border-start-end-radius: 0;\n\n &:focus-visible::after,\n &:not(:disabled):focus-visible::after {\n border-start-end-radius: calc(0.5rem * 0.5);\n }\n }\n }\n\n ${theme.components.tabs.detached &&\n css`\n &:not(\n :has(\n > div > ${StyledTabs}[aria-orientation='horizontal'],\n > div > ${StyledAllTabsWrapper} ${StyledTabs}[aria-orientation='horizontal']\n )\n ) {\n padding-inline: calc(2 * ${theme.base.spacing});\n padding-block-end: ${theme.base.spacing};\n }\n `}\n }\n `}\n\n ${tablistType === 'horizontal' &&\n level > 1 &&\n css`\n background-color: ${theme.base.palette['primary-background']};\n border: 0.0625rem solid ${theme.base.palette['border-line']};\n border-block-start: none;\n border-end-start-radius: calc(0.5rem * 0.5);\n border-end-end-radius: calc(0.5rem * 0.5);\n `}\n\n ${theme.components.tabs.detached &&\n tablistType === 'horizontal' &&\n css`\n background: ${theme.base.palette['primary-background']};\n border: 0.0625rem solid ${theme.base.palette['border-line']};\n border-block-start: none;\n border-radius: var(--border-radius, ${theme.base['border-radius']});\n border-start-start-radius: 0;\n border-start-end-radius: 0;\n padding: calc(2 * ${theme.base.spacing}) calc(2 * ${theme.base.spacing});\n\n &&& ${StyledCardHeader}:not(${StyledCard} ${StyledCard} > ${StyledCardHeader}) {\n padding: 0;\n @media (width < ${theme.base.breakpoints.sm}) {\n padding: 0;\n }\n }\n\n &&& ${StyledCardContent} {\n padding: 0;\n\n ${StyledCard} {\n border: 0;\n padding: 0;\n }\n }\n\n &&& ${StyledCard} {\n padding: calc(2 * ${theme.base.spacing});\n padding-block-start: ${theme.base.spacing};\n border: 0.0625rem solid ${theme.base.palette['border-line']};\n border-radius: var(--border-radius, ${theme.base['border-radius']});\n background: ${theme.components.card.background};\n }\n\n &&& > ${StyledCard} {\n padding: 0;\n border: 0;\n }\n\n ${StyledAllTabsWrapper} {\n ${StyledTabs} {\n margin-block-end: 0;\n }\n }\n\n ${level > 1 &&\n css`\n :has(&) {\n ${StyledAllTabsWrapper} {\n ${StyledTabs} {\n margin: 0;\n }\n }\n }\n `}\n `}\n `;\n});\n\nStyledTabPanel.defaultProps = defaultThemeProp;\n\nconst StyledButton = styled(Button)(({ theme }) => {\n return css`\n padding-inline: calc(${theme.base.spacing});\n opacity: 0;\n\n &:focus {\n opacity: 1;\n }\n `;\n});\n\nStyledButton.defaultProps = defaultThemeProp;\n\nconst TabPanel: ForwardRefForwardPropsComponent<TabPanelProps> = forwardRef(function TabPanel(\n {\n tabId,\n currentTabId,\n title,\n tablistRef,\n tablistType = 'horizontal',\n children,\n ...restProps\n }: PropsWithoutRef<TabPanelProps>,\n ref: TabPanelProps['ref']\n) {\n const t = useI18n();\n const tabPanelRef = useConsolidatedRef(ref);\n const [showReturnButton, setShowReturnButton] = useState(false);\n const { level } = useContext(TabsContext);\n\n const onFocusChange = useCallback((isFocused: boolean) => {\n if (!isFocused) {\n setShowReturnButton(false);\n }\n }, []);\n\n useFocusWithin([tabPanelRef], onFocusChange);\n\n const contextValue = useMemo(\n () => ({ level: tablistType === 'horizontal' ? level + 1 : 1 }),\n [level, tablistType]\n );\n\n const onKeyUp = () => {\n if (tabPanelRef.current?.contains(document.activeElement)) {\n setShowReturnButton(true);\n }\n };\n useEvent('keyup', onKeyUp);\n\n const currentTab = currentTabId && tabId ? currentTabId === tabId : true;\n\n return (\n <TabsContext.Provider value={contextValue}>\n <StyledTabPanel\n {...restProps}\n container={{\n direction: 'column',\n rowGap: 1,\n ...(tablistType === 'horizontal' && {\n pad: level > 1 ? [1, 1.5] : [1, undefined, undefined]\n })\n }}\n item={{ grow: 1 }}\n current={currentTab}\n inert={currentTab ? undefined : ''}\n role='tabpanel'\n aria-labelledby={`${tabId}`}\n id={`${tabId}-panel`}\n ref={tabPanelRef}\n tabIndex={0}\n tablistType={tablistType}\n level={level}\n >\n {title && <Text variant={`h${Math.min(2 + level, 6)}` as HeadingTag}>{title}</Text>}\n {children}\n {tablistRef?.current && showReturnButton && (\n <StyledButton\n variant='link'\n onClick={() => {\n getFocusables(tablistRef)[0]?.focus();\n }}\n >\n {t('return_to_tab_list')}\n </StyledButton>\n )}\n </StyledTabPanel>\n </TabsContext.Provider>\n );\n});\n\nTabPanel.defaultProps = defaultProps;\n\nexport default TabPanel;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,0BAA0B,6NAmBtC,CAAC;AAIF,eAAO,MAAM,UAAU;kBACP,OAAO;WACd,MAAM;
|
|
1
|
+
{"version":3,"file":"Tabs.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,0BAA0B,6NAmBtC,CAAC;AAIF,eAAO,MAAM,UAAU;kBACP,OAAO;WACd,MAAM;YAuPb,CAAC;AAIH,eAAO,MAAM,mBAAmB;;;;iDAW9B,CAAC;AAIH,eAAO,MAAM,eAAe,kYAI3B,CAAC;AAIF,eAAO,MAAM,oBAAoB;WACxB,MAAM;YA6Cd,CAAC;AAIF,eAAO,MAAM,eAAe;iBAA8B,OAAO;YAOhE,CAAC"}
|
|
@@ -144,12 +144,22 @@ export const StyledTabs = styled.div(({ theme, hasScrollBar, level }) => {
|
|
|
144
144
|
css `
|
|
145
145
|
&:first-child {
|
|
146
146
|
border-start-start-radius: var(--border-radius, ${theme.base['border-radius']});
|
|
147
|
+
|
|
148
|
+
&:focus-visible::after,
|
|
149
|
+
&:not(:disabled):focus-visible::after {
|
|
150
|
+
border-start-start-radius: var(--border-radius, ${theme.base['border-radius']});
|
|
151
|
+
}
|
|
147
152
|
}
|
|
148
153
|
`}
|
|
149
154
|
${hasScrollBar &&
|
|
150
155
|
css `
|
|
151
156
|
&:last-child {
|
|
152
157
|
border-start-end-radius: var(--border-radius, ${theme.base['border-radius']});
|
|
158
|
+
|
|
159
|
+
&:focus-visible::after,
|
|
160
|
+
&:not(:disabled):focus-visible::after {
|
|
161
|
+
border-start-end-radius: var(--border-radius, ${theme.base['border-radius']});
|
|
162
|
+
}
|
|
153
163
|
}
|
|
154
164
|
`}
|
|
155
165
|
}
|
|
@@ -159,6 +169,11 @@ export const StyledTabs = styled.div(({ theme, hasScrollBar, level }) => {
|
|
|
159
169
|
height: max-content;
|
|
160
170
|
overflow: auto;
|
|
161
171
|
|
|
172
|
+
@media (width < ${theme.base.breakpoints.sm}) {
|
|
173
|
+
border: none;
|
|
174
|
+
border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
|
|
175
|
+
}
|
|
176
|
+
|
|
162
177
|
${hasScrollBar
|
|
163
178
|
? css `
|
|
164
179
|
max-width: calc(
|
|
@@ -251,11 +266,18 @@ export const StyledTabs = styled.div(({ theme, hasScrollBar, level }) => {
|
|
|
251
266
|
`;
|
|
252
267
|
});
|
|
253
268
|
StyledTabs.defaultProps = defaultThemeProp;
|
|
254
|
-
export const StyledAllTabsButton = styled(MenuButton)
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
269
|
+
export const StyledAllTabsButton = styled(MenuButton)(({ theme }) => {
|
|
270
|
+
return css `
|
|
271
|
+
display: inline-flex;
|
|
272
|
+
align-items: center;
|
|
273
|
+
justify-content: center;
|
|
274
|
+
|
|
275
|
+
&:not([disabled], [aria-disabled='true']):focus-visible,
|
|
276
|
+
&:enabled:not([aria-disabled='true']):focus-visible {
|
|
277
|
+
box-shadow: ${theme.base.shadow['focus-inset']};
|
|
278
|
+
}
|
|
279
|
+
`;
|
|
280
|
+
});
|
|
259
281
|
StyledAllTabsButton.defaultProps = defaultThemeProp;
|
|
260
282
|
export const StyledErrorIcon = styled(Icon)(({ theme }) => css `
|
|
261
283
|
color: ${theme.base.palette.urgent};
|
|
@@ -294,6 +316,15 @@ export const StyledAllTabsWrapper = styled.div(({ theme, level }) => css `
|
|
|
294
316
|
border-radius: 0;
|
|
295
317
|
}
|
|
296
318
|
`}
|
|
319
|
+
|
|
320
|
+
@media (width < ${theme.base.breakpoints.sm}) {
|
|
321
|
+
border: none;
|
|
322
|
+
border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
|
|
323
|
+
|
|
324
|
+
${StyledTabs}, ${StylesAllTabsButtonWrapper} {
|
|
325
|
+
border-block-end: none;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
297
328
|
`);
|
|
298
329
|
StyledAllTabsWrapper.defaultProps = defaultThemeProp;
|
|
299
330
|
export const StyledSeparator = styled.span(({ theme, transparent }) => css `
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.styles.js","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC,GAAG,CAClD,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;wBACI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ;IAChD,CAAC,CAAC,MAAM;IACR,CAAC,CAAC,mBAAmB,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE;yBACrC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ;IACjD,CAAC,CAAC,MAAM;IACR,CAAC,CAAC,mB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CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;MACrB,KAAK,GAAG,CAAC;IACX,GAAG,CAAA;0BACmB,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC;wDACZ,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;sDAC7B,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;;QAEzE,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ;QACjC,GAAG,CAAA;yCACgC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;8CAC5B,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;OACxE;QACC,0BAA0B,KAAK,SAAS;;;;KAI3C;MACC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ;IAChC,GAAG,CAAA;0BACmB,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC;gCAClC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;wDACT,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;sDAC7B,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;;;QAGzE,UAAU;;;;QAIV,0BAA0B;;;KAG7B;GACF,CACF,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAErD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CACxC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;;;;wBAIT,WAAW,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;GACpF,CACF,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\nimport { transparentize } from 'polished';\n\nimport Icon from '../Icon';\nimport MenuButton from '../MenuButton';\nimport { defaultThemeProp } from '../../theme';\n\nimport { StyledTab } from './Tab';\n\nexport const StylesAllTabsButtonWrapper = styled.div(\n ({ theme }) => css`\n border-block-end: ${theme.components.tabs.detached\n ? 'none'\n : `0.0625rem solid ${theme.base.palette['border-line']}`};\n border-inline-end: ${theme.components.tabs.detached\n ? 'none'\n : `0.0625rem solid ${theme.base.palette['border-line']}`};\n height: calc(${theme.base['hit-area']['mouse-min']} + 0.0625rem);\n\n ${theme.components.tabs.detached &&\n css`\n padding: 0;\n `};\n\n @media (pointer: coarse) {\n height: calc(${theme.base['hit-area']['finger-min']} + 0.0625rem);\n }\n `\n);\n\nStylesAllTabsButtonWrapper.defaultProps = defaultThemeProp;\n\nexport const StyledTabs = styled.div<{\n hasScrollBar: boolean;\n level: number;\n}>(({ theme, hasScrollBar, level }) => {\n const { detached: tabsDetached } = theme.components.tabs;\n const { spacing } = theme.base;\n const color = theme.components.button.color;\n const secondary = theme.base.palette['secondary-background'];\n const interactive = theme.base.palette.interactive;\n\n const shouldShowBackground = tabsDetached || (level && level > 1);\n\n let verticalBackground = 'transparent';\n if (shouldShowBackground) {\n verticalBackground = tabsDetached ? secondary : transparentize(0.75, interactive);\n }\n\n const horizontalBackground = shouldShowBackground\n ? theme.base.palette['primary-background']\n : 'transparent';\n\n const indicatorTransition = css`\n transition-property: transform, width, height;\n transition-duration: max(${theme.base.animation.speed}, 1ms);\n transition-timing-function: ${theme.base.animation.timing.ease};\n `;\n\n return css`\n position: relative;\n\n &::before {\n content: '';\n position: absolute;\n ${indicatorTransition};\n pointer-events: none;\n z-index: 0;\n }\n\n &::after {\n content: '';\n position: absolute;\n ${indicatorTransition};\n pointer-events: none;\n z-index: 2;\n }\n\n &[aria-orientation='horizontal']::before {\n inset-block-start: 0;\n inset-block-end: 0;\n inset-inline-start: 0;\n width: var(--indicator-width);\n transform: translateX(var(--indicator-left));\n background: ${horizontalBackground};\n }\n\n &[aria-orientation='horizontal']::after {\n inset-block-end: 0;\n inset-inline-start: calc(1.5 * ${spacing});\n width: calc(var(--indicator-width) - 3 * ${spacing});\n height: 0.125rem;\n background: ${color};\n transform: translateX(var(--indicator-left));\n }\n\n &[aria-orientation='vertical']::before {\n inset-block-start: 0;\n height: var(--indicator-height);\n transform: translateY(var(--indicator-top));\n background: ${verticalBackground};\n\n ${!tabsDetached &&\n css`\n inset-inline-start: 0;\n width: 100%;\n `}\n\n ${tabsDetached &&\n css`\n inset-inline-start: calc(2 * ${spacing});\n inset-inline-end: calc(2 * ${spacing});\n border-radius: calc(0.5 * ${theme.base['border-radius']});\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n `}\n }\n\n &[aria-orientation='vertical']::after {\n width: 0.25rem;\n background: ${interactive};\n transform: translateY(var(--indicator-top));\n\n ${!tabsDetached &&\n css`\n inset-block-start: 0;\n height: var(--indicator-height);\n inset-inline-end: 0;\n `}\n\n ${tabsDetached &&\n css`\n inset-block-start: 0.0625rem;\n height: calc(var(--indicator-height) - 0.125rem);\n inset-inline-start: calc(2 * ${spacing});\n `}\n }\n\n ${theme.components.tabs.detached &&\n css`\n ${StyledTab} + ${StyledTab} {\n margin-inline-start: calc(2 * ${theme.base.spacing});\n }\n\n &[aria-orientation='horizontal'] {\n background-color: ${theme.base.palette['secondary-background']};\n border-radius: var(--border-radius, ${theme.base['border-radius']});\n border-end-end-radius: 0;\n border-end-start-radius: 0;\n\n > ${StyledTab} {\n background-color: ${theme.base.palette['secondary-background']};\n\n &[aria-selected='true'] {\n background-color: ${theme.base.palette['primary-background']};\n }\n\n ${!hasScrollBar &&\n css`\n &:first-child {\n border-start-start-radius: var(--border-radius, ${theme.base['border-radius']});\n }\n `}\n ${hasScrollBar &&\n css`\n &:last-child {\n border-start-end-radius: var(--border-radius, ${theme.base['border-radius']});\n }\n `}\n }\n }\n `}\n &[aria-orientation='horizontal'] {\n height: max-content;\n overflow: auto;\n\n ${hasScrollBar\n ? css`\n max-width: calc(\n 100% - ${theme.base['hit-area']['mouse-min']} -\n ${level > 1 ? '0px' : `calc(0.5 * ${theme.base.spacing}) - 0.0625rem `}\n );\n border-block-end: ${theme.components.tabs.detached\n ? 'none'\n : `0.0625rem solid ${theme.base.palette['border-line']}`};\n\n @media (pointer: coarse) {\n max-width: calc(\n 100% - ${theme.base['hit-area']['finger-min']} -\n ${level > 1 ? '0px' : `calc(0.5 * ${theme.base.spacing}) - 0.0625rem `}\n );\n }\n\n ${StyledTab} {\n height: calc(${theme.base['hit-area']['mouse-min']} + 0.0625rem);\n\n @media (pointer: coarse) {\n height: calc(${theme.base['hit-area']['finger-min']} + 0.0625rem);\n }\n\n &:disabled {\n opacity: 1;\n\n > * {\n opacity: ${theme.base['disabled-opacity']};\n }\n }\n }\n `\n : css`\n border-block-end: ${theme.components.tabs.detached\n ? 'none'\n : `0.0625rem solid ${theme.base.palette['border-line']}`};\n ${level > 1 &&\n css`\n background-color: ${theme.base.palette['secondary-background']};\n border: ${theme.components.tabs.detached\n ? 'none'\n : `0.0625rem solid ${theme.base.palette['border-line']}`};\n border-block-end: none;\n border-radius: 0;\n border-start-start-radius: ${theme.components.tabs.detached\n ? `var(--border-radius, ${theme.base['border-radius']})`\n : 'calc(0.5rem * 0.5)'};\n border-start-end-radius: ${theme.components.tabs.detached\n ? `var(--border-radius, ${theme.base['border-radius']})`\n : 'calc(0.5rem * 0.5)'};\n `}\n `}\n ${theme.components.tabs.detached &&\n css`\n padding-block: 0;\n border: 0.0625rem solid ${theme.base.palette['border-line']};\n border-block-end: none;\n\n ${StylesAllTabsButtonWrapper} + & {\n padding-inline-start: calc(0.25 * ${theme.base.spacing});\n }\n\n ${StyledTab} + ${StyledTab} {\n margin-inline-start: 0;\n }\n\n ${hasScrollBar &&\n css`\n border: none;\n border-inline-start: none;\n max-width: calc(100% - ${theme.base['hit-area']['mouse-min']});\n\n @media (pointer: coarse) {\n max-width: calc(100% - ${theme.base['hit-area']['finger-min']});\n }\n `}\n `}\n }\n\n &:has(:focus-visible) {\n &[aria-orientation='vertical'] {\n box-shadow: ${theme.base.shadow['focus-group-inset']};\n }\n\n &[aria-orientation='horizontal'] {\n box-shadow: ${theme.base.shadow['focus-group']};\n }\n }\n `;\n});\n\nStyledTabs.defaultProps = defaultThemeProp;\n\nexport const StyledAllTabsButton = styled(MenuButton)`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n`;\n\nStyledAllTabsButton.defaultProps = defaultThemeProp;\n\nexport const StyledErrorIcon = styled(Icon)(\n ({ theme }) => css`\n color: ${theme.base.palette.urgent};\n `\n);\n\nStyledErrorIcon.defaultProps = defaultThemeProp;\n\nexport const StyledAllTabsWrapper = styled.div<{\n level: number;\n}>(\n ({ theme, level }) => css`\n ${level > 1 &&\n css`\n background-color: ${theme.base.palette['secondary-background']};\n border-start-start-radius: var(--border-radius, ${theme.base['border-radius']});\n border-start-end-radius: var(--border-radius, ${theme.base['border-radius']});\n\n ${!theme.components.tabs.detached &&\n css`\n border-inline: 0.0625rem solid ${theme.base.palette['border-line']};\n border-block-start: 0.0625rem solid ${theme.base.palette['border-line']};\n `}\n ${StylesAllTabsButtonWrapper}, ${StyledTab} {\n border-block-end: none;\n border-inline-end: none;\n }\n `}\n ${theme.components.tabs.detached &&\n css`\n background-color: ${theme.base.palette['primary-background']};\n border: 0.0625rem solid ${theme.base.palette['border-line']};\n border-start-start-radius: var(--border-radius, ${theme.base['border-radius']});\n border-start-end-radius: var(--border-radius, ${theme.base['border-radius']});\n border-block-end: none;\n\n ${StyledTabs}[aria-orientation='horizontal'] {\n border-start-start-radius: 0;\n }\n\n ${StylesAllTabsButtonWrapper} {\n border-radius: 0;\n }\n `}\n `\n);\n\nStyledAllTabsWrapper.defaultProps = defaultThemeProp;\n\nexport const StyledSeparator = styled.span<{ transparent: boolean }>(\n ({ theme, transparent }) => css`\n align-self: center;\n height: 1em;\n min-width: 0.0625rem;\n background-color: ${transparent ? 'transparent' : theme.base.palette['border-line']};\n `\n);\n\nStyledSeparator.defaultProps = defaultThemeProp;\n"]}
|
|
1
|
+
{"version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sBAAsB,CAAC;wDACZ,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;sDAC7B,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;;QAEzE,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ;QACjC,GAAG,CAAA;yCACgC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;8CAC5B,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;OACxE;QACC,0BAA0B,KAAK,SAAS;;;;KAI3C;MACC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ;IAChC,GAAG,CAAA;0BACmB,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC;gCAClC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;wDACT,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;sDAC7B,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;;;QAGzE,UAAU;;;;QAIV,0BAA0B;;;KAG7B;;sBAEiB,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;;0CAEL,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;;QAEnE,UAAU,KAAK,0BAA0B;;;;GAI9C,CACF,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAErD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CACxC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,GAAG,CAAA;;;;wBAIT,WAAW,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;GACpF,CACF,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\nimport { transparentize } from 'polished';\n\nimport Icon from '../Icon';\nimport MenuButton from '../MenuButton';\nimport { defaultThemeProp } from '../../theme';\n\nimport { StyledTab } from './Tab';\n\nexport const StylesAllTabsButtonWrapper = styled.div(\n ({ theme }) => css`\n border-block-end: ${theme.components.tabs.detached\n ? 'none'\n : `0.0625rem solid ${theme.base.palette['border-line']}`};\n border-inline-end: ${theme.components.tabs.detached\n ? 'none'\n : `0.0625rem solid ${theme.base.palette['border-line']}`};\n height: calc(${theme.base['hit-area']['mouse-min']} + 0.0625rem);\n\n ${theme.components.tabs.detached &&\n css`\n padding: 0;\n `};\n\n @media (pointer: coarse) {\n height: calc(${theme.base['hit-area']['finger-min']} + 0.0625rem);\n }\n `\n);\n\nStylesAllTabsButtonWrapper.defaultProps = defaultThemeProp;\n\nexport const StyledTabs = styled.div<{\n hasScrollBar: boolean;\n level: number;\n}>(({ theme, hasScrollBar, level }) => {\n const { detached: tabsDetached } = theme.components.tabs;\n const { spacing } = theme.base;\n const color = theme.components.button.color;\n const secondary = theme.base.palette['secondary-background'];\n const interactive = theme.base.palette.interactive;\n\n const shouldShowBackground = tabsDetached || (level && level > 1);\n\n let verticalBackground = 'transparent';\n if (shouldShowBackground) {\n verticalBackground = tabsDetached ? secondary : transparentize(0.75, interactive);\n }\n\n const horizontalBackground = shouldShowBackground\n ? theme.base.palette['primary-background']\n : 'transparent';\n\n const indicatorTransition = css`\n transition-property: transform, width, height;\n transition-duration: max(${theme.base.animation.speed}, 1ms);\n transition-timing-function: ${theme.base.animation.timing.ease};\n `;\n\n return css`\n position: relative;\n\n &::before {\n content: '';\n position: absolute;\n ${indicatorTransition};\n pointer-events: none;\n z-index: 0;\n }\n\n &::after {\n content: '';\n position: absolute;\n ${indicatorTransition};\n pointer-events: none;\n z-index: 2;\n }\n\n &[aria-orientation='horizontal']::before {\n inset-block-start: 0;\n inset-block-end: 0;\n inset-inline-start: 0;\n width: var(--indicator-width);\n transform: translateX(var(--indicator-left));\n background: ${horizontalBackground};\n }\n\n &[aria-orientation='horizontal']::after {\n inset-block-end: 0;\n inset-inline-start: calc(1.5 * ${spacing});\n width: calc(var(--indicator-width) - 3 * ${spacing});\n height: 0.125rem;\n background: ${color};\n transform: translateX(var(--indicator-left));\n }\n\n &[aria-orientation='vertical']::before {\n inset-block-start: 0;\n height: var(--indicator-height);\n transform: translateY(var(--indicator-top));\n background: ${verticalBackground};\n\n ${!tabsDetached &&\n css`\n inset-inline-start: 0;\n width: 100%;\n `}\n\n ${tabsDetached &&\n css`\n inset-inline-start: calc(2 * ${spacing});\n inset-inline-end: calc(2 * ${spacing});\n border-radius: calc(0.5 * ${theme.base['border-radius']});\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n `}\n }\n\n &[aria-orientation='vertical']::after {\n width: 0.25rem;\n background: ${interactive};\n transform: translateY(var(--indicator-top));\n\n ${!tabsDetached &&\n css`\n inset-block-start: 0;\n height: var(--indicator-height);\n inset-inline-end: 0;\n `}\n\n ${tabsDetached &&\n css`\n inset-block-start: 0.0625rem;\n height: calc(var(--indicator-height) - 0.125rem);\n inset-inline-start: calc(2 * ${spacing});\n `}\n }\n\n ${theme.components.tabs.detached &&\n css`\n ${StyledTab} + ${StyledTab} {\n margin-inline-start: calc(2 * ${theme.base.spacing});\n }\n\n &[aria-orientation='horizontal'] {\n background-color: ${theme.base.palette['secondary-background']};\n border-radius: var(--border-radius, ${theme.base['border-radius']});\n border-end-end-radius: 0;\n border-end-start-radius: 0;\n\n > ${StyledTab} {\n background-color: ${theme.base.palette['secondary-background']};\n\n &[aria-selected='true'] {\n background-color: ${theme.base.palette['primary-background']};\n }\n\n ${!hasScrollBar &&\n css`\n &:first-child {\n border-start-start-radius: var(--border-radius, ${theme.base['border-radius']});\n\n &:focus-visible::after,\n &:not(:disabled):focus-visible::after {\n border-start-start-radius: var(--border-radius, ${theme.base['border-radius']});\n }\n }\n `}\n ${hasScrollBar &&\n css`\n &:last-child {\n border-start-end-radius: var(--border-radius, ${theme.base['border-radius']});\n\n &:focus-visible::after,\n &:not(:disabled):focus-visible::after {\n border-start-end-radius: var(--border-radius, ${theme.base['border-radius']});\n }\n }\n `}\n }\n }\n `}\n &[aria-orientation='horizontal'] {\n height: max-content;\n overflow: auto;\n\n @media (width < ${theme.base.breakpoints.sm}) {\n border: none;\n border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n\n ${hasScrollBar\n ? css`\n max-width: calc(\n 100% - ${theme.base['hit-area']['mouse-min']} -\n ${level > 1 ? '0px' : `calc(0.5 * ${theme.base.spacing}) - 0.0625rem `}\n );\n border-block-end: ${theme.components.tabs.detached\n ? 'none'\n : `0.0625rem solid ${theme.base.palette['border-line']}`};\n\n @media (pointer: coarse) {\n max-width: calc(\n 100% - ${theme.base['hit-area']['finger-min']} -\n ${level > 1 ? '0px' : `calc(0.5 * ${theme.base.spacing}) - 0.0625rem `}\n );\n }\n\n ${StyledTab} {\n height: calc(${theme.base['hit-area']['mouse-min']} + 0.0625rem);\n\n @media (pointer: coarse) {\n height: calc(${theme.base['hit-area']['finger-min']} + 0.0625rem);\n }\n\n &:disabled {\n opacity: 1;\n\n > * {\n opacity: ${theme.base['disabled-opacity']};\n }\n }\n }\n `\n : css`\n border-block-end: ${theme.components.tabs.detached\n ? 'none'\n : `0.0625rem solid ${theme.base.palette['border-line']}`};\n ${level > 1 &&\n css`\n background-color: ${theme.base.palette['secondary-background']};\n border: ${theme.components.tabs.detached\n ? 'none'\n : `0.0625rem solid ${theme.base.palette['border-line']}`};\n border-block-end: none;\n border-radius: 0;\n border-start-start-radius: ${theme.components.tabs.detached\n ? `var(--border-radius, ${theme.base['border-radius']})`\n : 'calc(0.5rem * 0.5)'};\n border-start-end-radius: ${theme.components.tabs.detached\n ? `var(--border-radius, ${theme.base['border-radius']})`\n : 'calc(0.5rem * 0.5)'};\n `}\n `}\n ${theme.components.tabs.detached &&\n css`\n padding-block: 0;\n border: 0.0625rem solid ${theme.base.palette['border-line']};\n border-block-end: none;\n\n ${StylesAllTabsButtonWrapper} + & {\n padding-inline-start: calc(0.25 * ${theme.base.spacing});\n }\n\n ${StyledTab} + ${StyledTab} {\n margin-inline-start: 0;\n }\n\n ${hasScrollBar &&\n css`\n border: none;\n border-inline-start: none;\n max-width: calc(100% - ${theme.base['hit-area']['mouse-min']});\n\n @media (pointer: coarse) {\n max-width: calc(100% - ${theme.base['hit-area']['finger-min']});\n }\n `}\n `}\n }\n\n &:has(:focus-visible) {\n &[aria-orientation='vertical'] {\n box-shadow: ${theme.base.shadow['focus-group-inset']};\n }\n\n &[aria-orientation='horizontal'] {\n box-shadow: ${theme.base.shadow['focus-group']};\n }\n }\n `;\n});\n\nStyledTabs.defaultProps = defaultThemeProp;\n\nexport const StyledAllTabsButton = styled(MenuButton)(({ theme }) => {\n return css`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n\n &:not([disabled], [aria-disabled='true']):focus-visible,\n &:enabled:not([aria-disabled='true']):focus-visible {\n box-shadow: ${theme.base.shadow['focus-inset']};\n }\n `;\n});\n\nStyledAllTabsButton.defaultProps = defaultThemeProp;\n\nexport const StyledErrorIcon = styled(Icon)(\n ({ theme }) => css`\n color: ${theme.base.palette.urgent};\n `\n);\n\nStyledErrorIcon.defaultProps = defaultThemeProp;\n\nexport const StyledAllTabsWrapper = styled.div<{\n level: number;\n}>(\n ({ theme, level }) => css`\n ${level > 1 &&\n css`\n background-color: ${theme.base.palette['secondary-background']};\n border-start-start-radius: var(--border-radius, ${theme.base['border-radius']});\n border-start-end-radius: var(--border-radius, ${theme.base['border-radius']});\n\n ${!theme.components.tabs.detached &&\n css`\n border-inline: 0.0625rem solid ${theme.base.palette['border-line']};\n border-block-start: 0.0625rem solid ${theme.base.palette['border-line']};\n `}\n ${StylesAllTabsButtonWrapper}, ${StyledTab} {\n border-block-end: none;\n border-inline-end: none;\n }\n `}\n ${theme.components.tabs.detached &&\n css`\n background-color: ${theme.base.palette['primary-background']};\n border: 0.0625rem solid ${theme.base.palette['border-line']};\n border-start-start-radius: var(--border-radius, ${theme.base['border-radius']});\n border-start-end-radius: var(--border-radius, ${theme.base['border-radius']});\n border-block-end: none;\n\n ${StyledTabs}[aria-orientation='horizontal'] {\n border-start-start-radius: 0;\n }\n\n ${StylesAllTabsButtonWrapper} {\n border-radius: 0;\n }\n `}\n\n @media (width < ${theme.base.breakpoints.sm}) {\n border: none;\n border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};\n\n ${StyledTabs}, ${StylesAllTabsButtonWrapper} {\n border-block-end: none;\n }\n }\n `\n);\n\nStyledAllTabsWrapper.defaultProps = defaultThemeProp;\n\nexport const StyledSeparator = styled.span<{ transparent: boolean }>(\n ({ theme, transparent }) => css`\n align-self: center;\n height: 1em;\n min-width: 0.0625rem;\n background-color: ${transparent ? 'transparent' : theme.base.palette['border-line']};\n `\n);\n\nStyledSeparator.defaultProps = defaultThemeProp;\n"]}
|
package/lib/hooks/useI18n.d.ts
CHANGED
|
@@ -180,6 +180,9 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
|
|
|
180
180
|
detail: string;
|
|
181
181
|
detail_of_noun: string;
|
|
182
182
|
close_detail: string;
|
|
183
|
+
back_to_noun: string;
|
|
184
|
+
previous_detail_page: string;
|
|
185
|
+
next_detail_page: string;
|
|
183
186
|
previous_record: string;
|
|
184
187
|
next_record: string;
|
|
185
188
|
showing_detail_of_noun: string;
|
|
@@ -325,7 +328,9 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
|
|
|
325
328
|
text_area_characters_remaining: string;
|
|
326
329
|
text_area_character_limit: string;
|
|
327
330
|
preview_link_instruction: string;
|
|
331
|
+
preview_link_action_instruction: string;
|
|
328
332
|
open_link_instruction: string;
|
|
333
|
+
open_link_in_tab_instruction: string;
|
|
329
334
|
polite_announcements: string;
|
|
330
335
|
assertive_announcements: string;
|
|
331
336
|
go_to_main_content: string;
|
|
@@ -398,6 +403,7 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
|
|
|
398
403
|
dock: string;
|
|
399
404
|
step_num: string;
|
|
400
405
|
steps: string;
|
|
406
|
+
multi_step_form_navigation_instructions: string;
|
|
401
407
|
load_more: string;
|
|
402
408
|
selected_date_a11y: string;
|
|
403
409
|
open_calendar_button_a11y: string;
|
|
@@ -476,6 +482,12 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
|
|
|
476
482
|
advanced_search: string;
|
|
477
483
|
recent_searches: string;
|
|
478
484
|
search_instructions: string;
|
|
485
|
+
search_input_filter_by: string;
|
|
486
|
+
search_input_filter_selection_announcement: string;
|
|
487
|
+
search_input_filter_state_selected: string;
|
|
488
|
+
search_input_filter_state_unselected: string;
|
|
489
|
+
search_input_no_filters_selected: string;
|
|
490
|
+
search_input_filters_cleared: string;
|
|
479
491
|
search_in: string;
|
|
480
492
|
search_in_noun: string;
|
|
481
493
|
action_from_summarylist_heading: string;
|
|
@@ -507,6 +519,7 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
|
|
|
507
519
|
widget_case_operator: string;
|
|
508
520
|
widget_pulse: string;
|
|
509
521
|
widget_gen_ai_coach: string;
|
|
522
|
+
widget_view: string;
|
|
510
523
|
close_preview: string;
|
|
511
524
|
preview_error: string;
|
|
512
525
|
case_preview_tabs: string;
|
|
@@ -1494,6 +1507,7 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
|
|
|
1494
1507
|
condition_builder_unused_conditions_in_logical_string: string;
|
|
1495
1508
|
condition_builder_please_provide_a_logic_expression: string;
|
|
1496
1509
|
dev_mode: string;
|
|
1510
|
+
navigation_panel: string;
|
|
1497
1511
|
expand_navigation: string;
|
|
1498
1512
|
collapse_navigation: string;
|
|
1499
1513
|
switch_to: string;
|
|
@@ -1775,6 +1789,7 @@ declare const useI18n: () => import("..").TranslationFunction<Readonly<{
|
|
|
1775
1789
|
component_missing_error_status: string;
|
|
1776
1790
|
field_type_updated_error_status: string;
|
|
1777
1791
|
field_type_updated_error: string;
|
|
1792
|
+
content_picker_nested_tabs_warning: string;
|
|
1778
1793
|
field_does_not_exist_error: string;
|
|
1779
1794
|
configure_item: string;
|
|
1780
1795
|
data_page_call_error: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
package/lib/i18n/default.d.ts
CHANGED
|
@@ -176,6 +176,9 @@ declare const _default: {
|
|
|
176
176
|
detail: string;
|
|
177
177
|
detail_of_noun: string;
|
|
178
178
|
close_detail: string;
|
|
179
|
+
back_to_noun: string;
|
|
180
|
+
previous_detail_page: string;
|
|
181
|
+
next_detail_page: string;
|
|
179
182
|
previous_record: string;
|
|
180
183
|
next_record: string;
|
|
181
184
|
showing_detail_of_noun: string;
|
|
@@ -321,7 +324,9 @@ declare const _default: {
|
|
|
321
324
|
text_area_characters_remaining: string;
|
|
322
325
|
text_area_character_limit: string;
|
|
323
326
|
preview_link_instruction: string;
|
|
327
|
+
preview_link_action_instruction: string;
|
|
324
328
|
open_link_instruction: string;
|
|
329
|
+
open_link_in_tab_instruction: string;
|
|
325
330
|
polite_announcements: string;
|
|
326
331
|
assertive_announcements: string;
|
|
327
332
|
go_to_main_content: string;
|
|
@@ -394,6 +399,7 @@ declare const _default: {
|
|
|
394
399
|
dock: string;
|
|
395
400
|
step_num: string;
|
|
396
401
|
steps: string;
|
|
402
|
+
multi_step_form_navigation_instructions: string;
|
|
397
403
|
load_more: string;
|
|
398
404
|
selected_date_a11y: string;
|
|
399
405
|
open_calendar_button_a11y: string;
|
|
@@ -472,6 +478,12 @@ declare const _default: {
|
|
|
472
478
|
advanced_search: string;
|
|
473
479
|
recent_searches: string;
|
|
474
480
|
search_instructions: string;
|
|
481
|
+
search_input_filter_by: string;
|
|
482
|
+
search_input_filter_selection_announcement: string;
|
|
483
|
+
search_input_filter_state_selected: string;
|
|
484
|
+
search_input_filter_state_unselected: string;
|
|
485
|
+
search_input_no_filters_selected: string;
|
|
486
|
+
search_input_filters_cleared: string;
|
|
475
487
|
search_in: string;
|
|
476
488
|
search_in_noun: string;
|
|
477
489
|
action_from_summarylist_heading: string;
|
|
@@ -503,6 +515,7 @@ declare const _default: {
|
|
|
503
515
|
widget_case_operator: string;
|
|
504
516
|
widget_pulse: string;
|
|
505
517
|
widget_gen_ai_coach: string;
|
|
518
|
+
widget_view: string;
|
|
506
519
|
close_preview: string;
|
|
507
520
|
preview_error: string;
|
|
508
521
|
case_preview_tabs: string;
|
|
@@ -1490,6 +1503,7 @@ declare const _default: {
|
|
|
1490
1503
|
condition_builder_unused_conditions_in_logical_string: string;
|
|
1491
1504
|
condition_builder_please_provide_a_logic_expression: string;
|
|
1492
1505
|
dev_mode: string;
|
|
1506
|
+
navigation_panel: string;
|
|
1493
1507
|
expand_navigation: string;
|
|
1494
1508
|
collapse_navigation: string;
|
|
1495
1509
|
switch_to: string;
|
|
@@ -1772,6 +1786,7 @@ declare const _default: {
|
|
|
1772
1786
|
component_missing_error_status: string;
|
|
1773
1787
|
field_type_updated_error_status: string;
|
|
1774
1788
|
field_type_updated_error: string;
|
|
1789
|
+
content_picker_nested_tabs_warning: string;
|
|
1775
1790
|
field_does_not_exist_error: string;
|
|
1776
1791
|
configure_item: string;
|
|
1777
1792
|
data_page_call_error: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/i18n/default.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/i18n/default.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAn1E3C,wBAg5EE"}
|
package/lib/i18n/default.js
CHANGED
|
@@ -183,6 +183,9 @@ export default {
|
|
|
183
183
|
detail: 'Detail',
|
|
184
184
|
detail_of_noun: 'Detail of {0}',
|
|
185
185
|
close_detail: 'Close detail',
|
|
186
|
+
back_to_noun: 'Back to {0}',
|
|
187
|
+
previous_detail_page: 'Previous detail page',
|
|
188
|
+
next_detail_page: 'Next detail page',
|
|
186
189
|
previous_record: 'Previous',
|
|
187
190
|
next_record: 'Next',
|
|
188
191
|
showing_detail_of_noun: 'Showing detail of {0}',
|
|
@@ -342,7 +345,9 @@ export default {
|
|
|
342
345
|
text_area_character_limit: 'Maximum character limit reached.',
|
|
343
346
|
/* core:Link */
|
|
344
347
|
preview_link_instruction: 'Press {0} and p to open this link in a preview.',
|
|
348
|
+
preview_link_action_instruction: 'Press {0} and p to {1}.',
|
|
345
349
|
open_link_instruction: 'Press {0} and o to open this link.',
|
|
350
|
+
open_link_in_tab_instruction: 'Press {0} and enter to open this link in a new tab.',
|
|
346
351
|
/* core:LiveLog */
|
|
347
352
|
polite_announcements: 'Polite Announcements',
|
|
348
353
|
assertive_announcements: 'Assertive Announcements',
|
|
@@ -427,6 +432,7 @@ export default {
|
|
|
427
432
|
/* core:MultiStepForm */
|
|
428
433
|
step_num: 'Step {0} of {1}',
|
|
429
434
|
steps: 'Steps',
|
|
435
|
+
multi_step_form_navigation_instructions: 'Use Alt plus arrow keys to move between steps.',
|
|
430
436
|
/* core:Tree */
|
|
431
437
|
load_more: 'Load more',
|
|
432
438
|
/* core:Datetime */
|
|
@@ -514,6 +520,12 @@ export default {
|
|
|
514
520
|
advanced_search: 'Advanced search',
|
|
515
521
|
recent_searches: 'Recent searches',
|
|
516
522
|
search_instructions: 'Use arrow keys to move up and down the suggested results.',
|
|
523
|
+
search_input_filter_by: 'Filter by {0}',
|
|
524
|
+
search_input_filter_selection_announcement: '{0}, {1}. {2}',
|
|
525
|
+
search_input_filter_state_selected: 'selected',
|
|
526
|
+
search_input_filter_state_unselected: 'not selected',
|
|
527
|
+
search_input_no_filters_selected: 'No filters selected',
|
|
528
|
+
search_input_filters_cleared: 'All filters cleared',
|
|
517
529
|
search_in: 'Search in',
|
|
518
530
|
search_in_noun: 'Search in {0}',
|
|
519
531
|
/* core:SummaryList */
|
|
@@ -548,6 +560,7 @@ export default {
|
|
|
548
560
|
widget_case_operator: 'Case operator',
|
|
549
561
|
widget_pulse: 'Pulse',
|
|
550
562
|
widget_gen_ai_coach: 'Agent',
|
|
563
|
+
widget_view: 'View',
|
|
551
564
|
/* work:CasePreview */
|
|
552
565
|
close_preview: 'Close preview',
|
|
553
566
|
preview_error: 'Unable to load preview',
|
|
@@ -1579,6 +1592,7 @@ export default {
|
|
|
1579
1592
|
condition_builder_please_provide_a_logic_expression: 'Please provide a logic expression.',
|
|
1580
1593
|
/* build:AppShell */
|
|
1581
1594
|
dev_mode: 'Dev mode',
|
|
1595
|
+
navigation_panel: 'Navigation panel',
|
|
1582
1596
|
expand_navigation: 'Expand navigation',
|
|
1583
1597
|
collapse_navigation: 'Collapse navigation',
|
|
1584
1598
|
switch_to: 'Switch to…',
|
|
@@ -1881,7 +1895,7 @@ export default {
|
|
|
1881
1895
|
promoted_filter_reference_invalid: 'The selected filter is no longer available. Select another filter or change the source.',
|
|
1882
1896
|
promoted_filter_source_unsupported: 'Filter is not supported as a parameter source here. Enter a constant value or select a field.',
|
|
1883
1897
|
override_data_source_parameters_info: "Override the default values of this Insight's data source parameters in this view. Parameters without an override use the data source default value.",
|
|
1884
|
-
filter_as_insight_parameter_info: 'When a parameter uses Filter as its source, the selected filter value is passed to the data source parameter and the filter is
|
|
1898
|
+
filter_as_insight_parameter_info: 'When a parameter uses Filter as its source, the selected filter value is passed to the data source parameter, and the filter is no longer applied to this Insight as a promoted filter.',
|
|
1885
1899
|
/* authoring-ui-views: DataSource format */
|
|
1886
1900
|
loading_data_pages: 'Loading Data Pages...',
|
|
1887
1901
|
choose_data_page: 'Choose Data Page',
|
|
@@ -1894,6 +1908,7 @@ export default {
|
|
|
1894
1908
|
component_missing_error_status: "The '{0}' component is missing. Add it to the application or use the default component in the property panel.",
|
|
1895
1909
|
field_type_updated_error_status: 'The type of "{0}" was updated. Delete it or update it in the property panel.',
|
|
1896
1910
|
field_type_updated_error: 'The type of "{0}" was updated.',
|
|
1911
|
+
content_picker_nested_tabs_warning: 'To support a better user experience, use nested tabs thoughtfully and keep navigation structures simple.',
|
|
1897
1912
|
/* authoring-ui-views: useDrillIn */
|
|
1898
1913
|
field_does_not_exist_error: 'Field "{0}" was not found. Check if it still exists and is marked as relevant.',
|
|
1899
1914
|
/* authoring-ui-views: DynamicContentPicker */
|