@pega/cosmos-react-core 3.0.0-dev.2.0 → 3.0.0-dev.4.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/AppShell/AppShell.d.ts.map +1 -1
- package/lib/components/AppShell/AppShell.js +59 -41
- package/lib/components/AppShell/AppShell.js.map +1 -1
- package/lib/components/AppShell/AppShell.styles.d.ts +1 -3
- package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
- package/lib/components/AppShell/AppShell.styles.js +11 -4
- package/lib/components/AppShell/AppShell.styles.js.map +1 -1
- package/lib/components/AppShell/AppShell.types.d.ts +5 -1
- 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/SkipNavigation.d.ts.map +1 -1
- package/lib/components/AppShell/SkipNavigation.js +24 -15
- package/lib/components/AppShell/SkipNavigation.js.map +1 -1
- package/lib/components/ComboBox/ComboBox.styles.d.ts.map +1 -1
- package/lib/components/ComboBox/ComboBox.styles.js +1 -0
- package/lib/components/ComboBox/ComboBox.styles.js.map +1 -1
- package/lib/components/Configuration/Configuration.d.ts.map +1 -1
- package/lib/components/Configuration/Configuration.js +2 -1
- package/lib/components/Configuration/Configuration.js.map +1 -1
- package/lib/components/Currency/CurrencyDisplay.d.ts +20 -11
- package/lib/components/Currency/CurrencyDisplay.d.ts.map +1 -1
- package/lib/components/Currency/CurrencyDisplay.js +16 -6
- package/lib/components/Currency/CurrencyDisplay.js.map +1 -1
- package/lib/components/FieldGroup/FieldGroup.d.ts +2 -0
- package/lib/components/FieldGroup/FieldGroup.d.ts.map +1 -1
- package/lib/components/FieldGroup/FieldGroup.js +18 -7
- package/lib/components/FieldGroup/FieldGroup.js.map +1 -1
- package/lib/components/FieldGroup/FieldGroupList.d.ts.map +1 -1
- package/lib/components/FieldGroup/FieldGroupList.js +16 -13
- package/lib/components/FieldGroup/FieldGroupList.js.map +1 -1
- package/lib/components/File/FileUploadItem.js +1 -1
- package/lib/components/File/FileUploadItem.js.map +1 -1
- package/lib/components/Form/Form.d.ts.map +1 -1
- package/lib/components/Form/Form.js +2 -1
- package/lib/components/Form/Form.js.map +1 -1
- package/lib/components/HTML/HTML.d.ts +13 -0
- package/lib/components/HTML/HTML.d.ts.map +1 -0
- package/lib/components/HTML/HTML.js +148 -0
- package/lib/components/HTML/HTML.js.map +1 -0
- package/lib/components/HTML/index.d.ts +2 -0
- package/lib/components/HTML/index.d.ts.map +1 -0
- package/lib/components/HTML/index.js +2 -0
- package/lib/components/HTML/index.js.map +1 -0
- package/lib/components/Icon/iconNames.d.ts +1 -1
- package/lib/components/Icon/iconNames.d.ts.map +1 -1
- package/lib/components/Icon/iconNames.js +1 -0
- package/lib/components/Icon/iconNames.js.map +1 -1
- package/lib/components/Icon/icons/ai-assist.icon.d.ts +4 -0
- package/lib/components/Icon/icons/ai-assist.icon.d.ts.map +1 -0
- package/lib/components/Icon/icons/ai-assist.icon.js +6 -0
- package/lib/components/Icon/icons/ai-assist.icon.js.map +1 -0
- package/lib/components/Icon/icons/help-solid.icon.js +1 -1
- package/lib/components/Icon/icons/help-solid.icon.js.map +1 -1
- package/lib/components/Icon/icons/help.icon.js +1 -1
- package/lib/components/Icon/icons/help.icon.js.map +1 -1
- package/lib/components/Icon/icons/information-solid.icon.d.ts.map +1 -1
- package/lib/components/Icon/icons/information-solid.icon.js +1 -1
- package/lib/components/Icon/icons/information-solid.icon.js.map +1 -1
- package/lib/components/Icon/icons/information.icon.js +1 -1
- package/lib/components/Icon/icons/information.icon.js.map +1 -1
- package/lib/components/Icon/icons/minus.icon.js +1 -1
- package/lib/components/Icon/icons/minus.icon.js.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.d.ts +6 -0
- package/lib/components/ListToolbar/ListToolbar.d.ts.map +1 -0
- package/lib/components/ListToolbar/ListToolbar.js +110 -0
- package/lib/components/ListToolbar/ListToolbar.js.map +1 -0
- package/lib/components/ListToolbar/ListToolbar.styles.d.ts +4 -0
- package/lib/components/ListToolbar/ListToolbar.styles.d.ts.map +1 -0
- package/lib/components/ListToolbar/ListToolbar.styles.js +29 -0
- package/lib/components/ListToolbar/ListToolbar.styles.js.map +1 -0
- package/lib/components/ListToolbar/ListToolbar.types.d.ts +73 -0
- package/lib/components/ListToolbar/ListToolbar.types.d.ts.map +1 -0
- package/lib/components/ListToolbar/ListToolbar.types.js +2 -0
- package/lib/components/ListToolbar/ListToolbar.types.js.map +1 -0
- package/lib/components/ListToolbar/QueryOptionPopover.d.ts +12 -0
- package/lib/components/ListToolbar/QueryOptionPopover.d.ts.map +1 -0
- package/lib/components/ListToolbar/QueryOptionPopover.js +66 -0
- package/lib/components/ListToolbar/QueryOptionPopover.js.map +1 -0
- package/lib/components/ListToolbar/index.d.ts +3 -0
- package/lib/components/ListToolbar/index.d.ts.map +1 -0
- package/lib/components/ListToolbar/index.js +2 -0
- package/lib/components/ListToolbar/index.js.map +1 -0
- package/lib/components/Menu/MenuItem.d.ts.map +1 -1
- package/lib/components/Menu/MenuItem.js +2 -1
- package/lib/components/Menu/MenuItem.js.map +1 -1
- package/lib/components/Menu/MenuListHeader.d.ts.map +1 -1
- package/lib/components/Menu/MenuListHeader.js +4 -1
- package/lib/components/Menu/MenuListHeader.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.d.ts.map +1 -1
- package/lib/components/MenuButton/MenuButton.js +1 -0
- package/lib/components/MenuButton/MenuButton.js.map +1 -1
- package/lib/components/Number/NumberDisplay.d.ts +9 -9
- package/lib/components/Number/NumberDisplay.d.ts.map +1 -1
- package/lib/components/Number/NumberDisplay.js +6 -5
- package/lib/components/Number/NumberDisplay.js.map +1 -1
- package/lib/components/PageTemplates/DashboardPage.d.ts +7 -2
- package/lib/components/PageTemplates/DashboardPage.d.ts.map +1 -1
- package/lib/components/PageTemplates/PageTemplates.d.ts +7 -2
- package/lib/components/PageTemplates/PageTemplates.d.ts.map +1 -1
- package/lib/components/PageTemplates/PageTemplates.js +69 -19
- package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
- package/lib/components/Popover/Popover.styles.d.ts.map +1 -1
- package/lib/components/Popover/Popover.styles.js +45 -20
- package/lib/components/Popover/Popover.styles.js.map +1 -1
- package/lib/components/Table/Table.d.ts +1 -0
- package/lib/components/Table/Table.d.ts.map +1 -1
- package/lib/components/Table/Table.js +1 -1
- package/lib/components/Table/Table.js.map +1 -1
- package/lib/components/Tabs/TabPanel.d.ts.map +1 -1
- package/lib/components/Tabs/TabPanel.js +1 -0
- package/lib/components/Tabs/TabPanel.js.map +1 -1
- package/lib/hooks/useI18n.d.ts +41 -0
- package/lib/hooks/useI18n.d.ts.map +1 -1
- package/lib/i18n/default.d.ts +41 -0
- package/lib/i18n/default.d.ts.map +1 -1
- package/lib/i18n/default.js +48 -5
- package/lib/i18n/default.js.map +1 -1
- package/lib/i18n/i18n.d.ts +82 -0
- package/lib/i18n/i18n.d.ts.map +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -0
- package/lib/index.js.map +1 -1
- package/lib/styles/gradients.d.ts +102 -0
- package/lib/styles/gradients.d.ts.map +1 -0
- package/lib/styles/gradients.js +232 -0
- package/lib/styles/gradients.js.map +1 -0
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/index.d.ts.map +1 -1
- package/lib/styles/index.js +1 -0
- package/lib/styles/index.js.map +1 -1
- package/package.json +10 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.styles.js","sourceRoot":"","sources":["../../../src/components/Popover/Popover.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAC1C,CAAC,EACC,KAAK,EAAE,EACL,IAAI,EAAE,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R,MAAM;;;;;;;YAOZ,kBAAkB;;;;8CAIgB,YAAY;;;;;;;;;;;;;;mBAcvC,MAAM;mBACN,MAAM;;;;;;;YAOb,kBAAkB;;;;4CAIc,YAAY;;;;;;;;;;;;;;mBAcrC,MAAM;oBACL,MAAM;;;;;KAKrB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,aAAa,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\n\nimport { defaultThemeProp } from '../../theme';\n\nexport const StyledPopoverArrow = styled.div(\n ({\n theme: {\n base: {\n shadow: { 'low-filter': low }\n }\n }\n }) => css`\n background-color: inherit;\n\n ::before,\n ::after {\n content: '';\n display: block;\n position: absolute;\n background-color: inherit;\n }\n\n ::before {\n inset: -0.25rem;\n filter: ${low};\n transform: rotate(45deg);\n }\n `\n);\n\nStyledPopoverArrow.defaultProps = defaultThemeProp;\n\nexport const StyledPopover = styled.div<{ offset?: number }>(\n ({\n theme: {\n base: {\n 'border-radius': borderRadius,\n 'z-index': { popover: zIndex },\n shadow: { 'low-filter': low }\n },\n components: {\n card: { background },\n 'form-control': { 'border-radius': formControlBorderRadius }\n }\n },\n offset\n }) => {\n return css`\n /*\n Margin should never be used with Popper.\n https://popper.js.org/docs/v2/migration-guide/#4-remove-all-css-margins\n */\n margin: 0 !important;\n z-index: ${zIndex};\n background-color: ${background};\n border-radius: calc(${formControlBorderRadius} * ${borderRadius});\n\n ::after {\n content: '';\n background-color: inherit;\n border-radius: inherit;\n z-index: -2; /* Make sure it's under the arrow. */\n filter: ${low};\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n }\n\n &[data-popper-reference-hidden='true'] {\n visibility: hidden;\n pointer-events: none;\n }\n\n &[data-popper-placement^='top'] {\n > ${StyledPopoverArrow} {\n top: calc(100%);\n\n ::before {\n border-bottom-right-radius: calc(${borderRadius} / 4);\n }\n\n ::after {\n top: -0.75rem;\n right: -0.75rem;\n bottom: 0;\n left: -0.75rem;\n }\n }\n\n ::before {\n content: '';\n position: absolute;\n height: ${offset}px;\n bottom: -${offset}px;\n left: 0;\n right: 0;\n }\n }\n\n &[data-popper-placement^='bottom'] {\n > ${StyledPopoverArrow} {\n bottom: calc(100%);\n\n ::before {\n border-top-left-radius: calc(${borderRadius} / 4);\n }\n\n ::after {\n top: 0;\n right: -0.75rem;\n bottom: -0.75rem;\n left: -0.75rem;\n }\n }\n\n ::before {\n content: '';\n position: absolute;\n height: ${offset}px;\n top: -${offset}px;\n left: 0;\n right: 0;\n }\n }\n\n &[data-popper-placement^='right'] {\n > ${StyledPopoverArrow} {\n right: calc(100%);\n\n ::before {\n border-bottom-left-radius: calc(${borderRadius} / 4);\n }\n\n ::after {\n top: -0.75rem;\n right: -0.75rem;\n bottom: -0.75rem;\n left: 0;\n }\n }\n\n ::before {\n content: '';\n position: absolute;\n width: ${offset}px;\n left: -${offset}px;\n top: 0;\n bottom: 0;\n }\n }\n\n &[data-popper-placement^='left'] {\n > ${StyledPopoverArrow} {\n left: calc(100%);\n\n ::before {\n border-top-right-radius: calc(${borderRadius} / 4);\n }\n\n ::after {\n top: -0.75rem;\n right: 0;\n bottom: -0.75rem;\n left: -0.75rem;\n }\n }\n\n ::before {\n content: '';\n position: absolute;\n width: ${offset}px;\n right: -${offset}px;\n top: 0;\n bottom: 0;\n }\n }\n `;\n }\n);\n\nStyledPopover.defaultProps = defaultThemeProp;\n"]}
|
|
@@ -44,6 +44,7 @@ export interface TableProps<RowData extends DefaultRowData = DefaultRowData> ext
|
|
|
44
44
|
/** Ref for the wrapping element. */
|
|
45
45
|
ref?: Ref<HTMLTableElement>;
|
|
46
46
|
}
|
|
47
|
+
export declare const StyledTableWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
47
48
|
declare const Table: <RowData extends DefaultRowData = DefaultRowData>(props: TableProps<RowData> & ForwardProps) => ReactElement | null;
|
|
48
49
|
export default Table;
|
|
49
50
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,GAAG,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAIjG,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAqB,MAAM,aAAa,CAAC;AAQ9F,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,WAAW,CAAC,OAAO,SAAS,cAAc,GAAG,cAAc;IAC1E,gIAAgI;IAChI,QAAQ,EAAE,aAAa,CAAC,OAAO,CAAC,GAAG,MAAM,OAAO,CAAC;IACjD,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,UAAU,CAAC,OAAO,SAAS,cAAc,GAAG,cAAc,CACzE,SAAQ,SAAS,EACf,cAAc;IAChB,wDAAwD;IACxD,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;IAChC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.t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styled.td `
|
|
|
105
105
|
position: relative;
|
|
106
106
|
height: 6rem;
|
|
107
107
|
`;
|
|
108
|
-
const StyledTableWrapper = styled.div `
|
|
108
|
+
export const StyledTableWrapper = styled.div `
|
|
109
109
|
/* Setting it on a table element requires 'display: block' which breaks a11y. */
|
|
110
110
|
overflow-x: auto;
|
|
111
111
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAgE,MAAM,OAAO,CAAC;AACjG,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAY,MAAM,cAAc,CAAC;AAC3D,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAqD5C,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAiD,KAAK,CAAC,EAAE;IACvF,MAAM,EACJ,cAAc,EACd,KAAK,EAAE,EACL,IAAI,EAAE,EACJ,OAAO,EAAE,EAAE,sBAAsB,EAAE,OAAO,EAAE,EAC5C,OAAO,EACR,EACD,UAAU,EAAE,EAAE,KAAK,EAAE,EACtB,EACF,GAAG,KAAK,CAAC;IAEV,MAAM,qBAAqB,GAAG,QAAQ,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,MAAM,OAAO,GAAG,CAAC;IACvF,MAAM,mBAAmB,GAAG,QAAQ,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,MAAM,OAAO,GAAG,CAAC;IACnF,MAAM,iBAAiB,GA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,EACR,4BACG,OAAO,IAAI,CACV,uBACE,KAAC,iBAAiB,IAAC,OAAO,EAAE,OAAO,CAAC,MAAM,YACxC,KAAC,QAAQ,IAAC,SAAS,EAAC,OAAO,EAAC,OAAO,EAAE,cAAc,WAAI,WACrC,WACjB,CACN,EACA,IAAI,CAAC,MAAM,GAAG,CAAC;wCACd,CAAC,OAAO;wCACR,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CACd,uBACG,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,GAAG,EAAE,EAAE,EAAE,CAAC,CAC/C,eAAC,UAAU,IAAC,EAAE,EAAE,cAAc,KAAM,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,EAAE,EAAE,IACnE,OAAO,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,KAAC,QAAQ,OAAK,GAAG,WAAI,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAC5D,CACd,CAAC,IALK,GAAG,CAAC,EAAE,CAMV,CACN,CAAC,EACH,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,CAChC,uBACE,KAAC,eAAe,IAAC,OAAO,EAAE,OAAO,CAAC,MAAM,YACtC,KAAC,UAAU,aAAG,WACE,WACf,CACN,YACK,YACI,WACK,YACT,WACT,CACR,CAAC;AACJ,CAAC,CAEuB,CAAC;AAEzB,eAAe,KAAK,CAAC","sourcesContent":["import { forwardRef, PropsWithoutRef, Ref, ReactNode, ReactElement, ComponentType } from 'react';\nimport styled, { css } from 'styled-components';\nimport { hideVisually } from 'polished';\n\nimport type { BaseProps, ForwardProps, NoChildrenProp, PropsWithDefaults } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport { calculateFontSize, FontSize } from '../../styles';\nimport Progress from '../Progress';\nimport Text from '../Text';\nimport EmptyState from '../EmptyState';\nimport Card, { CardContent } from '../Card';\n\nexport interface DefaultRowData {\n id: string | number;\n}\n\nexport interface ColumnProps<RowData extends DefaultRowData = DefaultRowData> {\n /** Render cell content for a column with a component or by passing a property key on the row object to serve as an accessor. */\n renderer: ComponentType<RowData> | keyof RowData;\n /** The visual label for the column. */\n label: string;\n /**\n * The text alignment of the column header and the row contents for the column.\n * @default \"left\"\n */\n align?: 'left' | 'center' | 'right';\n /**\n * If true, this column will not wrap text on overflow.\n * @default false\n */\n noWrap?: boolean;\n}\n\nexport interface TableProps<RowData extends DefaultRowData = DefaultRowData>\n extends BaseProps,\n NoChildrenProp {\n /** The column headers that will structure the Table. */\n columns: ColumnProps<RowData>[];\n /**\n * The content of the Table, represented as an array of objects with key value pairs.\n * @default []\n */\n data?: RowData[];\n /**\n * Should the data rows highlight when the mouse hovers over them.\n * @default false\n */\n hoverHighlight?: boolean;\n /**\n * Indicates if the data to populate the Table is still loading.\n * @default false\n */\n loading?: boolean;\n /** A message to be displayed when Table data is loading. */\n loadingMessage?: string;\n /** The title that will render above the Table if provided. */\n title?: ReactNode;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLTableElement>;\n}\n\ntype TablePropsWithDefaults = PropsWithDefaults<TableProps, 'hoverHighlight' | 'loading'>;\n\nconst StyledTable = styled.table<Pick<TablePropsWithDefaults, 'hoverHighlight'>>(props => {\n const {\n hoverHighlight,\n theme: {\n base: {\n palette: { 'secondary-background': hoverBg },\n spacing\n },\n components: { table }\n }\n } = props;\n\n const verticalSpacingHeader = `calc(${table.header['vertical-spacing']} * ${spacing})`;\n const verticalSpacingBody = `calc(${table.body['vertical-spacing']} * ${spacing})`;\n const horizontalSpacing = `calc(max(${table.header['horizontal-spacing']}, ${table.body['horizontal-spacing']}) * ${spacing})`;\n\n const borderHeader = `${table.header['border-width']} solid ${table.header['border-color']}`;\n const borderBody = `${table.body['border-width']} solid ${table.body['border-color']}`;\n\n return css`\n border-collapse: collapse;\n width: 100%;\n background-color: transparent;\n\n thead {\n tr th {\n padding: ${`${table.spacing['vertical-inner'] ? verticalSpacingHeader : '0'} ${\n table.spacing['horizontal-inner'] ? horizontalSpacing : '0'\n }`};\n border-bottom: ${table.border['horizontal-inner'] ? borderHeader : 'none'};\n border-inline-end: ${table.border['vertical-inner'] ? borderHeader : 'none'};\n }\n\n tr:first-of-type th {\n padding-top: ${table.spacing['vertical-outer'] ? verticalSpacingHeader : '0'};\n border-top: ${table.border['horizontal-outer'] ? borderHeader : 'none'};\n }\n\n tr th:first-of-type {\n padding-inline-start: ${table.spacing['horizontal-outer'] ? horizontalSpacing : '0'};\n border-inline-start: ${table.border['vertical-outer'] ? borderHeader : 'none'};\n }\n\n tr th:last-of-type {\n padding-inline-end: ${table.spacing['horizontal-outer'] ? horizontalSpacing : '0'};\n border-inline-end: ${table.border['vertical-outer'] ? borderHeader : 'none'};\n }\n }\n\n tbody {\n tr td {\n padding: ${`${table.spacing['vertical-inner'] ? verticalSpacingBody : '0'} ${\n table.spacing['horizontal-inner'] ? horizontalSpacing : '0'\n }`};\n border-bottom: ${table.border['horizontal-inner'] ? borderBody : 'none'};\n border-inline-end: ${table.border['vertical-inner'] ? borderBody : 'none'};\n }\n\n tr:last-of-type td {\n padding-bottom: ${table.spacing['vertical-outer'] ? verticalSpacingBody : '0'};\n border-bottom: ${table.border['horizontal-outer'] ? borderBody : 'none'};\n }\n\n tr td:first-of-type {\n padding-inline-start: ${table.spacing['horizontal-outer'] ? horizontalSpacing : '0'};\n border-inline-start: ${table.border['vertical-outer'] ? borderBody : 'none'};\n }\n\n tr td:last-of-type {\n padding-inline-end: ${table.spacing['horizontal-outer'] ? horizontalSpacing : '0'};\n border-inline-end: ${table.border['vertical-outer'] ? borderBody : 'none'};\n }\n }\n\n ${hoverHighlight &&\n css`\n tbody tr:hover td,\n tbody tr:focus-within td {\n background-color: ${hoverBg};\n }\n `}\n `;\n});\n\nStyledTable.defaultProps = defaultThemeProp;\n\nconst StyledCell = styled.td<Pick<ColumnProps, 'align' | 'noWrap'>>(\n ({ align, noWrap = false }) => css`\n text-align: ${align || 'left'};\n white-space: ${noWrap ? 'nowrap' : null};\n `\n);\n\nStyledCell.defaultProps = defaultThemeProp;\n\nconst StyledHeaderCell = styled.th(\n ({\n theme: {\n base: { 'font-size': fontSize, 'font-scale': fontScale },\n components: {\n table: { header }\n }\n }\n }) => {\n const fontSizes = calculateFontSize(fontSize, fontScale);\n\n return css`\n font-size: ${fontSizes[header['font-size'] as FontSize]};\n font-weight: ${header['font-weight']};\n color: ${header['foreground-color']};\n background-color: ${header['background-color']};\n `;\n }\n);\n\nStyledHeaderCell.defaultProps = defaultThemeProp;\n\nconst StyledBodyCell = styled.td(\n ({\n theme: {\n components: {\n table: { body }\n }\n }\n }) => css`\n color: ${body['foreground-color']};\n background-color: ${body['background-color']};\n `\n);\n\nStyledBodyCell.defaultProps = defaultThemeProp;\n\nconst StyledEmptyCell = styled.td`\n padding: calc(2 * ${props => props.theme.base.spacing});\n`;\n\nStyledEmptyCell.defaultProps = defaultThemeProp;\n\nconst StyledLoadingCell = styled.td`\n position: relative;\n height: 6rem;\n`;\n\nconst StyledTableWrapper = styled.div`\n /* Setting it on a table element requires 'display: block' which breaks a11y. */\n overflow-x: auto;\n`;\n\nStyledTableWrapper.defaultProps = defaultThemeProp;\n\nconst StyledTableCaption = styled.caption`\n ${hideVisually}\n`;\n\nStyledTableCaption.defaultProps = defaultThemeProp;\n\nconst Table = forwardRef((props: PropsWithoutRef<TableProps>, ref: Ref<HTMLTableElement>) => {\n const {\n columns,\n data = [],\n hoverHighlight = false,\n loading = false,\n loadingMessage = '',\n title,\n ...restProps\n } = props;\n\n return (\n <Card>\n <CardContent container={{ rowGap: 1 }}>\n {title && (\n <Text variant='h2' as='span' aria-hidden>\n {title}\n </Text>\n )}\n <StyledTableWrapper>\n <StyledTable ref={ref} hoverHighlight={hoverHighlight} {...restProps}>\n {title && <StyledTableCaption>{title}</StyledTableCaption>}\n <thead>\n <tr>\n {columns.map(col => (\n <StyledCell as={StyledHeaderCell} {...col} scope='col' key={col.label}>\n {col.label}\n </StyledCell>\n ))}\n </tr>\n </thead>\n <tbody>\n {loading && (\n <tr>\n <StyledLoadingCell colSpan={columns.length}>\n <Progress placement='local' message={loadingMessage} />\n </StyledLoadingCell>\n </tr>\n )}\n {data.length > 0 &&\n !loading &&\n data.map(row => (\n <tr key={row.id}>\n {columns.map(({ renderer: Renderer, ...col }) => (\n <StyledCell as={StyledBodyCell} {...col} key={`${col.label}-${row.id}`}>\n {typeof Renderer === 'function' ? <Renderer {...row} /> : row[Renderer]}\n </StyledCell>\n ))}\n </tr>\n ))}\n {data.length === 0 && !loading && (\n <tr>\n <StyledEmptyCell colSpan={columns.length}>\n <EmptyState />\n </StyledEmptyCell>\n </tr>\n )}\n </tbody>\n </StyledTable>\n </StyledTableWrapper>\n </CardContent>\n </Card>\n );\n}) as <RowData extends DefaultRowData = DefaultRowData>(\n props: TableProps<RowData> & ForwardProps\n) => ReactElement | null;\n\nexport default Table;\n"]}
|
|
1
|
+
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAgE,MAAM,OAAO,CAAC;AACjG,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAY,MAAM,cAAc,CAAC;AAC3D,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAqD5C,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAiD,KAAK,CAAC,EAAE;IACvF,MAAM,EACJ,cAAc,EACd,KAAK,EAAE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CACN,YACK,YACI,WACK,YACT,WACT,CACR,CAAC;AACJ,CAAC,CAEuB,CAAC;AAEzB,eAAe,KAAK,CAAC","sourcesContent":["import { forwardRef, PropsWithoutRef, Ref, ReactNode, ReactElement, ComponentType } from 'react';\nimport styled, { css } from 'styled-components';\nimport { hideVisually } from 'polished';\n\nimport type { BaseProps, ForwardProps, NoChildrenProp, PropsWithDefaults } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport { calculateFontSize, FontSize } from '../../styles';\nimport Progress from '../Progress';\nimport Text from '../Text';\nimport EmptyState from '../EmptyState';\nimport Card, { CardContent } from '../Card';\n\nexport interface DefaultRowData {\n id: string | number;\n}\n\nexport interface ColumnProps<RowData extends DefaultRowData = DefaultRowData> {\n /** Render cell content for a column with a component or by passing a property key on the row object to serve as an accessor. */\n renderer: ComponentType<RowData> | keyof RowData;\n /** The visual label for the column. */\n label: string;\n /**\n * The text alignment of the column header and the row contents for the column.\n * @default \"left\"\n */\n align?: 'left' | 'center' | 'right';\n /**\n * If true, this column will not wrap text on overflow.\n * @default false\n */\n noWrap?: boolean;\n}\n\nexport interface TableProps<RowData extends DefaultRowData = DefaultRowData>\n extends BaseProps,\n NoChildrenProp {\n /** The column headers that will structure the Table. */\n columns: ColumnProps<RowData>[];\n /**\n * The content of the Table, represented as an array of objects with key value pairs.\n * @default []\n */\n data?: RowData[];\n /**\n * Should the data rows highlight when the mouse hovers over them.\n * @default false\n */\n hoverHighlight?: boolean;\n /**\n * Indicates if the data to populate the Table is still loading.\n * @default false\n */\n loading?: boolean;\n /** A message to be displayed when Table data is loading. */\n loadingMessage?: string;\n /** The title that will render above the Table if provided. */\n title?: ReactNode;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLTableElement>;\n}\n\ntype TablePropsWithDefaults = PropsWithDefaults<TableProps, 'hoverHighlight' | 'loading'>;\n\nconst StyledTable = styled.table<Pick<TablePropsWithDefaults, 'hoverHighlight'>>(props => {\n const {\n hoverHighlight,\n theme: {\n base: {\n palette: { 'secondary-background': hoverBg },\n spacing\n },\n components: { table }\n }\n } = props;\n\n const verticalSpacingHeader = `calc(${table.header['vertical-spacing']} * ${spacing})`;\n const verticalSpacingBody = `calc(${table.body['vertical-spacing']} * ${spacing})`;\n const horizontalSpacing = `calc(max(${table.header['horizontal-spacing']}, ${table.body['horizontal-spacing']}) * ${spacing})`;\n\n const borderHeader = `${table.header['border-width']} solid ${table.header['border-color']}`;\n const borderBody = `${table.body['border-width']} solid ${table.body['border-color']}`;\n\n return css`\n border-collapse: collapse;\n width: 100%;\n background-color: transparent;\n\n thead {\n tr th {\n padding: ${`${table.spacing['vertical-inner'] ? verticalSpacingHeader : '0'} ${\n table.spacing['horizontal-inner'] ? horizontalSpacing : '0'\n }`};\n border-bottom: ${table.border['horizontal-inner'] ? borderHeader : 'none'};\n border-inline-end: ${table.border['vertical-inner'] ? borderHeader : 'none'};\n }\n\n tr:first-of-type th {\n padding-top: ${table.spacing['vertical-outer'] ? verticalSpacingHeader : '0'};\n border-top: ${table.border['horizontal-outer'] ? borderHeader : 'none'};\n }\n\n tr th:first-of-type {\n padding-inline-start: ${table.spacing['horizontal-outer'] ? horizontalSpacing : '0'};\n border-inline-start: ${table.border['vertical-outer'] ? borderHeader : 'none'};\n }\n\n tr th:last-of-type {\n padding-inline-end: ${table.spacing['horizontal-outer'] ? horizontalSpacing : '0'};\n border-inline-end: ${table.border['vertical-outer'] ? borderHeader : 'none'};\n }\n }\n\n tbody {\n tr td {\n padding: ${`${table.spacing['vertical-inner'] ? verticalSpacingBody : '0'} ${\n table.spacing['horizontal-inner'] ? horizontalSpacing : '0'\n }`};\n border-bottom: ${table.border['horizontal-inner'] ? borderBody : 'none'};\n border-inline-end: ${table.border['vertical-inner'] ? borderBody : 'none'};\n }\n\n tr:last-of-type td {\n padding-bottom: ${table.spacing['vertical-outer'] ? verticalSpacingBody : '0'};\n border-bottom: ${table.border['horizontal-outer'] ? borderBody : 'none'};\n }\n\n tr td:first-of-type {\n padding-inline-start: ${table.spacing['horizontal-outer'] ? horizontalSpacing : '0'};\n border-inline-start: ${table.border['vertical-outer'] ? borderBody : 'none'};\n }\n\n tr td:last-of-type {\n padding-inline-end: ${table.spacing['horizontal-outer'] ? horizontalSpacing : '0'};\n border-inline-end: ${table.border['vertical-outer'] ? borderBody : 'none'};\n }\n }\n\n ${hoverHighlight &&\n css`\n tbody tr:hover td,\n tbody tr:focus-within td {\n background-color: ${hoverBg};\n }\n `}\n `;\n});\n\nStyledTable.defaultProps = defaultThemeProp;\n\nconst StyledCell = styled.td<Pick<ColumnProps, 'align' | 'noWrap'>>(\n ({ align, noWrap = false }) => css`\n text-align: ${align || 'left'};\n white-space: ${noWrap ? 'nowrap' : null};\n `\n);\n\nStyledCell.defaultProps = defaultThemeProp;\n\nconst StyledHeaderCell = styled.th(\n ({\n theme: {\n base: { 'font-size': fontSize, 'font-scale': fontScale },\n components: {\n table: { header }\n }\n }\n }) => {\n const fontSizes = calculateFontSize(fontSize, fontScale);\n\n return css`\n font-size: ${fontSizes[header['font-size'] as FontSize]};\n font-weight: ${header['font-weight']};\n color: ${header['foreground-color']};\n background-color: ${header['background-color']};\n `;\n }\n);\n\nStyledHeaderCell.defaultProps = defaultThemeProp;\n\nconst StyledBodyCell = styled.td(\n ({\n theme: {\n components: {\n table: { body }\n }\n }\n }) => css`\n color: ${body['foreground-color']};\n background-color: ${body['background-color']};\n `\n);\n\nStyledBodyCell.defaultProps = defaultThemeProp;\n\nconst StyledEmptyCell = styled.td`\n padding: calc(2 * ${props => props.theme.base.spacing});\n`;\n\nStyledEmptyCell.defaultProps = defaultThemeProp;\n\nconst StyledLoadingCell = styled.td`\n position: relative;\n height: 6rem;\n`;\n\nexport const StyledTableWrapper = styled.div`\n /* Setting it on a table element requires 'display: block' which breaks a11y. */\n overflow-x: auto;\n`;\n\nStyledTableWrapper.defaultProps = defaultThemeProp;\n\nconst StyledTableCaption = styled.caption`\n ${hideVisually}\n`;\n\nStyledTableCaption.defaultProps = defaultThemeProp;\n\nconst Table = forwardRef((props: PropsWithoutRef<TableProps>, ref: Ref<HTMLTableElement>) => {\n const {\n columns,\n data = [],\n hoverHighlight = false,\n loading = false,\n loadingMessage = '',\n title,\n ...restProps\n } = props;\n\n return (\n <Card>\n <CardContent container={{ rowGap: 1 }}>\n {title && (\n <Text variant='h2' as='span' aria-hidden>\n {title}\n </Text>\n )}\n <StyledTableWrapper>\n <StyledTable ref={ref} hoverHighlight={hoverHighlight} {...restProps}>\n {title && <StyledTableCaption>{title}</StyledTableCaption>}\n <thead>\n <tr>\n {columns.map(col => (\n <StyledCell as={StyledHeaderCell} {...col} scope='col' key={col.label}>\n {col.label}\n </StyledCell>\n ))}\n </tr>\n </thead>\n <tbody>\n {loading && (\n <tr>\n <StyledLoadingCell colSpan={columns.length}>\n <Progress placement='local' message={loadingMessage} />\n </StyledLoadingCell>\n </tr>\n )}\n {data.length > 0 &&\n !loading &&\n data.map(row => (\n <tr key={row.id}>\n {columns.map(({ renderer: Renderer, ...col }) => (\n <StyledCell as={StyledBodyCell} {...col} key={`${col.label}-${row.id}`}>\n {typeof Renderer === 'function' ? <Renderer {...row} /> : row[Renderer]}\n </StyledCell>\n ))}\n </tr>\n ))}\n {data.length === 0 && !loading && (\n <tr>\n <StyledEmptyCell colSpan={columns.length}>\n <EmptyState />\n </StyledEmptyCell>\n </tr>\n )}\n </tbody>\n </StyledTable>\n </StyledTableWrapper>\n </CardContent>\n </Card>\n );\n}) as <RowData extends DefaultRowData = DefaultRowData>(\n props: TableProps<RowData> & ForwardProps\n) => ReactElement | null;\n\nexport default Table;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,SAAS,EAAE,GAAG,EAAmB,MAAM,OAAO,CAAC;AAGvF,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,UAAU,aAAa;IACrB,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd;;;SAGK;IACL,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gCAAgC;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAMD,eAAO,MAAM,cAAc;
|
|
1
|
+
{"version":3,"file":"TabPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,SAAS,EAAE,GAAG,EAAmB,MAAM,OAAO,CAAC;AAGvF,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,UAAU,aAAa;IACrB,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd;;;SAGK;IACL,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gCAAgC;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B;AAMD,eAAO,MAAM,cAAc;aAChB,OAAO;SAgBhB,CAAC;AAEH,QAAA,MAAM,QAAQ,EAAE,iBAAiB,CAAC,aAAa,GAAG,YAAY,CAyB7D,CAAC;AAIF,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabPanel.js","sourceRoot":"","sources":["../../../src/components/Tabs/TabPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAsD,MAAM,OAAO,CAAC;AACvF,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAkBhD,MAAM,YAAY,GAA2B;IAC3C,KAAK,EAAE,EAAE;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"TabPanel.js","sourceRoot":"","sources":["../../../src/components/Tabs/TabPanel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAsD,MAAM,OAAO,CAAC;AACvF,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAkBhD,MAAM,YAAY,GAA2B;IAC3C,KAAK,EAAE,EAAE;CACV,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAErC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACjB,OAAO,GAAG,CAAA;;;;;;;;;MASN,CAAC,OAAO;QACV,GAAG,CAAA;;KAEF;GACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,QAAQ,GAAoD,UAAU,CAC1E,CACE,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAkC,EAC/E,GAAyB,EACzB,EAAE;IACF,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,IAAI,YAAY,IAAI,KAAK,EAAE;YACzB,OAAO,YAAY,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/C;QACD,OAAO,CAAC,CAAC;IACX,CAAC,CAAC;IACF,OAAO,CACL,KAAC,cAAc,OACT,SAAS,EACb,OAAO,EAAE,YAAY,IAAI,KAAK,CAAC,CAAC,CAAC,YAAY,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,EAC9D,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,WAAW,EAAE,qBACN,GAAG,KAAK,EAAE,EAC3B,EAAE,EAAE,GAAG,KAAK,QAAQ,EACpB,GAAG,EAAE,GAAG,YAEP,QAAQ,WACM,CAClB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,QAAQ,CAAC,YAAY,GAAG,YAAY,CAAC;AAErC,eAAe,QAAQ,CAAC","sourcesContent":["import { forwardRef, FunctionComponent, ReactNode, Ref, PropsWithoutRef } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { ForwardProps } from '../../types';\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 /** Content of the tab panel. */\n children: ReactNode;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLDivElement>;\n}\n\nconst defaultProps: Partial<TabPanelProps> = {\n tabId: ''\n};\n\nexport const StyledTabPanel = styled.div<{\n current: boolean;\n}>(({ current }) => {\n return css`\n min-width: 0;\n max-width: 100%;\n height: 100%;\n\n :focus {\n outline: none;\n }\n\n ${!current &&\n css`\n display: none;\n `}\n `;\n});\n\nconst TabPanel: FunctionComponent<TabPanelProps & ForwardProps> = forwardRef(\n (\n { tabId, currentTabId, children, ...restProps }: PropsWithoutRef<TabPanelProps>,\n ref: TabPanelProps['ref']\n ) => {\n const getTabIndex = () => {\n if (currentTabId && tabId) {\n return currentTabId === tabId ? 0 : undefined;\n }\n return 0;\n };\n return (\n <StyledTabPanel\n {...restProps}\n current={currentTabId && tabId ? currentTabId === tabId : true}\n role='tabpanel'\n tabIndex={getTabIndex()}\n aria-labelledby={`${tabId}`}\n id={`${tabId}-panel`}\n ref={ref}\n >\n {children}\n </StyledTabPanel>\n );\n }\n);\n\nTabPanel.defaultProps = defaultProps;\n\nexport default TabPanel;\n"]}
|
package/lib/hooks/useI18n.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
8
8
|
status: string;
|
|
9
9
|
additional_info: string;
|
|
10
10
|
search_placeholder_default: string;
|
|
11
|
+
description: string;
|
|
11
12
|
remove: string;
|
|
12
13
|
follow: string;
|
|
13
14
|
unfollow: string;
|
|
@@ -16,6 +17,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
16
17
|
try_again: string;
|
|
17
18
|
update: string;
|
|
18
19
|
submit: string;
|
|
20
|
+
select: string;
|
|
19
21
|
edit: string;
|
|
20
22
|
preview: string;
|
|
21
23
|
delete: string;
|
|
@@ -28,6 +30,12 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
28
30
|
use: string;
|
|
29
31
|
undo: string;
|
|
30
32
|
redo: string;
|
|
33
|
+
filter: string;
|
|
34
|
+
sort: string;
|
|
35
|
+
group: string;
|
|
36
|
+
filter_by: string;
|
|
37
|
+
sort_by: string;
|
|
38
|
+
group_by: string;
|
|
31
39
|
view_all: string;
|
|
32
40
|
view_less: string;
|
|
33
41
|
show_more: string;
|
|
@@ -36,6 +44,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
36
44
|
link_open_in_tab_text: string;
|
|
37
45
|
edit_details: string;
|
|
38
46
|
add_emoji: string;
|
|
47
|
+
create_new: string;
|
|
39
48
|
close_noun: string;
|
|
40
49
|
view_all_noun: string;
|
|
41
50
|
view_less_noun: string;
|
|
@@ -56,6 +65,14 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
56
65
|
unknown_error: string;
|
|
57
66
|
image_load_error: string;
|
|
58
67
|
selected: string;
|
|
68
|
+
selected_count: {
|
|
69
|
+
zero: string;
|
|
70
|
+
one: string;
|
|
71
|
+
two: string;
|
|
72
|
+
few: string;
|
|
73
|
+
many: string;
|
|
74
|
+
other: string;
|
|
75
|
+
};
|
|
59
76
|
day_label_a11y: string;
|
|
60
77
|
day_placeholder: string;
|
|
61
78
|
quarter_label_a11y: string;
|
|
@@ -120,6 +137,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
120
137
|
x_of_y: string;
|
|
121
138
|
preview_link_arrow_navigation: string;
|
|
122
139
|
go_to_main_content: string;
|
|
140
|
+
main_content: string;
|
|
123
141
|
app_shell_create: string;
|
|
124
142
|
app_shell_open_nav: string;
|
|
125
143
|
combobox_open_close: string;
|
|
@@ -180,6 +198,13 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
180
198
|
};
|
|
181
199
|
edit_tags: string;
|
|
182
200
|
tags: string;
|
|
201
|
+
timeline_toolbar_sort_descending: string;
|
|
202
|
+
timeline_toolbar_sort_ascending: string;
|
|
203
|
+
timeline_toolbar_group_date: string;
|
|
204
|
+
timeline_toolbar_group_monthyear: string;
|
|
205
|
+
timeline_toolbar_group_quarteryear: string;
|
|
206
|
+
timeline_toolbar_group_year: string;
|
|
207
|
+
timeline_toolbar_group_none: string;
|
|
183
208
|
app_announcement_dismiss_button_label_a11y: string;
|
|
184
209
|
app_announcement_details_list_header: string;
|
|
185
210
|
app_announcement_whats_new_button_label: string;
|
|
@@ -198,6 +223,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
198
223
|
rte_anchor: string;
|
|
199
224
|
rte_image: string;
|
|
200
225
|
rte_invalid_html: string;
|
|
226
|
+
rte_insert_field: string;
|
|
201
227
|
rte_invalid_url: string;
|
|
202
228
|
rte_change_text_format: string;
|
|
203
229
|
rte_toggle_unordered_list: string;
|
|
@@ -205,6 +231,12 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
205
231
|
rte_unindent_selection: string;
|
|
206
232
|
rte_toolbar_instructions: string;
|
|
207
233
|
rte_text_formatting_toolbar: string;
|
|
234
|
+
rte_image_description_info: string;
|
|
235
|
+
rte_image_custom_size: string;
|
|
236
|
+
rte_width_in_pixels: string;
|
|
237
|
+
rte_height_in_pixels: string;
|
|
238
|
+
rte_image_settings: string;
|
|
239
|
+
rte_image_key_command: string;
|
|
208
240
|
feed_new_post: string;
|
|
209
241
|
feed_cancel_conversation: string;
|
|
210
242
|
feed_context: string;
|
|
@@ -250,6 +282,14 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
250
282
|
next_suggested_reply: string;
|
|
251
283
|
prev_suggested_reply: string;
|
|
252
284
|
dismiss_suggested_replies: string;
|
|
285
|
+
unique_entities: {
|
|
286
|
+
zero: string;
|
|
287
|
+
one: string;
|
|
288
|
+
two: string;
|
|
289
|
+
few: string;
|
|
290
|
+
many: string;
|
|
291
|
+
other: string;
|
|
292
|
+
};
|
|
253
293
|
more_count: string;
|
|
254
294
|
empty_search: string;
|
|
255
295
|
new_messages: string;
|
|
@@ -603,6 +643,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
603
643
|
search_nodes: string;
|
|
604
644
|
zoom_level: string;
|
|
605
645
|
close_configuration_panel: string;
|
|
646
|
+
clear_object_summary: string;
|
|
606
647
|
}>>;
|
|
607
648
|
export default useI18n;
|
|
608
649
|
//# sourceMappingURL=useI18n.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
package/lib/i18n/default.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ declare const _default: {
|
|
|
4
4
|
status: string;
|
|
5
5
|
additional_info: string;
|
|
6
6
|
search_placeholder_default: string;
|
|
7
|
+
description: string;
|
|
7
8
|
remove: string;
|
|
8
9
|
follow: string;
|
|
9
10
|
unfollow: string;
|
|
@@ -12,6 +13,7 @@ declare const _default: {
|
|
|
12
13
|
try_again: string;
|
|
13
14
|
update: string;
|
|
14
15
|
submit: string;
|
|
16
|
+
select: string;
|
|
15
17
|
edit: string;
|
|
16
18
|
preview: string;
|
|
17
19
|
delete: string;
|
|
@@ -24,6 +26,12 @@ declare const _default: {
|
|
|
24
26
|
use: string;
|
|
25
27
|
undo: string;
|
|
26
28
|
redo: string;
|
|
29
|
+
filter: string;
|
|
30
|
+
sort: string;
|
|
31
|
+
group: string;
|
|
32
|
+
filter_by: string;
|
|
33
|
+
sort_by: string;
|
|
34
|
+
group_by: string;
|
|
27
35
|
view_all: string;
|
|
28
36
|
view_less: string;
|
|
29
37
|
show_more: string;
|
|
@@ -32,6 +40,7 @@ declare const _default: {
|
|
|
32
40
|
link_open_in_tab_text: string;
|
|
33
41
|
edit_details: string;
|
|
34
42
|
add_emoji: string;
|
|
43
|
+
create_new: string;
|
|
35
44
|
close_noun: string;
|
|
36
45
|
view_all_noun: string;
|
|
37
46
|
view_less_noun: string;
|
|
@@ -52,6 +61,14 @@ declare const _default: {
|
|
|
52
61
|
unknown_error: string;
|
|
53
62
|
image_load_error: string;
|
|
54
63
|
selected: string;
|
|
64
|
+
selected_count: {
|
|
65
|
+
zero: string;
|
|
66
|
+
one: string;
|
|
67
|
+
two: string;
|
|
68
|
+
few: string;
|
|
69
|
+
many: string;
|
|
70
|
+
other: string;
|
|
71
|
+
};
|
|
55
72
|
day_label_a11y: string;
|
|
56
73
|
day_placeholder: string;
|
|
57
74
|
quarter_label_a11y: string;
|
|
@@ -116,6 +133,7 @@ declare const _default: {
|
|
|
116
133
|
x_of_y: string;
|
|
117
134
|
preview_link_arrow_navigation: string;
|
|
118
135
|
go_to_main_content: string;
|
|
136
|
+
main_content: string;
|
|
119
137
|
app_shell_create: string;
|
|
120
138
|
app_shell_open_nav: string;
|
|
121
139
|
combobox_open_close: string;
|
|
@@ -176,6 +194,13 @@ declare const _default: {
|
|
|
176
194
|
};
|
|
177
195
|
edit_tags: string;
|
|
178
196
|
tags: string;
|
|
197
|
+
timeline_toolbar_sort_descending: string;
|
|
198
|
+
timeline_toolbar_sort_ascending: string;
|
|
199
|
+
timeline_toolbar_group_date: string;
|
|
200
|
+
timeline_toolbar_group_monthyear: string;
|
|
201
|
+
timeline_toolbar_group_quarteryear: string;
|
|
202
|
+
timeline_toolbar_group_year: string;
|
|
203
|
+
timeline_toolbar_group_none: string;
|
|
179
204
|
app_announcement_dismiss_button_label_a11y: string;
|
|
180
205
|
app_announcement_details_list_header: string;
|
|
181
206
|
app_announcement_whats_new_button_label: string;
|
|
@@ -194,6 +219,7 @@ declare const _default: {
|
|
|
194
219
|
rte_anchor: string;
|
|
195
220
|
rte_image: string;
|
|
196
221
|
rte_invalid_html: string;
|
|
222
|
+
rte_insert_field: string;
|
|
197
223
|
rte_invalid_url: string;
|
|
198
224
|
rte_change_text_format: string;
|
|
199
225
|
rte_toggle_unordered_list: string;
|
|
@@ -201,6 +227,12 @@ declare const _default: {
|
|
|
201
227
|
rte_unindent_selection: string;
|
|
202
228
|
rte_toolbar_instructions: string;
|
|
203
229
|
rte_text_formatting_toolbar: string;
|
|
230
|
+
rte_image_description_info: string;
|
|
231
|
+
rte_image_custom_size: string;
|
|
232
|
+
rte_width_in_pixels: string;
|
|
233
|
+
rte_height_in_pixels: string;
|
|
234
|
+
rte_image_settings: string;
|
|
235
|
+
rte_image_key_command: string;
|
|
204
236
|
feed_new_post: string;
|
|
205
237
|
feed_cancel_conversation: string;
|
|
206
238
|
feed_context: string;
|
|
@@ -246,6 +278,14 @@ declare const _default: {
|
|
|
246
278
|
next_suggested_reply: string;
|
|
247
279
|
prev_suggested_reply: string;
|
|
248
280
|
dismiss_suggested_replies: string;
|
|
281
|
+
unique_entities: {
|
|
282
|
+
zero: string;
|
|
283
|
+
one: string;
|
|
284
|
+
two: string;
|
|
285
|
+
few: string;
|
|
286
|
+
many: string;
|
|
287
|
+
other: string;
|
|
288
|
+
};
|
|
249
289
|
more_count: string;
|
|
250
290
|
empty_search: string;
|
|
251
291
|
new_messages: string;
|
|
@@ -599,6 +639,7 @@ declare const _default: {
|
|
|
599
639
|
search_nodes: string;
|
|
600
640
|
zoom_level: string;
|
|
601
641
|
close_configuration_panel: string;
|
|
642
|
+
clear_object_summary: string;
|
|
602
643
|
};
|
|
603
644
|
export default _default;
|
|
604
645
|
//# sourceMappingURL=default.d.ts.map
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAsuBE"}
|
package/lib/i18n/default.js
CHANGED
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
status: 'Status',
|
|
9
9
|
additional_info: 'Additional info',
|
|
10
10
|
search_placeholder_default: 'Search…',
|
|
11
|
+
description: 'Description',
|
|
11
12
|
/* Verbs */
|
|
12
13
|
remove: 'Remove',
|
|
13
14
|
follow: 'Follow',
|
|
@@ -17,6 +18,7 @@ export default {
|
|
|
17
18
|
try_again: 'Try again',
|
|
18
19
|
update: 'Update',
|
|
19
20
|
submit: 'Submit',
|
|
21
|
+
select: 'Select',
|
|
20
22
|
edit: 'Edit',
|
|
21
23
|
preview: 'Preview',
|
|
22
24
|
delete: 'Delete',
|
|
@@ -29,6 +31,12 @@ export default {
|
|
|
29
31
|
use: 'Use',
|
|
30
32
|
undo: 'Undo',
|
|
31
33
|
redo: 'Redo',
|
|
34
|
+
filter: 'Filter',
|
|
35
|
+
sort: 'Sort',
|
|
36
|
+
group: 'Group',
|
|
37
|
+
filter_by: 'Filter by',
|
|
38
|
+
sort_by: 'Sort by',
|
|
39
|
+
group_by: 'Group by',
|
|
32
40
|
/* Static verb noun */
|
|
33
41
|
view_all: 'View all',
|
|
34
42
|
view_less: 'View less',
|
|
@@ -38,6 +46,7 @@ export default {
|
|
|
38
46
|
link_open_in_tab_text: 'Open in tab',
|
|
39
47
|
edit_details: 'Edit details',
|
|
40
48
|
add_emoji: 'Add emoji',
|
|
49
|
+
create_new: 'Create new',
|
|
41
50
|
/* Dynamic verb {noun} */
|
|
42
51
|
close_noun: 'Close: {0}',
|
|
43
52
|
view_all_noun: 'View all: {0}',
|
|
@@ -60,6 +69,14 @@ export default {
|
|
|
60
69
|
unknown_error: 'Unknown error',
|
|
61
70
|
image_load_error: 'Error loading image',
|
|
62
71
|
selected: 'Selected',
|
|
72
|
+
selected_count: {
|
|
73
|
+
zero: '{0} selected',
|
|
74
|
+
one: '{0} selected',
|
|
75
|
+
two: '{0} selected',
|
|
76
|
+
few: '{0} selected',
|
|
77
|
+
many: '{0} selected',
|
|
78
|
+
other: '{0} selected'
|
|
79
|
+
},
|
|
63
80
|
/* Date and time */
|
|
64
81
|
day_label_a11y: 'Day',
|
|
65
82
|
day_placeholder: 'DD',
|
|
@@ -133,6 +150,7 @@ export default {
|
|
|
133
150
|
preview_link_arrow_navigation: 'Arrow left or right for link options',
|
|
134
151
|
/* core:SkipLinks */
|
|
135
152
|
go_to_main_content: 'Go to main content',
|
|
153
|
+
main_content: 'Main content',
|
|
136
154
|
/* core:AppShell */
|
|
137
155
|
app_shell_create: 'Create',
|
|
138
156
|
app_shell_open_nav: 'Open navigation menu',
|
|
@@ -208,6 +226,14 @@ export default {
|
|
|
208
226
|
/* work:Tags */
|
|
209
227
|
edit_tags: 'Edit tags',
|
|
210
228
|
tags: 'Tags',
|
|
229
|
+
/* work:Timeline */
|
|
230
|
+
timeline_toolbar_sort_descending: 'Newest first',
|
|
231
|
+
timeline_toolbar_sort_ascending: 'Oldest first',
|
|
232
|
+
timeline_toolbar_group_date: 'By day',
|
|
233
|
+
timeline_toolbar_group_monthyear: 'By month',
|
|
234
|
+
timeline_toolbar_group_quarteryear: 'By quarter',
|
|
235
|
+
timeline_toolbar_group_year: 'By year',
|
|
236
|
+
timeline_toolbar_group_none: 'Off',
|
|
211
237
|
/* work:AppAnnouncement */
|
|
212
238
|
app_announcement_dismiss_button_label_a11y: 'Hide until next update',
|
|
213
239
|
app_announcement_details_list_header: 'Announcements',
|
|
@@ -228,6 +254,7 @@ export default {
|
|
|
228
254
|
rte_anchor: 'Anchor',
|
|
229
255
|
rte_image: 'Image',
|
|
230
256
|
rte_invalid_html: 'Invalid HTML',
|
|
257
|
+
rte_insert_field: 'Insert field',
|
|
231
258
|
rte_invalid_url: 'Invalid URL',
|
|
232
259
|
rte_change_text_format: 'Change text format to',
|
|
233
260
|
rte_toggle_unordered_list: 'Toggle unordered list',
|
|
@@ -235,6 +262,12 @@ export default {
|
|
|
235
262
|
rte_unindent_selection: 'Unindent selection',
|
|
236
263
|
rte_toolbar_instructions: 'Hit tab to enter the editor toolbar',
|
|
237
264
|
rte_text_formatting_toolbar: 'Text formatting toolbar',
|
|
265
|
+
rte_image_description_info: 'Provides an alternate (ALT) description for the visually impaired',
|
|
266
|
+
rte_image_custom_size: 'Custom size',
|
|
267
|
+
rte_width_in_pixels: 'Width (in pixels)',
|
|
268
|
+
rte_height_in_pixels: 'Height (in pixels)',
|
|
269
|
+
rte_image_settings: 'Image settings',
|
|
270
|
+
rte_image_key_command: 'Press enter to edit the image',
|
|
238
271
|
/* social:Feed */
|
|
239
272
|
feed_new_post: 'New post',
|
|
240
273
|
feed_cancel_conversation: 'Cancel conversation',
|
|
@@ -283,6 +316,14 @@ export default {
|
|
|
283
316
|
prev_suggested_reply: 'Previous suggested reply',
|
|
284
317
|
dismiss_suggested_replies: 'Dismiss suggested replies',
|
|
285
318
|
/* cs:Email */
|
|
319
|
+
unique_entities: {
|
|
320
|
+
zero: 'No unique entities',
|
|
321
|
+
one: '{0} unique entity',
|
|
322
|
+
two: '{0} unique entities',
|
|
323
|
+
few: '{0} unique entities',
|
|
324
|
+
many: '{0} unique entities',
|
|
325
|
+
other: '{0} unique entities'
|
|
326
|
+
},
|
|
286
327
|
more_count: '{0} more…',
|
|
287
328
|
empty_search: 'Enter a search term',
|
|
288
329
|
new_messages: 'New messages',
|
|
@@ -381,10 +422,10 @@ export default {
|
|
|
381
422
|
task_manager_picker_add_label: {
|
|
382
423
|
zero: 'No items to add',
|
|
383
424
|
one: 'Add {0} new item',
|
|
384
|
-
two: 'Add {0} new
|
|
385
|
-
few: 'Add {0} new
|
|
386
|
-
many: 'Add {0} new
|
|
387
|
-
other: 'Add {0} new
|
|
425
|
+
two: 'Add {0} new items',
|
|
426
|
+
few: 'Add {0} new items',
|
|
427
|
+
many: 'Add {0} new items',
|
|
428
|
+
other: 'Add {0} new items'
|
|
388
429
|
},
|
|
389
430
|
/* cs:Sentiment */
|
|
390
431
|
sentiment_positive: 'Positive',
|
|
@@ -647,6 +688,8 @@ export default {
|
|
|
647
688
|
search_nodes: 'Search nodes',
|
|
648
689
|
/* build:Workbench */
|
|
649
690
|
zoom_level: 'Zoom level',
|
|
650
|
-
close_configuration_panel: 'Close configuration panel'
|
|
691
|
+
close_configuration_panel: 'Close configuration panel',
|
|
692
|
+
/* build:ObjectSelect */
|
|
693
|
+
clear_object_summary: 'Clear {0} selection'
|
|
651
694
|
};
|
|
652
695
|
//# sourceMappingURL=default.js.map
|