@transferwise/components 46.83.1 → 46.83.3
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/build/avatarView/AvatarView.js.map +1 -1
- package/build/avatarView/AvatarView.mjs.map +1 -1
- package/build/common/Option/Option.js +8 -2
- package/build/common/Option/Option.js.map +1 -1
- package/build/common/Option/Option.mjs +8 -2
- package/build/common/Option/Option.mjs.map +1 -1
- package/build/i18n/es.json +1 -1
- package/build/i18n/es.json.js +1 -1
- package/build/i18n/es.json.mjs +1 -1
- package/build/i18n/fr.json +6 -1
- package/build/i18n/fr.json.js +6 -1
- package/build/i18n/fr.json.js.map +1 -1
- package/build/i18n/fr.json.mjs +6 -1
- package/build/i18n/fr.json.mjs.map +1 -1
- package/build/i18n/hu.json +5 -0
- package/build/i18n/hu.json.js +5 -0
- package/build/i18n/hu.json.js.map +1 -1
- package/build/i18n/hu.json.mjs +5 -0
- package/build/i18n/hu.json.mjs.map +1 -1
- package/build/i18n/id.json +5 -0
- package/build/i18n/id.json.js +5 -0
- package/build/i18n/id.json.js.map +1 -1
- package/build/i18n/id.json.mjs +5 -0
- package/build/i18n/id.json.mjs.map +1 -1
- package/build/i18n/it.json +5 -0
- package/build/i18n/it.json.js +5 -0
- package/build/i18n/it.json.js.map +1 -1
- package/build/i18n/it.json.mjs +5 -0
- package/build/i18n/it.json.mjs.map +1 -1
- package/build/i18n/ja.json +5 -0
- package/build/i18n/ja.json.js +5 -0
- package/build/i18n/ja.json.js.map +1 -1
- package/build/i18n/ja.json.mjs +5 -0
- package/build/i18n/ja.json.mjs.map +1 -1
- package/build/i18n/pl.json +1 -1
- package/build/i18n/pl.json.js +1 -1
- package/build/i18n/pl.json.mjs +1 -1
- package/build/i18n/pt.json +5 -0
- package/build/i18n/pt.json.js +5 -0
- package/build/i18n/pt.json.js.map +1 -1
- package/build/i18n/pt.json.mjs +5 -0
- package/build/i18n/pt.json.mjs.map +1 -1
- package/build/i18n/ru.json +5 -0
- package/build/i18n/ru.json.js +5 -0
- package/build/i18n/ru.json.js.map +1 -1
- package/build/i18n/ru.json.mjs +5 -0
- package/build/i18n/ru.json.mjs.map +1 -1
- package/build/i18n/tr.json +5 -0
- package/build/i18n/tr.json.js +5 -0
- package/build/i18n/tr.json.js.map +1 -1
- package/build/i18n/tr.json.mjs +5 -0
- package/build/i18n/tr.json.mjs.map +1 -1
- package/build/index.js +1 -1
- package/build/index.mjs +1 -1
- package/build/types/avatarView/AvatarView.d.ts +1 -1
- package/build/types/avatarView/AvatarView.d.ts.map +1 -1
- package/build/types/common/Option/Option.d.ts.map +1 -1
- package/build/types/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/accordion/AccordionItem/__snapshots__/AccordionItem.spec.js.snap +8 -4
- package/src/avatarView/AvatarView.tsx +1 -1
- package/src/card/Card.spec.tsx +3 -1
- package/src/common/Option/Option.tsx +11 -1
- package/src/i18n/es.json +1 -1
- package/src/i18n/fr.json +6 -1
- package/src/i18n/hu.json +5 -0
- package/src/i18n/id.json +5 -0
- package/src/i18n/it.json +5 -0
- package/src/i18n/ja.json +5 -0
- package/src/i18n/pl.json +1 -1
- package/src/i18n/pt.json +5 -0
- package/src/i18n/ru.json +5 -0
- package/src/i18n/tr.json +5 -0
- package/src/index.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarView.js","sources":["../../src/avatarView/AvatarView.tsx"],"sourcesContent":["import Badge, { BadgeAssets, BadgeProps, BadgeAssetsProps } from '../badge';\nimport NotificationDot from './NotificationDot';\nimport Circle from '../common/circle';\nimport Image from '../image';\nimport { HTMLAttributes, PropsWithChildren, useState } from 'react';\nimport { clsx } from 'clsx';\nimport { getInitials, ProfileType, ProfileTypeBusiness, ProfileTypePersonal } from '../common';\nimport {\n Briefcase as BusinessProfileIcon,\n Profile as PersonalProfileIcon,\n} from '@transferwise/icons';\n\nexport type AvatarViewBadgeProps = BadgeAssetsProps &\n Pick<BadgeProps, 'aria-label'> & {\n /**\n * Custom badge content\n */\n asset?: React.ReactNode;\n };\n\nexport type Props = {\n imgSrc?: string | null;\n /**\n * Entity name (person (profile or recipient) or business name), it will be boilded down to 1 or 2 chars (initials)\n */\n profileName?: string | null;\n profileType?: ProfileTypeBusiness | ProfileTypePersonal;\n size?: 16 | 24 | 32 | 40 | 48 | 56 | 72;\n notification?: boolean;\n badge?: AvatarViewBadgeProps;\n interactive?: boolean;\n selected?: boolean;\n style?: Pick<React.CSSProperties, 'border' | 'backgroundColor' | 'color'>;\n} & Pick<\n HTMLAttributes<HTMLDivElement>,\n 'className' | 'children' | 'role' | 'aria-label' | 'aria-labelledby' | 'aria-hidden'\n>;\n\nfunction AvatarView({\n children = undefined,\n size = 48,\n selected,\n notification,\n badge,\n interactive = false,\n className,\n style,\n imgSrc,\n profileType,\n profileName,\n ...restProps\n}: Props) {\n return (\n <Circle\n size={size}\n fixedSize\n className={clsx(\n 'np-avatar-view',\n interactive ? 'np-avatar-view-interactive' : 'np-avatar-view-non-interactive',\n { 'np-avatar-view-selected': selected },\n className,\n )}\n {...restProps}\n >\n <Badges avatar={{ size, notification, selected }} {...badge}>\n <Circle\n size={size}\n fixedSize\n className={clsx('np-avatar-view-content')}\n enableBorder={!interactive || selected}\n style={{\n ...(selected && { '--circle-border-color': 'var(--color-interactive-primary)' }),\n ...style,\n }}\n >\n <AvatarViewContent {...{ imgSrc, profileType, profileName }}>\n {children}\n </AvatarViewContent>\n </Circle>\n </Badges>\n </Circle>\n );\n}\n\n/** Size of badge depends on size of avatar */\nconst MAP_BADGE_ASSET_SIZE = {\n 16: 16,\n 24: 16,\n 32: 16,\n 40: 16,\n 48: 16,\n 56: 24,\n 72: 24,\n} satisfies Record<number, BadgeAssetsProps['size']>;\n\n/** Certain sizes of AvatarView has a custom offset for badge */\nconst MAP_BADGE_POSITION = {\n 24: -6,\n 32: -4,\n};\n\ntype BadgesProps = AvatarViewBadgeProps &\n PropsWithChildren<{\n avatar: Pick<Props, 'selected' | 'size' | 'notification'>;\n }>;\n\n/**\n * Adds build-in badges to AvatarView\n */\nfunction Badges({\n children,\n avatar,\n 'aria-label': ariaLabel,\n asset: customBadge,\n ...badgeAssets\n}: BadgesProps) {\n const { size = 48, selected, notification } = avatar;\n const anyBadge = Object.values({ customBadge, ...badgeAssets }).filter(Boolean).length > 0;\n if ((anyBadge || selected) && size > 16) {\n const badgeSize: BadgeAssetsProps['size'] = MAP_BADGE_ASSET_SIZE[size];\n return (\n <Badge\n aria-label={ariaLabel}\n size={badgeSize}\n badge={\n customBadge ? (\n <Circle fixedSize size={badgeSize}>\n {customBadge}\n </Circle>\n ) : (\n <BadgeAssets {...(selected ? { status: 'positive' } : badgeAssets)} size={badgeSize} />\n )\n }\n style={{\n // @ts-expect-error CSS custom props allowed\n '--badge-content-position': `${MAP_BADGE_POSITION[size] ?? 0}px`,\n }}\n >\n {children}\n </Badge>\n );\n }\n if (notification) {\n return <NotificationDot avatarSize={size}>{children}</NotificationDot>;\n }\n return children;\n}\n\nfunction AvatarViewContent({\n children,\n imgSrc,\n profileName: name,\n profileType: type,\n}: PropsWithChildren<Pick<Props, 'imgSrc' | 'profileName' | 'profileType'>>) {\n const [tryLoadImage, setTryLoadImage] = useState(true);\n if (children === undefined) {\n if (imgSrc && tryLoadImage) {\n return <Image src={imgSrc} alt=\"\" onError={() => setTryLoadImage(false)} />;\n }\n if (type) {\n return type === ProfileType.BUSINESS ? <BusinessProfileIcon /> : <PersonalProfileIcon />;\n }\n if (name) {\n return getInitials(name);\n }\n return <PersonalProfileIcon />;\n }\n return children;\n}\n\nexport default AvatarView;\n"],"names":["AvatarView","children","undefined","size","selected","notification","badge","interactive","className","style","imgSrc","profileType","profileName","restProps","_jsx","Circle","fixedSize","clsx","Badges","avatar","enableBorder","AvatarViewContent","MAP_BADGE_ASSET_SIZE","MAP_BADGE_POSITION","ariaLabel","asset","customBadge","badgeAssets","anyBadge","Object","values","filter","Boolean","length","badgeSize","Badge","BadgeAssets","status","NotificationDot","avatarSize","name","type","tryLoadImage","setTryLoadImage","useState","Image","src","alt","onError","ProfileType","BUSINESS","BusinessProfileIcon","PersonalProfileIcon","getInitials"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,SAASA,UAAUA,CAAC;AAClBC,EAAAA,QAAQ,GAAGC,SAAS;AACpBC,EAAAA,IAAI,GAAG,EAAE;EACTC,QAAQ;EACRC,YAAY;EACZC,KAAK;AACLC,EAAAA,WAAW,GAAG,KAAK;EACnBC,SAAS;EACTC,KAAK;EACLC,MAAM;EACNC,WAAW;EACXC,WAAW;EACX,GAAGC,SAAAA;AACG,CAAA,EAAA;EACN,oBACEC,cAAA,CAACC,MAAM,EAAA;AACLZ,IAAAA,IAAI,EAAEA,IAAK;IACXa,SAAS,EAAA,IAAA;IACTR,SAAS,EAAES,SAAI,CACb,gBAAgB,EAChBV,WAAW,GAAG,4BAA4B,GAAG,gCAAgC,EAC7E;AAAE,MAAA,yBAAyB,EAAEH,QAAAA;KAAU,EACvCI,SAAS,CACT;AAAA,IAAA,GACEK,SAAS;IAAAZ,QAAA,eAEba,cAAA,CAACI,MAAM,EAAA;AAACC,MAAAA,MAAM,EAAE;QAAEhB,IAAI;QAAEE,YAAY;AAAED,QAAAA,QAAAA;OAAW;AAAA,MAAA,GAAKE,KAAK;MAAAL,QAAA,eACzDa,cAAA,CAACC,MAAM,EAAA;AACLZ,QAAAA,IAAI,EAAEA,IAAK;QACXa,SAAS,EAAA,IAAA;AACTR,QAAAA,SAAS,EAAES,SAAI,CAAC,wBAAwB,CAAE;AAC1CG,QAAAA,YAAY,EAAE,CAACb,WAAW,IAAIH,QAAS;AACvCK,QAAAA,KAAK,EAAE;AACL,UAAA,IAAIL,QAAQ,IAAI;AAAE,YAAA,uBAAuB,EAAE,kCAAA;WAAoC,CAAC;UAChF,GAAGK,KAAAA;SACH;QAAAR,QAAA,eAEFa,cAAA,CAACO,iBAAiB,EAAA;UAAOX,MAAM;UAAEC,WAAW;UAAEC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AAC7E,KAAA;AACA,IAAA,IAAIF,IAAI,EAAE;AACR,MAAA,OAAOA,IAAI,KAAKQ,uBAAW,CAACC,QAAQ,gBAAGpC,cAAA,CAACqC,eAAmB,EAAA,EAAA,CAAG,gBAAGrC,cAAA,CAACsC,aAAmB,IAAA,CAAG,CAAA;AAC1F,KAAA;AACA,IAAA,IAAIZ,IAAI,EAAE;MACR,OAAOa,oBAAW,CAACb,IAAI,CAAC,CAAA;AAC1B,KAAA;AACA,IAAA,oBAAO1B,cAAA,CAACsC,aAAmB,EAAA,GAAG,CAAA;AAChC,GAAA;AACA,EAAA,OAAOnD,QAAQ,CAAA;AACjB;;;;"}
|
|
1
|
+
{"version":3,"file":"AvatarView.js","sources":["../../src/avatarView/AvatarView.tsx"],"sourcesContent":["import Badge, { BadgeAssets, BadgeProps, BadgeAssetsProps } from '../badge';\nimport NotificationDot from './NotificationDot';\nimport Circle from '../common/circle';\nimport Image from '../image';\nimport { HTMLAttributes, PropsWithChildren, useState } from 'react';\nimport { clsx } from 'clsx';\nimport { getInitials, ProfileType, ProfileTypeBusiness, ProfileTypePersonal } from '../common';\nimport {\n Briefcase as BusinessProfileIcon,\n Profile as PersonalProfileIcon,\n} from '@transferwise/icons';\n\nexport type AvatarViewBadgeProps = Omit<BadgeAssetsProps, 'size'> &\n Pick<BadgeProps, 'aria-label'> & {\n /**\n * Custom badge content\n */\n asset?: React.ReactNode;\n };\n\nexport type Props = {\n imgSrc?: string | null;\n /**\n * Entity name (person (profile or recipient) or business name), it will be boilded down to 1 or 2 chars (initials)\n */\n profileName?: string | null;\n profileType?: ProfileTypeBusiness | ProfileTypePersonal;\n size?: 16 | 24 | 32 | 40 | 48 | 56 | 72;\n notification?: boolean;\n badge?: AvatarViewBadgeProps;\n interactive?: boolean;\n selected?: boolean;\n style?: Pick<React.CSSProperties, 'border' | 'backgroundColor' | 'color'>;\n} & Pick<\n HTMLAttributes<HTMLDivElement>,\n 'className' | 'children' | 'role' | 'aria-label' | 'aria-labelledby' | 'aria-hidden'\n>;\n\nfunction AvatarView({\n children = undefined,\n size = 48,\n selected,\n notification,\n badge,\n interactive = false,\n className,\n style,\n imgSrc,\n profileType,\n profileName,\n ...restProps\n}: Props) {\n return (\n <Circle\n size={size}\n fixedSize\n className={clsx(\n 'np-avatar-view',\n interactive ? 'np-avatar-view-interactive' : 'np-avatar-view-non-interactive',\n { 'np-avatar-view-selected': selected },\n className,\n )}\n {...restProps}\n >\n <Badges avatar={{ size, notification, selected }} {...badge}>\n <Circle\n size={size}\n fixedSize\n className={clsx('np-avatar-view-content')}\n enableBorder={!interactive || selected}\n style={{\n ...(selected && { '--circle-border-color': 'var(--color-interactive-primary)' }),\n ...style,\n }}\n >\n <AvatarViewContent {...{ imgSrc, profileType, profileName }}>\n {children}\n </AvatarViewContent>\n </Circle>\n </Badges>\n </Circle>\n );\n}\n\n/** Size of badge depends on size of avatar */\nconst MAP_BADGE_ASSET_SIZE = {\n 16: 16,\n 24: 16,\n 32: 16,\n 40: 16,\n 48: 16,\n 56: 24,\n 72: 24,\n} satisfies Record<number, BadgeAssetsProps['size']>;\n\n/** Certain sizes of AvatarView has a custom offset for badge */\nconst MAP_BADGE_POSITION = {\n 24: -6,\n 32: -4,\n};\n\ntype BadgesProps = AvatarViewBadgeProps &\n PropsWithChildren<{\n avatar: Pick<Props, 'selected' | 'size' | 'notification'>;\n }>;\n\n/**\n * Adds build-in badges to AvatarView\n */\nfunction Badges({\n children,\n avatar,\n 'aria-label': ariaLabel,\n asset: customBadge,\n ...badgeAssets\n}: BadgesProps) {\n const { size = 48, selected, notification } = avatar;\n const anyBadge = Object.values({ customBadge, ...badgeAssets }).filter(Boolean).length > 0;\n if ((anyBadge || selected) && size > 16) {\n const badgeSize: BadgeAssetsProps['size'] = MAP_BADGE_ASSET_SIZE[size];\n return (\n <Badge\n aria-label={ariaLabel}\n size={badgeSize}\n badge={\n customBadge ? (\n <Circle fixedSize size={badgeSize}>\n {customBadge}\n </Circle>\n ) : (\n <BadgeAssets {...(selected ? { status: 'positive' } : badgeAssets)} size={badgeSize} />\n )\n }\n style={{\n // @ts-expect-error CSS custom props allowed\n '--badge-content-position': `${MAP_BADGE_POSITION[size] ?? 0}px`,\n }}\n >\n {children}\n </Badge>\n );\n }\n if (notification) {\n return <NotificationDot avatarSize={size}>{children}</NotificationDot>;\n }\n return children;\n}\n\nfunction AvatarViewContent({\n children,\n imgSrc,\n profileName: name,\n profileType: type,\n}: PropsWithChildren<Pick<Props, 'imgSrc' | 'profileName' | 'profileType'>>) {\n const [tryLoadImage, setTryLoadImage] = useState(true);\n if (children === undefined) {\n if (imgSrc && tryLoadImage) {\n return <Image src={imgSrc} alt=\"\" onError={() => setTryLoadImage(false)} />;\n }\n if (type) {\n return type === ProfileType.BUSINESS ? <BusinessProfileIcon /> : <PersonalProfileIcon />;\n }\n if (name) {\n return getInitials(name);\n }\n return <PersonalProfileIcon />;\n }\n return children;\n}\n\nexport default AvatarView;\n"],"names":["AvatarView","children","undefined","size","selected","notification","badge","interactive","className","style","imgSrc","profileType","profileName","restProps","_jsx","Circle","fixedSize","clsx","Badges","avatar","enableBorder","AvatarViewContent","MAP_BADGE_ASSET_SIZE","MAP_BADGE_POSITION","ariaLabel","asset","customBadge","badgeAssets","anyBadge","Object","values","filter","Boolean","length","badgeSize","Badge","BadgeAssets","status","NotificationDot","avatarSize","name","type","tryLoadImage","setTryLoadImage","useState","Image","src","alt","onError","ProfileType","BUSINESS","BusinessProfileIcon","PersonalProfileIcon","getInitials"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,SAASA,UAAUA,CAAC;AAClBC,EAAAA,QAAQ,GAAGC,SAAS;AACpBC,EAAAA,IAAI,GAAG,EAAE;EACTC,QAAQ;EACRC,YAAY;EACZC,KAAK;AACLC,EAAAA,WAAW,GAAG,KAAK;EACnBC,SAAS;EACTC,KAAK;EACLC,MAAM;EACNC,WAAW;EACXC,WAAW;EACX,GAAGC,SAAAA;AACG,CAAA,EAA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B;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarView.mjs","sources":["../../src/avatarView/AvatarView.tsx"],"sourcesContent":["import Badge, { BadgeAssets, BadgeProps, BadgeAssetsProps } from '../badge';\nimport NotificationDot from './NotificationDot';\nimport Circle from '../common/circle';\nimport Image from '../image';\nimport { HTMLAttributes, PropsWithChildren, useState } from 'react';\nimport { clsx } from 'clsx';\nimport { getInitials, ProfileType, ProfileTypeBusiness, ProfileTypePersonal } from '../common';\nimport {\n Briefcase as BusinessProfileIcon,\n Profile as PersonalProfileIcon,\n} from '@transferwise/icons';\n\nexport type AvatarViewBadgeProps = BadgeAssetsProps &\n Pick<BadgeProps, 'aria-label'> & {\n /**\n * Custom badge content\n */\n asset?: React.ReactNode;\n };\n\nexport type Props = {\n imgSrc?: string | null;\n /**\n * Entity name (person (profile or recipient) or business name), it will be boilded down to 1 or 2 chars (initials)\n */\n profileName?: string | null;\n profileType?: ProfileTypeBusiness | ProfileTypePersonal;\n size?: 16 | 24 | 32 | 40 | 48 | 56 | 72;\n notification?: boolean;\n badge?: AvatarViewBadgeProps;\n interactive?: boolean;\n selected?: boolean;\n style?: Pick<React.CSSProperties, 'border' | 'backgroundColor' | 'color'>;\n} & Pick<\n HTMLAttributes<HTMLDivElement>,\n 'className' | 'children' | 'role' | 'aria-label' | 'aria-labelledby' | 'aria-hidden'\n>;\n\nfunction AvatarView({\n children = undefined,\n size = 48,\n selected,\n notification,\n badge,\n interactive = false,\n className,\n style,\n imgSrc,\n profileType,\n profileName,\n ...restProps\n}: Props) {\n return (\n <Circle\n size={size}\n fixedSize\n className={clsx(\n 'np-avatar-view',\n interactive ? 'np-avatar-view-interactive' : 'np-avatar-view-non-interactive',\n { 'np-avatar-view-selected': selected },\n className,\n )}\n {...restProps}\n >\n <Badges avatar={{ size, notification, selected }} {...badge}>\n <Circle\n size={size}\n fixedSize\n className={clsx('np-avatar-view-content')}\n enableBorder={!interactive || selected}\n style={{\n ...(selected && { '--circle-border-color': 'var(--color-interactive-primary)' }),\n ...style,\n }}\n >\n <AvatarViewContent {...{ imgSrc, profileType, profileName }}>\n {children}\n </AvatarViewContent>\n </Circle>\n </Badges>\n </Circle>\n );\n}\n\n/** Size of badge depends on size of avatar */\nconst MAP_BADGE_ASSET_SIZE = {\n 16: 16,\n 24: 16,\n 32: 16,\n 40: 16,\n 48: 16,\n 56: 24,\n 72: 24,\n} satisfies Record<number, BadgeAssetsProps['size']>;\n\n/** Certain sizes of AvatarView has a custom offset for badge */\nconst MAP_BADGE_POSITION = {\n 24: -6,\n 32: -4,\n};\n\ntype BadgesProps = AvatarViewBadgeProps &\n PropsWithChildren<{\n avatar: Pick<Props, 'selected' | 'size' | 'notification'>;\n }>;\n\n/**\n * Adds build-in badges to AvatarView\n */\nfunction Badges({\n children,\n avatar,\n 'aria-label': ariaLabel,\n asset: customBadge,\n ...badgeAssets\n}: BadgesProps) {\n const { size = 48, selected, notification } = avatar;\n const anyBadge = Object.values({ customBadge, ...badgeAssets }).filter(Boolean).length > 0;\n if ((anyBadge || selected) && size > 16) {\n const badgeSize: BadgeAssetsProps['size'] = MAP_BADGE_ASSET_SIZE[size];\n return (\n <Badge\n aria-label={ariaLabel}\n size={badgeSize}\n badge={\n customBadge ? (\n <Circle fixedSize size={badgeSize}>\n {customBadge}\n </Circle>\n ) : (\n <BadgeAssets {...(selected ? { status: 'positive' } : badgeAssets)} size={badgeSize} />\n )\n }\n style={{\n // @ts-expect-error CSS custom props allowed\n '--badge-content-position': `${MAP_BADGE_POSITION[size] ?? 0}px`,\n }}\n >\n {children}\n </Badge>\n );\n }\n if (notification) {\n return <NotificationDot avatarSize={size}>{children}</NotificationDot>;\n }\n return children;\n}\n\nfunction AvatarViewContent({\n children,\n imgSrc,\n profileName: name,\n profileType: type,\n}: PropsWithChildren<Pick<Props, 'imgSrc' | 'profileName' | 'profileType'>>) {\n const [tryLoadImage, setTryLoadImage] = useState(true);\n if (children === undefined) {\n if (imgSrc && tryLoadImage) {\n return <Image src={imgSrc} alt=\"\" onError={() => setTryLoadImage(false)} />;\n }\n if (type) {\n return type === ProfileType.BUSINESS ? <BusinessProfileIcon /> : <PersonalProfileIcon />;\n }\n if (name) {\n return getInitials(name);\n }\n return <PersonalProfileIcon />;\n }\n return children;\n}\n\nexport default AvatarView;\n"],"names":["AvatarView","children","undefined","size","selected","notification","badge","interactive","className","style","imgSrc","profileType","profileName","restProps","_jsx","Circle","fixedSize","clsx","Badges","avatar","enableBorder","AvatarViewContent","MAP_BADGE_ASSET_SIZE","MAP_BADGE_POSITION","ariaLabel","asset","customBadge","badgeAssets","anyBadge","Object","values","filter","Boolean","length","badgeSize","Badge","BadgeAssets","status","NotificationDot","avatarSize","name","type","tryLoadImage","setTryLoadImage","useState","Image","src","alt","onError","ProfileType","BUSINESS","BusinessProfileIcon","PersonalProfileIcon","getInitials"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,SAASA,UAAUA,CAAC;AAClBC,EAAAA,QAAQ,GAAGC,SAAS;AACpBC,EAAAA,IAAI,GAAG,EAAE;EACTC,QAAQ;EACRC,YAAY;EACZC,KAAK;AACLC,EAAAA,WAAW,GAAG,KAAK;EACnBC,SAAS;EACTC,KAAK;EACLC,MAAM;EACNC,WAAW;EACXC,WAAW;EACX,GAAGC,SAAAA;AACG,CAAA,EAAA;EACN,oBACEC,GAAA,CAACC,MAAM,EAAA;AACLZ,IAAAA,IAAI,EAAEA,IAAK;IACXa,SAAS,EAAA,IAAA;IACTR,SAAS,EAAES,IAAI,CACb,gBAAgB,EAChBV,WAAW,GAAG,4BAA4B,GAAG,gCAAgC,EAC7E;AAAE,MAAA,yBAAyB,EAAEH,QAAAA;KAAU,EACvCI,SAAS,CACT;AAAA,IAAA,GACEK,SAAS;IAAAZ,QAAA,eAEba,GAAA,CAACI,MAAM,EAAA;AAACC,MAAAA,MAAM,EAAE;QAAEhB,IAAI;QAAEE,YAAY;AAAED,QAAAA,QAAAA;OAAW;A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,EAAAA,WAAW,EAAE4B,IAAI;AACjB7B,EAAAA,WAAW,EAAE8B,IAAAA;AAC4D,CAAA,EAAA;EACzE,MAAM,CAACC,YAAY,EAAEC,eAAe,CAAC,GAAGC,QAAQ,CAAC,IAAI,CAAC,CAAA;EACtD,IAAI3C,QAAQ,KAAKC,SAAS,EAAE;IAC1B,IAAIQ,MAAM,IAAIgC,YAAY,EAAE;MAC1B,oBAAO5B,GAAA,CAAC+B,KAAK,EAAA;AAACC,QAAAA,GAAG,EAAEpC,MAAO;AAACqC,QAAAA,GAAG,EAAC,EAAE;AAACC,QAAAA,OAAO,EAAEA,MAAML,eAAe,CAAC,KAAK,CAAA;AAAE,OAAA,CAAG,CAAA;AAC7E,KAAA;AACA,IAAA,IAAIF,IAAI,EAAE;AACR,MAAA,OAAOA,IAAI,KAAKQ,WAAW,CAACC,QAAQ,gBAAGpC,GAAA,CAACqC,SAAmB,EAAA,EAAA,CAAG,gBAAGrC,GAAA,CAACsC,OAAmB,IAAA,CAAG,CAAA;AAC1F,KAAA;AACA,IAAA,IAAIZ,IAAI,EAAE;MACR,OAAOa,WAAW,CAACb,IAAI,CAAC,CAAA;AAC1B,KAAA;AACA,IAAA,oBAAO1B,GAAA,CAACsC,OAAmB,EAAA,GAAG,CAAA;AAChC,GAAA;AACA,EAAA,OAAOnD,QAAQ,CAAA;AACjB;;;;"}
|
|
1
|
+
{"version":3,"file":"AvatarView.mjs","sources":["../../src/avatarView/AvatarView.tsx"],"sourcesContent":["import Badge, { BadgeAssets, BadgeProps, BadgeAssetsProps } from '../badge';\nimport NotificationDot from './NotificationDot';\nimport Circle from '../common/circle';\nimport Image from '../image';\nimport { HTMLAttributes, PropsWithChildren, useState } from 'react';\nimport { clsx } from 'clsx';\nimport { getInitials, ProfileType, ProfileTypeBusiness, ProfileTypePersonal } from '../common';\nimport {\n Briefcase as BusinessProfileIcon,\n Profile as PersonalProfileIcon,\n} from '@transferwise/icons';\n\nexport type AvatarViewBadgeProps = Omit<BadgeAssetsProps, 'size'> &\n Pick<BadgeProps, 'aria-label'> & {\n /**\n * Custom badge content\n */\n asset?: React.ReactNode;\n };\n\nexport type Props = {\n imgSrc?: string | null;\n /**\n * Entity name (person (profile or recipient) or business name), it will be boilded down to 1 or 2 chars (initials)\n */\n profileName?: string | null;\n profileType?: ProfileTypeBusiness | ProfileTypePersonal;\n size?: 16 | 24 | 32 | 40 | 48 | 56 | 72;\n notification?: boolean;\n badge?: AvatarViewBadgeProps;\n interactive?: boolean;\n selected?: boolean;\n style?: Pick<React.CSSProperties, 'border' | 'backgroundColor' | 'color'>;\n} & Pick<\n HTMLAttributes<HTMLDivElement>,\n 'className' | 'children' | 'role' | 'aria-label' | 'aria-labelledby' | 'aria-hidden'\n>;\n\nfunction AvatarView({\n children = undefined,\n size = 48,\n selected,\n notification,\n badge,\n interactive = false,\n className,\n style,\n imgSrc,\n profileType,\n profileName,\n ...restProps\n}: Props) {\n return (\n <Circle\n size={size}\n fixedSize\n className={clsx(\n 'np-avatar-view',\n interactive ? 'np-avatar-view-interactive' : 'np-avatar-view-non-interactive',\n { 'np-avatar-view-selected': selected },\n className,\n )}\n {...restProps}\n >\n <Badges avatar={{ size, notification, selected }} {...badge}>\n <Circle\n size={size}\n fixedSize\n className={clsx('np-avatar-view-content')}\n enableBorder={!interactive || selected}\n style={{\n ...(selected && { '--circle-border-color': 'var(--color-interactive-primary)' }),\n ...style,\n }}\n >\n <AvatarViewContent {...{ imgSrc, profileType, profileName }}>\n {children}\n </AvatarViewContent>\n </Circle>\n </Badges>\n </Circle>\n );\n}\n\n/** Size of badge depends on size of avatar */\nconst MAP_BADGE_ASSET_SIZE = {\n 16: 16,\n 24: 16,\n 32: 16,\n 40: 16,\n 48: 16,\n 56: 24,\n 72: 24,\n} satisfies Record<number, BadgeAssetsProps['size']>;\n\n/** Certain sizes of AvatarView has a custom offset for badge */\nconst MAP_BADGE_POSITION = {\n 24: -6,\n 32: -4,\n};\n\ntype BadgesProps = AvatarViewBadgeProps &\n PropsWithChildren<{\n avatar: Pick<Props, 'selected' | 'size' | 'notification'>;\n }>;\n\n/**\n * Adds build-in badges to AvatarView\n */\nfunction Badges({\n children,\n avatar,\n 'aria-label': ariaLabel,\n asset: customBadge,\n ...badgeAssets\n}: BadgesProps) {\n const { size = 48, selected, notification } = avatar;\n const anyBadge = Object.values({ customBadge, ...badgeAssets }).filter(Boolean).length > 0;\n if ((anyBadge || selected) && size > 16) {\n const badgeSize: BadgeAssetsProps['size'] = MAP_BADGE_ASSET_SIZE[size];\n return (\n <Badge\n aria-label={ariaLabel}\n size={badgeSize}\n badge={\n customBadge ? (\n <Circle fixedSize size={badgeSize}>\n {customBadge}\n </Circle>\n ) : (\n <BadgeAssets {...(selected ? { status: 'positive' } : badgeAssets)} size={badgeSize} />\n )\n }\n style={{\n // @ts-expect-error CSS custom props allowed\n '--badge-content-position': `${MAP_BADGE_POSITION[size] ?? 0}px`,\n }}\n >\n {children}\n </Badge>\n );\n }\n if (notification) {\n return <NotificationDot avatarSize={size}>{children}</NotificationDot>;\n }\n return children;\n}\n\nfunction AvatarViewContent({\n children,\n imgSrc,\n profileName: name,\n profileType: type,\n}: PropsWithChildren<Pick<Props, 'imgSrc' | 'profileName' | 'profileType'>>) {\n const [tryLoadImage, setTryLoadImage] = useState(true);\n if (children === undefined) {\n if (imgSrc && tryLoadImage) {\n return <Image src={imgSrc} alt=\"\" onError={() => setTryLoadImage(false)} />;\n }\n if (type) {\n return type === ProfileType.BUSINESS ? <BusinessProfileIcon /> : <PersonalProfileIcon />;\n }\n if (name) {\n return getInitials(name);\n }\n return <PersonalProfileIcon />;\n }\n return children;\n}\n\nexport default AvatarView;\n"],"names":["AvatarView","children","undefined","size","selected","notification","badge","interactive","className","style","imgSrc","profileType","profileName","restProps","_jsx","Circle","fixedSize","clsx","Badges","avatar","enableBorder","AvatarViewContent","MAP_BADGE_ASSET_SIZE","MAP_BADGE_POSITION","ariaLabel","asset","customBadge","badgeAssets","anyBadge","Object","values","filter","Boolean","length","badgeSize","Badge","BadgeAssets","status","NotificationDot","avatarSize","name","type","tryLoadImage","setTryLoadImage","useState","Image","src","alt","onError","ProfileType","BUSINESS","BusinessProfileIcon","PersonalProfileIcon","getInitials"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,SAASA,UAAUA,CAAC;AAClBC,EAAAA,QAAQ,GAAGC,SAAS;AACpBC,EAAAA,IAAI,GAAG,EAAE;EACTC,QAAQ;EACRC,YAAY;EACZC,KAAK;AACLC,EAAAA,WAAW,GAAG,KAAK;EACnBC,SAAS;EACTC,KAAK;EACLC,MAAM;EACNC,WAAW;EACXC,WAAW;EACX,GAAGC,SAAAA;AACG,CAAA,EAAA;EACN,oBACEC,GAAA,CAACC,MAAM,EAAA;AACLZ,IAAAA,IAAI,EAAEA,IAAK;IACXa,SAAS,EAAA,IAAA;IACTR,SAAS,EAAES,IAAI,CACb,gBAAgB,EAChBV,WAAW,GAAG,4BAA4B,GAAG,gCAAgC,EAC7E;AAAE,MAAA,yBAAyB,EAAEH,QAAAA;KAAU,EACvCI,SAAS,CACT;AAAA,IAAA,GACEK,SAAS;IAAAZ,QAAA,eAEba,GAAA,CAACI,MAAM,EAAA;AAACC,MAAAA,MAAM,EAAE;QAAEhB,IAAI;QAAEE,YAAY;AAAED,QAAAA,QAAAA;OAAW;AAAA,MAAA,GAAKE,KAAK;MAAAL,QAAA,eACzDa,GAAA,CAACC,MAAM,EAAA;AACLZ,QAAAA,IAAI,EAAEA,IAAK;QACXa,SAAS,EAAA,IAAA;AACTR,QAAAA,SAAS,EAAES,IAAI,CAAC,wBAAwB,CAAE;AAC1CG,QAAAA,YAAY,EAAE,CAACb,WAAW,IAAIH,QAAS;AACvCK,QAAAA,KAAK,EAAE;AACL,UAAA,IAAIL,QAAQ,IAAI;AAAE,YAAA,uBAAuB,EAAE,kCAAA;WAAoC,CAAC;UAChF,GAAGK,KAAAA;SACH;QAAAR,QAAA,eAEFa,GAAA,CAACO,iBAAiB,E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,KAAK,CAAA;AAAE,OAAA,CAAG,CAAA;AAC7E,KAAA;AACA,IAAA,IAAIF,IAAI,EAAE;AACR,MAAA,OAAOA,IAAI,KAAKQ,WAAW,CAACC,QAAQ,gBAAGpC,GAAA,CAACqC,SAAmB,EAAA,EAAA,CAAG,gBAAGrC,GAAA,CAACsC,OAAmB,IAAA,CAAG,CAAA;AAC1F,KAAA;AACA,IAAA,IAAIZ,IAAI,EAAE;MACR,OAAOa,WAAW,CAACb,IAAI,CAAC,CAAA;AAC1B,KAAA;AACA,IAAA,oBAAO1B,GAAA,CAACsC,OAAmB,EAAA,GAAG,CAAA;AAChC,GAAA;AACA,EAAA,OAAOnD,QAAQ,CAAA;AACjB;;;;"}
|
|
@@ -48,8 +48,14 @@ const Option = /*#__PURE__*/React.forwardRef(({
|
|
|
48
48
|
})
|
|
49
49
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
50
50
|
className: "media-body",
|
|
51
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
52
|
-
|
|
51
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Body, {
|
|
52
|
+
type: "body-large-bold"
|
|
53
|
+
// for a11y this needs to be a header but for SEO it shouldn't be `h*` tag
|
|
54
|
+
// so we enable header semantics via `role` and `aria-level` attrs
|
|
55
|
+
,
|
|
56
|
+
role: "heading",
|
|
57
|
+
"aria-level": "4",
|
|
58
|
+
className: "text-primary np-option__title",
|
|
53
59
|
children: title
|
|
54
60
|
}), content && /*#__PURE__*/jsxRuntime.jsx(Body, {
|
|
55
61
|
className: "d-block np-option__body",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Option.js","sources":["../../../src/common/Option/Option.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { MouseEvent, forwardRef, HTMLAttributes, ReactNode, ElementType } from 'react';\n\nimport Body from '../../body';\nimport { LinkProps } from '../commonProps';\n\nexport interface BaseOptionProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'content'> {\n 'aria-label'?: string;\n 'aria-expanded'?: boolean;\n 'aria-controls'?: string;\n media?: ReactNode;\n name?: string;\n htmlFor?: string;\n title: ReactNode;\n content?: ReactNode;\n onClick?: (event: MouseEvent<HTMLElement>) => void;\n as?: ElementType;\n disabled?: boolean;\n button?: ReactNode;\n decision?: boolean;\n complex?: boolean;\n inverseMediaCircle?: boolean;\n className?: string;\n showMediaAtAllSizes?: boolean;\n showMediaCircle?: boolean;\n isContainerAligned?: boolean;\n}\n\ninterface AnchorOptionProps extends BaseOptionProps, LinkProps {\n as: 'a';\n}\n\nexport type OptionProps = BaseOptionProps | AnchorOptionProps;\n\nexport type ReferenceType = HTMLElement | HTMLAnchorElement;\n\nconst Option = forwardRef<ReferenceType, OptionProps>(\n (\n {\n media = '',\n title,\n content,\n as: component,\n button,\n decision = true,\n disabled = false,\n complex,\n inverseMediaCircle = true,\n className,\n showMediaAtAllSizes,\n showMediaCircle = true,\n isContainerAligned = false,\n ...rest\n },\n reference,\n ) => {\n const Element = component ?? 'label';\n\n return (\n <Element\n {...rest}\n ref={reference}\n className={clsx('np-option', className, {\n 'decision-complex': complex,\n decision,\n disabled,\n 'np-option__sm-media': showMediaAtAllSizes,\n 'np-option__container-aligned': isContainerAligned,\n })}\n disabled={disabled && Element === 'button'}\n >\n <div className=\"media\">\n {media && (\n <div className=\"media-left\">\n {showMediaCircle ? (\n <div\n className={clsx('circle circle-sm text-primary', {\n 'circle-inverse': inverseMediaCircle,\n })}\n >\n {media}\n </div>\n ) : (\n <div className=\"np-option__no-media-circle\">{media}</div>\n )}\n </div>\n )}\n <div className=\"media-body\">\n <
|
|
1
|
+
{"version":3,"file":"Option.js","sources":["../../../src/common/Option/Option.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { MouseEvent, forwardRef, HTMLAttributes, ReactNode, ElementType } from 'react';\n\nimport Body from '../../body';\nimport { LinkProps } from '../commonProps';\n\nexport interface BaseOptionProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'content'> {\n 'aria-label'?: string;\n 'aria-expanded'?: boolean;\n 'aria-controls'?: string;\n media?: ReactNode;\n name?: string;\n htmlFor?: string;\n title: ReactNode;\n content?: ReactNode;\n onClick?: (event: MouseEvent<HTMLElement>) => void;\n as?: ElementType;\n disabled?: boolean;\n button?: ReactNode;\n decision?: boolean;\n complex?: boolean;\n inverseMediaCircle?: boolean;\n className?: string;\n showMediaAtAllSizes?: boolean;\n showMediaCircle?: boolean;\n isContainerAligned?: boolean;\n}\n\ninterface AnchorOptionProps extends BaseOptionProps, LinkProps {\n as: 'a';\n}\n\nexport type OptionProps = BaseOptionProps | AnchorOptionProps;\n\nexport type ReferenceType = HTMLElement | HTMLAnchorElement;\n\nconst Option = forwardRef<ReferenceType, OptionProps>(\n (\n {\n media = '',\n title,\n content,\n as: component,\n button,\n decision = true,\n disabled = false,\n complex,\n inverseMediaCircle = true,\n className,\n showMediaAtAllSizes,\n showMediaCircle = true,\n isContainerAligned = false,\n ...rest\n },\n reference,\n ) => {\n const Element = component ?? 'label';\n\n return (\n <Element\n {...rest}\n ref={reference}\n className={clsx('np-option', className, {\n 'decision-complex': complex,\n decision,\n disabled,\n 'np-option__sm-media': showMediaAtAllSizes,\n 'np-option__container-aligned': isContainerAligned,\n })}\n disabled={disabled && Element === 'button'}\n >\n <div className=\"media\">\n {media && (\n <div className=\"media-left\">\n {showMediaCircle ? (\n <div\n className={clsx('circle circle-sm text-primary', {\n 'circle-inverse': inverseMediaCircle,\n })}\n >\n {media}\n </div>\n ) : (\n <div className=\"np-option__no-media-circle\">{media}</div>\n )}\n </div>\n )}\n <div className=\"media-body\">\n {/* @ts-expect-error div can have role and aria-lavel props */}\n <Body\n type=\"body-large-bold\"\n // for a11y this needs to be a header but for SEO it shouldn't be `h*` tag\n // so we enable header semantics via `role` and `aria-level` attrs\n role=\"heading\"\n aria-level=\"4\"\n className=\"text-primary np-option__title\"\n >\n {title}\n </Body>\n {content && <Body className=\"d-block np-option__body\">{content}</Body>}\n </div>\n <div className=\"media-right\">{button}</div>\n </div>\n </Element>\n );\n },\n);\n\nexport default Option;\n"],"names":["Option","forwardRef","media","title","content","as","component","button","decision","disabled","complex","inverseMediaCircle","className","showMediaAtAllSizes","showMediaCircle","isContainerAligned","rest","reference","Element","_jsx","ref","clsx","children","_jsxs","Body","type","role"],"mappings":";;;;;;;AAoCA,MAAMA,MAAM,gBAAGC,gBAAU,CACvB,CACE;AACEC,EAAAA,KAAK,GAAG,EAAE;EACVC,KAAK;EACLC,OAAO;AACPC,EAAAA,EAAE,EAAEC,SAAS;EACbC,MAAM;AACNC,EAAAA,QAAQ,GAAG,IAAI;AACfC,EAAAA,QAAQ,GAAG,KAAK;EAChBC,OAAO;AACPC,EAAAA,kBAAkB,GAAG,IAAI;EACzBC,SAAS;EACTC,mBAAmB;AACnBC,EAAAA,eAAe,GAAG,IAAI;AACtBC,EAAAA,kBAAkB,GAAG,KAAK;EAC1B,GAAGC,IAAAA;AACJ,CAAA,EACDC,SAAS,KACP;AACF,EAAA,MAAMC,OAAO,GAAGZ,SAAS,IAAI,OAAO,CAAA;EAEpC,oBACEa,cAAA,CAACD,OAAO,EAAA;AAAA,IAAA,GACFF,IAAI;AACRI,IAAAA,GAAG,EAAEH,SAAU;AACfL,IAAAA,SAAS,EAAES,SAAI,CAAC,WAAW,EAAET,SAAS,EAAE;AACtC,MAAA,kBAAkB,EAAEF,OAAO;MAC3BF,QAAQ;MACRC,QAAQ;AACR,MAAA,qBAAqB,EAAEI,mBAAmB;AAC1C,MAAA,8BAA8B,EAAEE,kBAAAA;KACjC,CAAE;AACHN,IAAAA,QAAQ,EAAEA,QAAQ,IAAIS,OAAO,KAAK,QAAS;AAAAI,IAAAA,QAAA,eAE3CC,eAAA,CAAA,KAAA,EAAA;AAAKX,MAAAA,SAAS,EAAC,OAAO;MAAAU,QAAA,EAAA,CACnBpB,KAAK,iBACJiB,cAAA,CAAA,KAAA,EAAA;AAAKP,QAAAA,SAAS,EAAC,YAAY;QAAAU,QAAA,EACxBR,eAAe,gBACdK,cAAA,CAAA,KAAA,EAAA;AACEP,UAAAA,SAAS,EAAES,SAAI,CAAC,+BAA+B,EAAE;AAC/C,YAAA,gBAAgB,EAAEV,kBAAAA;AACnB,WAAA,CAAE;AAAAW,UAAAA,QAAA,EAEFpB,KAAAA;SACE,CAAC,gBAENiB,cAAA,CAAA,KAAA,EAAA;AAAKP,UAAAA,SAAS,EAAC,4BAA4B;AAAAU,UAAAA,QAAA,EAAEpB,KAAAA;SAAW,CAAA;OAEvD,CACN,eACDqB,eAAA,CAAA,KAAA,EAAA;AAAKX,QAAAA,SAAS,EAAC,YAAY;QAAAU,QAAA,EAAA,cAEzBH,cAAA,CAACK,IAAI,EAAA;AACHC,UAAAA,IAAI,EAAC,iBAAA;AACL;AACA;AAAA;AACAC,UAAAA,IAAI,EAAC,SAAS;AACd,UAAA,YAAA,EAAW,GAAG;AACdd,UAAAA,SAAS,EAAC,+BAA+B;AAAAU,UAAAA,QAAA,EAExCnB,KAAAA;AAAK,SACF,CACN,EAACC,OAAO,iBAAIe,cAAA,CAACK,IAAI,EAAA;AAACZ,UAAAA,SAAS,EAAC,yBAAyB;AAAAU,UAAAA,QAAA,EAAElB,OAAAA;AAAO,SAAO,CAAC,CAAA;OACnE,CACL,eAAAe,cAAA,CAAA,KAAA,EAAA;AAAKP,QAAAA,SAAS,EAAC,aAAa;AAAAU,QAAAA,QAAA,EAAEf,MAAAA;AAAM,OAAM,CAC5C,CAAA;KAAK,CAAA;AACP,GAAS,CAAC,CAAA;AAEd,CAAC;;;;"}
|
|
@@ -46,8 +46,14 @@ const Option = /*#__PURE__*/forwardRef(({
|
|
|
46
46
|
})
|
|
47
47
|
}), /*#__PURE__*/jsxs("div", {
|
|
48
48
|
className: "media-body",
|
|
49
|
-
children: [/*#__PURE__*/jsx(
|
|
50
|
-
|
|
49
|
+
children: [/*#__PURE__*/jsx(Body, {
|
|
50
|
+
type: "body-large-bold"
|
|
51
|
+
// for a11y this needs to be a header but for SEO it shouldn't be `h*` tag
|
|
52
|
+
// so we enable header semantics via `role` and `aria-level` attrs
|
|
53
|
+
,
|
|
54
|
+
role: "heading",
|
|
55
|
+
"aria-level": "4",
|
|
56
|
+
className: "text-primary np-option__title",
|
|
51
57
|
children: title
|
|
52
58
|
}), content && /*#__PURE__*/jsx(Body, {
|
|
53
59
|
className: "d-block np-option__body",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Option.mjs","sources":["../../../src/common/Option/Option.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { MouseEvent, forwardRef, HTMLAttributes, ReactNode, ElementType } from 'react';\n\nimport Body from '../../body';\nimport { LinkProps } from '../commonProps';\n\nexport interface BaseOptionProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'content'> {\n 'aria-label'?: string;\n 'aria-expanded'?: boolean;\n 'aria-controls'?: string;\n media?: ReactNode;\n name?: string;\n htmlFor?: string;\n title: ReactNode;\n content?: ReactNode;\n onClick?: (event: MouseEvent<HTMLElement>) => void;\n as?: ElementType;\n disabled?: boolean;\n button?: ReactNode;\n decision?: boolean;\n complex?: boolean;\n inverseMediaCircle?: boolean;\n className?: string;\n showMediaAtAllSizes?: boolean;\n showMediaCircle?: boolean;\n isContainerAligned?: boolean;\n}\n\ninterface AnchorOptionProps extends BaseOptionProps, LinkProps {\n as: 'a';\n}\n\nexport type OptionProps = BaseOptionProps | AnchorOptionProps;\n\nexport type ReferenceType = HTMLElement | HTMLAnchorElement;\n\nconst Option = forwardRef<ReferenceType, OptionProps>(\n (\n {\n media = '',\n title,\n content,\n as: component,\n button,\n decision = true,\n disabled = false,\n complex,\n inverseMediaCircle = true,\n className,\n showMediaAtAllSizes,\n showMediaCircle = true,\n isContainerAligned = false,\n ...rest\n },\n reference,\n ) => {\n const Element = component ?? 'label';\n\n return (\n <Element\n {...rest}\n ref={reference}\n className={clsx('np-option', className, {\n 'decision-complex': complex,\n decision,\n disabled,\n 'np-option__sm-media': showMediaAtAllSizes,\n 'np-option__container-aligned': isContainerAligned,\n })}\n disabled={disabled && Element === 'button'}\n >\n <div className=\"media\">\n {media && (\n <div className=\"media-left\">\n {showMediaCircle ? (\n <div\n className={clsx('circle circle-sm text-primary', {\n 'circle-inverse': inverseMediaCircle,\n })}\n >\n {media}\n </div>\n ) : (\n <div className=\"np-option__no-media-circle\">{media}</div>\n )}\n </div>\n )}\n <div className=\"media-body\">\n <
|
|
1
|
+
{"version":3,"file":"Option.mjs","sources":["../../../src/common/Option/Option.tsx"],"sourcesContent":["import { clsx } from 'clsx';\nimport { MouseEvent, forwardRef, HTMLAttributes, ReactNode, ElementType } from 'react';\n\nimport Body from '../../body';\nimport { LinkProps } from '../commonProps';\n\nexport interface BaseOptionProps extends Omit<HTMLAttributes<HTMLElement>, 'title' | 'content'> {\n 'aria-label'?: string;\n 'aria-expanded'?: boolean;\n 'aria-controls'?: string;\n media?: ReactNode;\n name?: string;\n htmlFor?: string;\n title: ReactNode;\n content?: ReactNode;\n onClick?: (event: MouseEvent<HTMLElement>) => void;\n as?: ElementType;\n disabled?: boolean;\n button?: ReactNode;\n decision?: boolean;\n complex?: boolean;\n inverseMediaCircle?: boolean;\n className?: string;\n showMediaAtAllSizes?: boolean;\n showMediaCircle?: boolean;\n isContainerAligned?: boolean;\n}\n\ninterface AnchorOptionProps extends BaseOptionProps, LinkProps {\n as: 'a';\n}\n\nexport type OptionProps = BaseOptionProps | AnchorOptionProps;\n\nexport type ReferenceType = HTMLElement | HTMLAnchorElement;\n\nconst Option = forwardRef<ReferenceType, OptionProps>(\n (\n {\n media = '',\n title,\n content,\n as: component,\n button,\n decision = true,\n disabled = false,\n complex,\n inverseMediaCircle = true,\n className,\n showMediaAtAllSizes,\n showMediaCircle = true,\n isContainerAligned = false,\n ...rest\n },\n reference,\n ) => {\n const Element = component ?? 'label';\n\n return (\n <Element\n {...rest}\n ref={reference}\n className={clsx('np-option', className, {\n 'decision-complex': complex,\n decision,\n disabled,\n 'np-option__sm-media': showMediaAtAllSizes,\n 'np-option__container-aligned': isContainerAligned,\n })}\n disabled={disabled && Element === 'button'}\n >\n <div className=\"media\">\n {media && (\n <div className=\"media-left\">\n {showMediaCircle ? (\n <div\n className={clsx('circle circle-sm text-primary', {\n 'circle-inverse': inverseMediaCircle,\n })}\n >\n {media}\n </div>\n ) : (\n <div className=\"np-option__no-media-circle\">{media}</div>\n )}\n </div>\n )}\n <div className=\"media-body\">\n {/* @ts-expect-error div can have role and aria-lavel props */}\n <Body\n type=\"body-large-bold\"\n // for a11y this needs to be a header but for SEO it shouldn't be `h*` tag\n // so we enable header semantics via `role` and `aria-level` attrs\n role=\"heading\"\n aria-level=\"4\"\n className=\"text-primary np-option__title\"\n >\n {title}\n </Body>\n {content && <Body className=\"d-block np-option__body\">{content}</Body>}\n </div>\n <div className=\"media-right\">{button}</div>\n </div>\n </Element>\n );\n },\n);\n\nexport default Option;\n"],"names":["Option","forwardRef","media","title","content","as","component","button","decision","disabled","complex","inverseMediaCircle","className","showMediaAtAllSizes","showMediaCircle","isContainerAligned","rest","reference","Element","_jsx","ref","clsx","children","_jsxs","Body","type","role"],"mappings":";;;;;AAoCA,MAAMA,MAAM,gBAAGC,UAAU,CACvB,CACE;AACEC,EAAAA,KAAK,GAAG,EAAE;EACVC,KAAK;EACLC,OAAO;AACPC,EAAAA,EAAE,EAAEC,SAAS;EACbC,MAAM;AACNC,EAAAA,QAAQ,GAAG,IAAI;AACfC,EAAAA,QAAQ,GAAG,KAAK;EAChBC,OAAO;AACPC,EAAAA,kBAAkB,GAAG,IAAI;EACzBC,SAAS;EACTC,mBAAmB;AACnBC,EAAAA,eAAe,GAAG,IAAI;AACtBC,EAAAA,kBAAkB,GAAG,KAAK;EAC1B,GAAGC,IAAAA;AACJ,CAAA,EACDC,SAAS,KACP;AACF,EAAA,MAAMC,OAAO,GAAGZ,SAAS,IAAI,OAAO,CAAA;EAEpC,oBACEa,GAAA,CAACD,OAAO,EAAA;AAAA,IAAA,GACFF,IAAI;AACR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AElB,OAAAA;AAAO,SAAO,CAAC,CAAA;OACnE,CACL,eAAAe,GAAA,CAAA,KAAA,EAAA;AAAKP,QAAAA,SAAS,EAAC,aAAa;AAAAU,QAAAA,QAAA,EAAEf,MAAAA;AAAM,OAAM,CAC5C,CAAA;KAAK,CAAA;AACP,GAAS,CAAC,CAAA;AAEd,CAAC;;;;"}
|
package/build/i18n/es.json
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"neptune.Summary.statusNotDone": "Apartado a completar",
|
|
37
37
|
"neptune.Summary.statusPending": "Apartado pendiente",
|
|
38
38
|
"neptune.Table.actionHeader": "Acción",
|
|
39
|
-
"neptune.Table.emptyData": "
|
|
39
|
+
"neptune.Table.emptyData": "Ningún resultado",
|
|
40
40
|
"neptune.Table.loaded": "Los datos de la tabla se han cargado",
|
|
41
41
|
"neptune.Table.loading": "Los datos de la tabla se están cargando",
|
|
42
42
|
"neptune.Table.refreshPage": "Actualizar página",
|
package/build/i18n/es.json.js
CHANGED
|
@@ -38,7 +38,7 @@ var es = {
|
|
|
38
38
|
"neptune.Summary.statusNotDone": "Apartado a completar",
|
|
39
39
|
"neptune.Summary.statusPending": "Apartado pendiente",
|
|
40
40
|
"neptune.Table.actionHeader": "Acción",
|
|
41
|
-
"neptune.Table.emptyData": "
|
|
41
|
+
"neptune.Table.emptyData": "Ningún resultado",
|
|
42
42
|
"neptune.Table.loaded": "Los datos de la tabla se han cargado",
|
|
43
43
|
"neptune.Table.loading": "Los datos de la tabla se están cargando",
|
|
44
44
|
"neptune.Table.refreshPage": "Actualizar página",
|
package/build/i18n/es.json.mjs
CHANGED
|
@@ -36,7 +36,7 @@ var es = {
|
|
|
36
36
|
"neptune.Summary.statusNotDone": "Apartado a completar",
|
|
37
37
|
"neptune.Summary.statusPending": "Apartado pendiente",
|
|
38
38
|
"neptune.Table.actionHeader": "Acción",
|
|
39
|
-
"neptune.Table.emptyData": "
|
|
39
|
+
"neptune.Table.emptyData": "Ningún resultado",
|
|
40
40
|
"neptune.Table.loaded": "Los datos de la tabla se han cargado",
|
|
41
41
|
"neptune.Table.loading": "Los datos de la tabla se están cargando",
|
|
42
42
|
"neptune.Table.refreshPage": "Actualizar página",
|
package/build/i18n/fr.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "année",
|
|
19
19
|
"neptune.FlowNavigation.back": "revenir à l'étape précédente",
|
|
20
20
|
"neptune.Info.ariaLabel": "Plus d'informations",
|
|
21
|
-
"neptune.Label.optional": "(
|
|
21
|
+
"neptune.Label.optional": "(facultatif)",
|
|
22
22
|
"neptune.Link.opensInNewTab": "(ouvre dans un nouvel onglet)",
|
|
23
23
|
"neptune.MoneyInput.Select.placeholder": "Sélectionner une option...",
|
|
24
24
|
"neptune.MoneyInput.Select.selectCurrencyLabel": "Sélectionnez une devise",
|
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Validé",
|
|
36
36
|
"neptune.Summary.statusNotDone": "À compléter",
|
|
37
37
|
"neptune.Summary.statusPending": "En attente",
|
|
38
|
+
"neptune.Table.actionHeader": "Action",
|
|
39
|
+
"neptune.Table.emptyData": "Aucun résultat trouvé",
|
|
40
|
+
"neptune.Table.loaded": "Les données du tableau ont été chargées",
|
|
41
|
+
"neptune.Table.loading": "Chargement des données du tableau",
|
|
42
|
+
"neptune.Table.refreshPage": "Rafraichir la page",
|
|
38
43
|
"neptune.Upload.csButtonText": "Envoyer un autre fichier ?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Échec du téléchargement. Veuillez réessayer",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Téléchargement terminé !",
|
package/build/i18n/fr.json.js
CHANGED
|
@@ -20,7 +20,7 @@ var fr = {
|
|
|
20
20
|
"neptune.DateLookup.year": "année",
|
|
21
21
|
"neptune.FlowNavigation.back": "revenir à l'étape précédente",
|
|
22
22
|
"neptune.Info.ariaLabel": "Plus d'informations",
|
|
23
|
-
"neptune.Label.optional": "(
|
|
23
|
+
"neptune.Label.optional": "(facultatif)",
|
|
24
24
|
"neptune.Link.opensInNewTab": "(ouvre dans un nouvel onglet)",
|
|
25
25
|
"neptune.MoneyInput.Select.placeholder": "Sélectionner une option...",
|
|
26
26
|
"neptune.MoneyInput.Select.selectCurrencyLabel": "Sélectionnez une devise",
|
|
@@ -37,6 +37,11 @@ var fr = {
|
|
|
37
37
|
"neptune.Summary.statusDone": "Validé",
|
|
38
38
|
"neptune.Summary.statusNotDone": "À compléter",
|
|
39
39
|
"neptune.Summary.statusPending": "En attente",
|
|
40
|
+
"neptune.Table.actionHeader": "Action",
|
|
41
|
+
"neptune.Table.emptyData": "Aucun résultat trouvé",
|
|
42
|
+
"neptune.Table.loaded": "Les données du tableau ont été chargées",
|
|
43
|
+
"neptune.Table.loading": "Chargement des données du tableau",
|
|
44
|
+
"neptune.Table.refreshPage": "Rafraichir la page",
|
|
40
45
|
"neptune.Upload.csButtonText": "Envoyer un autre fichier ?",
|
|
41
46
|
"neptune.Upload.csFailureText": "Échec du téléchargement. Veuillez réessayer",
|
|
42
47
|
"neptune.Upload.csSuccessText": "Téléchargement terminé !",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fr.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/fr.json.mjs
CHANGED
|
@@ -18,7 +18,7 @@ var fr = {
|
|
|
18
18
|
"neptune.DateLookup.year": "année",
|
|
19
19
|
"neptune.FlowNavigation.back": "revenir à l'étape précédente",
|
|
20
20
|
"neptune.Info.ariaLabel": "Plus d'informations",
|
|
21
|
-
"neptune.Label.optional": "(
|
|
21
|
+
"neptune.Label.optional": "(facultatif)",
|
|
22
22
|
"neptune.Link.opensInNewTab": "(ouvre dans un nouvel onglet)",
|
|
23
23
|
"neptune.MoneyInput.Select.placeholder": "Sélectionner une option...",
|
|
24
24
|
"neptune.MoneyInput.Select.selectCurrencyLabel": "Sélectionnez une devise",
|
|
@@ -35,6 +35,11 @@ var fr = {
|
|
|
35
35
|
"neptune.Summary.statusDone": "Validé",
|
|
36
36
|
"neptune.Summary.statusNotDone": "À compléter",
|
|
37
37
|
"neptune.Summary.statusPending": "En attente",
|
|
38
|
+
"neptune.Table.actionHeader": "Action",
|
|
39
|
+
"neptune.Table.emptyData": "Aucun résultat trouvé",
|
|
40
|
+
"neptune.Table.loaded": "Les données du tableau ont été chargées",
|
|
41
|
+
"neptune.Table.loading": "Chargement des données du tableau",
|
|
42
|
+
"neptune.Table.refreshPage": "Rafraichir la page",
|
|
38
43
|
"neptune.Upload.csButtonText": "Envoyer un autre fichier ?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Échec du téléchargement. Veuillez réessayer",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Téléchargement terminé !",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fr.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/hu.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Kész",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Hátravan",
|
|
37
37
|
"neptune.Summary.statusPending": "Függőben",
|
|
38
|
+
"neptune.Table.actionHeader": "Művelet",
|
|
39
|
+
"neptune.Table.emptyData": "Nincs találat",
|
|
40
|
+
"neptune.Table.loaded": "Táblázatadatok betöltve",
|
|
41
|
+
"neptune.Table.loading": "Táblázatadatok betöltése folyamatban",
|
|
42
|
+
"neptune.Table.refreshPage": "Oldal frissítése",
|
|
38
43
|
"neptune.Upload.csButtonText": "Másik fájl feltöltése?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Feltöltés sikertelen. Kérünk, próbáld újra",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Feltöltés sikeres",
|
package/build/i18n/hu.json.js
CHANGED
|
@@ -37,6 +37,11 @@ var hu = {
|
|
|
37
37
|
"neptune.Summary.statusDone": "Kész",
|
|
38
38
|
"neptune.Summary.statusNotDone": "Hátravan",
|
|
39
39
|
"neptune.Summary.statusPending": "Függőben",
|
|
40
|
+
"neptune.Table.actionHeader": "Művelet",
|
|
41
|
+
"neptune.Table.emptyData": "Nincs találat",
|
|
42
|
+
"neptune.Table.loaded": "Táblázatadatok betöltve",
|
|
43
|
+
"neptune.Table.loading": "Táblázatadatok betöltése folyamatban",
|
|
44
|
+
"neptune.Table.refreshPage": "Oldal frissítése",
|
|
40
45
|
"neptune.Upload.csButtonText": "Másik fájl feltöltése?",
|
|
41
46
|
"neptune.Upload.csFailureText": "Feltöltés sikertelen. Kérünk, próbáld újra",
|
|
42
47
|
"neptune.Upload.csSuccessText": "Feltöltés sikeres",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hu.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hu.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/hu.json.mjs
CHANGED
|
@@ -35,6 +35,11 @@ var hu = {
|
|
|
35
35
|
"neptune.Summary.statusDone": "Kész",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Hátravan",
|
|
37
37
|
"neptune.Summary.statusPending": "Függőben",
|
|
38
|
+
"neptune.Table.actionHeader": "Művelet",
|
|
39
|
+
"neptune.Table.emptyData": "Nincs találat",
|
|
40
|
+
"neptune.Table.loaded": "Táblázatadatok betöltve",
|
|
41
|
+
"neptune.Table.loading": "Táblázatadatok betöltése folyamatban",
|
|
42
|
+
"neptune.Table.refreshPage": "Oldal frissítése",
|
|
38
43
|
"neptune.Upload.csButtonText": "Másik fájl feltöltése?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Feltöltés sikertelen. Kérünk, próbáld újra",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Feltöltés sikeres",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hu.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hu.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/id.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Item selesai",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Item yang harus dilakukan",
|
|
37
37
|
"neptune.Summary.statusPending": "Item tertunda",
|
|
38
|
+
"neptune.Table.actionHeader": "Tindakan",
|
|
39
|
+
"neptune.Table.emptyData": "Hasil tidak ditemukan",
|
|
40
|
+
"neptune.Table.loaded": "Data tabel telah dimuat",
|
|
41
|
+
"neptune.Table.loading": "Data tabel sedang dimuat",
|
|
42
|
+
"neptune.Table.refreshPage": "Muat ulang halaman",
|
|
38
43
|
"neptune.Upload.csButtonText": "Unggah file lainnya?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Unggahan gagal. Silakan coba lagi",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Pengunggahan selesai!",
|
package/build/i18n/id.json.js
CHANGED
|
@@ -37,6 +37,11 @@ var id = {
|
|
|
37
37
|
"neptune.Summary.statusDone": "Item selesai",
|
|
38
38
|
"neptune.Summary.statusNotDone": "Item yang harus dilakukan",
|
|
39
39
|
"neptune.Summary.statusPending": "Item tertunda",
|
|
40
|
+
"neptune.Table.actionHeader": "Tindakan",
|
|
41
|
+
"neptune.Table.emptyData": "Hasil tidak ditemukan",
|
|
42
|
+
"neptune.Table.loaded": "Data tabel telah dimuat",
|
|
43
|
+
"neptune.Table.loading": "Data tabel sedang dimuat",
|
|
44
|
+
"neptune.Table.refreshPage": "Muat ulang halaman",
|
|
40
45
|
"neptune.Upload.csButtonText": "Unggah file lainnya?",
|
|
41
46
|
"neptune.Upload.csFailureText": "Unggahan gagal. Silakan coba lagi",
|
|
42
47
|
"neptune.Upload.csSuccessText": "Pengunggahan selesai!",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"id.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/id.json.mjs
CHANGED
|
@@ -35,6 +35,11 @@ var id = {
|
|
|
35
35
|
"neptune.Summary.statusDone": "Item selesai",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Item yang harus dilakukan",
|
|
37
37
|
"neptune.Summary.statusPending": "Item tertunda",
|
|
38
|
+
"neptune.Table.actionHeader": "Tindakan",
|
|
39
|
+
"neptune.Table.emptyData": "Hasil tidak ditemukan",
|
|
40
|
+
"neptune.Table.loaded": "Data tabel telah dimuat",
|
|
41
|
+
"neptune.Table.loading": "Data tabel sedang dimuat",
|
|
42
|
+
"neptune.Table.refreshPage": "Muat ulang halaman",
|
|
38
43
|
"neptune.Upload.csButtonText": "Unggah file lainnya?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Unggahan gagal. Silakan coba lagi",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Pengunggahan selesai!",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"id.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/it.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Completato",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Da completare",
|
|
37
37
|
"neptune.Summary.statusPending": "In corso",
|
|
38
|
+
"neptune.Table.actionHeader": "Azione",
|
|
39
|
+
"neptune.Table.emptyData": "Nessun risultato trovato",
|
|
40
|
+
"neptune.Table.loaded": "I dati della tabella sono stati caricati",
|
|
41
|
+
"neptune.Table.loading": "I dati della tabella sono in fase di caricamento",
|
|
42
|
+
"neptune.Table.refreshPage": "Aggiorna la pagina",
|
|
38
43
|
"neptune.Upload.csButtonText": "Carica un altro documento?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Caricamento fallito. Per favore riprova",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Caricamento completato!",
|
package/build/i18n/it.json.js
CHANGED
|
@@ -37,6 +37,11 @@ var it = {
|
|
|
37
37
|
"neptune.Summary.statusDone": "Completato",
|
|
38
38
|
"neptune.Summary.statusNotDone": "Da completare",
|
|
39
39
|
"neptune.Summary.statusPending": "In corso",
|
|
40
|
+
"neptune.Table.actionHeader": "Azione",
|
|
41
|
+
"neptune.Table.emptyData": "Nessun risultato trovato",
|
|
42
|
+
"neptune.Table.loaded": "I dati della tabella sono stati caricati",
|
|
43
|
+
"neptune.Table.loading": "I dati della tabella sono in fase di caricamento",
|
|
44
|
+
"neptune.Table.refreshPage": "Aggiorna la pagina",
|
|
40
45
|
"neptune.Upload.csButtonText": "Carica un altro documento?",
|
|
41
46
|
"neptune.Upload.csFailureText": "Caricamento fallito. Per favore riprova",
|
|
42
47
|
"neptune.Upload.csSuccessText": "Caricamento completato!",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"it.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/it.json.mjs
CHANGED
|
@@ -35,6 +35,11 @@ var it = {
|
|
|
35
35
|
"neptune.Summary.statusDone": "Completato",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Da completare",
|
|
37
37
|
"neptune.Summary.statusPending": "In corso",
|
|
38
|
+
"neptune.Table.actionHeader": "Azione",
|
|
39
|
+
"neptune.Table.emptyData": "Nessun risultato trovato",
|
|
40
|
+
"neptune.Table.loaded": "I dati della tabella sono stati caricati",
|
|
41
|
+
"neptune.Table.loading": "I dati della tabella sono in fase di caricamento",
|
|
42
|
+
"neptune.Table.refreshPage": "Aggiorna la pagina",
|
|
38
43
|
"neptune.Upload.csButtonText": "Carica un altro documento?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Caricamento fallito. Per favore riprova",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Caricamento completato!",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"it.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/ja.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "完了",
|
|
36
36
|
"neptune.Summary.statusNotDone": "未完了",
|
|
37
37
|
"neptune.Summary.statusPending": "保留中",
|
|
38
|
+
"neptune.Table.actionHeader": "アクション",
|
|
39
|
+
"neptune.Table.emptyData": "結果が見つかりませんでした",
|
|
40
|
+
"neptune.Table.loaded": "テーブルデータが読み込まれました",
|
|
41
|
+
"neptune.Table.loading": "テーブルデータを読み込み中です",
|
|
42
|
+
"neptune.Table.refreshPage": "ページを更新する",
|
|
38
43
|
"neptune.Upload.csButtonText": "別のファイルをアップロードしますか?",
|
|
39
44
|
"neptune.Upload.csFailureText": "アップロードに失敗しました。もう一度やり直してください。",
|
|
40
45
|
"neptune.Upload.csSuccessText": "アップロードが完了しました。",
|
package/build/i18n/ja.json.js
CHANGED
|
@@ -37,6 +37,11 @@ var ja = {
|
|
|
37
37
|
"neptune.Summary.statusDone": "完了",
|
|
38
38
|
"neptune.Summary.statusNotDone": "未完了",
|
|
39
39
|
"neptune.Summary.statusPending": "保留中",
|
|
40
|
+
"neptune.Table.actionHeader": "アクション",
|
|
41
|
+
"neptune.Table.emptyData": "結果が見つかりませんでした",
|
|
42
|
+
"neptune.Table.loaded": "テーブルデータが読み込まれました",
|
|
43
|
+
"neptune.Table.loading": "テーブルデータを読み込み中です",
|
|
44
|
+
"neptune.Table.refreshPage": "ページを更新する",
|
|
40
45
|
"neptune.Upload.csButtonText": "別のファイルをアップロードしますか?",
|
|
41
46
|
"neptune.Upload.csFailureText": "アップロードに失敗しました。もう一度やり直してください。",
|
|
42
47
|
"neptune.Upload.csSuccessText": "アップロードが完了しました。",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ja.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/ja.json.mjs
CHANGED
|
@@ -35,6 +35,11 @@ var ja = {
|
|
|
35
35
|
"neptune.Summary.statusDone": "完了",
|
|
36
36
|
"neptune.Summary.statusNotDone": "未完了",
|
|
37
37
|
"neptune.Summary.statusPending": "保留中",
|
|
38
|
+
"neptune.Table.actionHeader": "アクション",
|
|
39
|
+
"neptune.Table.emptyData": "結果が見つかりませんでした",
|
|
40
|
+
"neptune.Table.loaded": "テーブルデータが読み込まれました",
|
|
41
|
+
"neptune.Table.loading": "テーブルデータを読み込み中です",
|
|
42
|
+
"neptune.Table.refreshPage": "ページを更新する",
|
|
38
43
|
"neptune.Upload.csButtonText": "別のファイルをアップロードしますか?",
|
|
39
44
|
"neptune.Upload.csFailureText": "アップロードに失敗しました。もう一度やり直してください。",
|
|
40
45
|
"neptune.Upload.csSuccessText": "アップロードが完了しました。",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ja.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/pl.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Czynność wykonana",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Czynność do wykonania",
|
|
37
37
|
"neptune.Summary.statusPending": "Czynność oczekująca",
|
|
38
|
-
"neptune.Table.actionHeader": "
|
|
38
|
+
"neptune.Table.actionHeader": "Działanie",
|
|
39
39
|
"neptune.Table.emptyData": "Nie znaleziono wyników",
|
|
40
40
|
"neptune.Table.loaded": "Wczytano dane tabeli",
|
|
41
41
|
"neptune.Table.loading": "Wczytywanie danych tabeli",
|
package/build/i18n/pl.json.js
CHANGED
|
@@ -37,7 +37,7 @@ var pl = {
|
|
|
37
37
|
"neptune.Summary.statusDone": "Czynność wykonana",
|
|
38
38
|
"neptune.Summary.statusNotDone": "Czynność do wykonania",
|
|
39
39
|
"neptune.Summary.statusPending": "Czynność oczekująca",
|
|
40
|
-
"neptune.Table.actionHeader": "
|
|
40
|
+
"neptune.Table.actionHeader": "Działanie",
|
|
41
41
|
"neptune.Table.emptyData": "Nie znaleziono wyników",
|
|
42
42
|
"neptune.Table.loaded": "Wczytano dane tabeli",
|
|
43
43
|
"neptune.Table.loading": "Wczytywanie danych tabeli",
|
package/build/i18n/pl.json.mjs
CHANGED
|
@@ -35,7 +35,7 @@ var pl = {
|
|
|
35
35
|
"neptune.Summary.statusDone": "Czynność wykonana",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Czynność do wykonania",
|
|
37
37
|
"neptune.Summary.statusPending": "Czynność oczekująca",
|
|
38
|
-
"neptune.Table.actionHeader": "
|
|
38
|
+
"neptune.Table.actionHeader": "Działanie",
|
|
39
39
|
"neptune.Table.emptyData": "Nie znaleziono wyników",
|
|
40
40
|
"neptune.Table.loaded": "Wczytano dane tabeli",
|
|
41
41
|
"neptune.Table.loading": "Wczytywanie danych tabeli",
|
package/build/i18n/pt.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Pronto",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Não iniciado",
|
|
37
37
|
"neptune.Summary.statusPending": "Pendente",
|
|
38
|
+
"neptune.Table.actionHeader": "Ação",
|
|
39
|
+
"neptune.Table.emptyData": "Nenhum resultado encontrado",
|
|
40
|
+
"neptune.Table.loaded": "Os dados da tabela foram carregados",
|
|
41
|
+
"neptune.Table.loading": "Os dados da tabela estão sendo carregados",
|
|
42
|
+
"neptune.Table.refreshPage": "Atualizar página",
|
|
38
43
|
"neptune.Upload.csButtonText": "Enviar outro documento?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Falha no envio. Por favor, tente novamente",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Envio concluído!",
|
package/build/i18n/pt.json.js
CHANGED
|
@@ -37,6 +37,11 @@ var pt = {
|
|
|
37
37
|
"neptune.Summary.statusDone": "Pronto",
|
|
38
38
|
"neptune.Summary.statusNotDone": "Não iniciado",
|
|
39
39
|
"neptune.Summary.statusPending": "Pendente",
|
|
40
|
+
"neptune.Table.actionHeader": "Ação",
|
|
41
|
+
"neptune.Table.emptyData": "Nenhum resultado encontrado",
|
|
42
|
+
"neptune.Table.loaded": "Os dados da tabela foram carregados",
|
|
43
|
+
"neptune.Table.loading": "Os dados da tabela estão sendo carregados",
|
|
44
|
+
"neptune.Table.refreshPage": "Atualizar página",
|
|
40
45
|
"neptune.Upload.csButtonText": "Enviar outro documento?",
|
|
41
46
|
"neptune.Upload.csFailureText": "Falha no envio. Por favor, tente novamente",
|
|
42
47
|
"neptune.Upload.csSuccessText": "Envio concluído!",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pt.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/pt.json.mjs
CHANGED
|
@@ -35,6 +35,11 @@ var pt = {
|
|
|
35
35
|
"neptune.Summary.statusDone": "Pronto",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Não iniciado",
|
|
37
37
|
"neptune.Summary.statusPending": "Pendente",
|
|
38
|
+
"neptune.Table.actionHeader": "Ação",
|
|
39
|
+
"neptune.Table.emptyData": "Nenhum resultado encontrado",
|
|
40
|
+
"neptune.Table.loaded": "Os dados da tabela foram carregados",
|
|
41
|
+
"neptune.Table.loading": "Os dados da tabela estão sendo carregados",
|
|
42
|
+
"neptune.Table.refreshPage": "Atualizar página",
|
|
38
43
|
"neptune.Upload.csButtonText": "Enviar outro documento?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Falha no envio. Por favor, tente novamente",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Envio concluído!",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pt.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/ru.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Этап завершен",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Этап к выполнению",
|
|
37
37
|
"neptune.Summary.statusPending": "Этап в процессе",
|
|
38
|
+
"neptune.Table.actionHeader": "Действие",
|
|
39
|
+
"neptune.Table.emptyData": "Ничего не найдено",
|
|
40
|
+
"neptune.Table.loaded": "Данные таблицы загружены",
|
|
41
|
+
"neptune.Table.loading": "Данные таблицы загружаются",
|
|
42
|
+
"neptune.Table.refreshPage": "Обновить страницу",
|
|
38
43
|
"neptune.Upload.csButtonText": "Загрузить другой файл?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Загрузка не удалась. Пожалуйста, попробуйте снова",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Загрузка завершена!",
|
package/build/i18n/ru.json.js
CHANGED
|
@@ -37,6 +37,11 @@ var ru = {
|
|
|
37
37
|
"neptune.Summary.statusDone": "Этап завершен",
|
|
38
38
|
"neptune.Summary.statusNotDone": "Этап к выполнению",
|
|
39
39
|
"neptune.Summary.statusPending": "Этап в процессе",
|
|
40
|
+
"neptune.Table.actionHeader": "Действие",
|
|
41
|
+
"neptune.Table.emptyData": "Ничего не найдено",
|
|
42
|
+
"neptune.Table.loaded": "Данные таблицы загружены",
|
|
43
|
+
"neptune.Table.loading": "Данные таблицы загружаются",
|
|
44
|
+
"neptune.Table.refreshPage": "Обновить страницу",
|
|
40
45
|
"neptune.Upload.csButtonText": "Загрузить другой файл?",
|
|
41
46
|
"neptune.Upload.csFailureText": "Загрузка не удалась. Пожалуйста, попробуйте снова",
|
|
42
47
|
"neptune.Upload.csSuccessText": "Загрузка завершена!",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ru.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ru.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/ru.json.mjs
CHANGED
|
@@ -35,6 +35,11 @@ var ru = {
|
|
|
35
35
|
"neptune.Summary.statusDone": "Этап завершен",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Этап к выполнению",
|
|
37
37
|
"neptune.Summary.statusPending": "Этап в процессе",
|
|
38
|
+
"neptune.Table.actionHeader": "Действие",
|
|
39
|
+
"neptune.Table.emptyData": "Ничего не найдено",
|
|
40
|
+
"neptune.Table.loaded": "Данные таблицы загружены",
|
|
41
|
+
"neptune.Table.loading": "Данные таблицы загружаются",
|
|
42
|
+
"neptune.Table.refreshPage": "Обновить страницу",
|
|
38
43
|
"neptune.Upload.csButtonText": "Загрузить другой файл?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Загрузка не удалась. Пожалуйста, попробуйте снова",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Загрузка завершена!",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ru.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ru.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/tr.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Tamamlanan aşama",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Yapılacak",
|
|
37
37
|
"neptune.Summary.statusPending": "Bekliyor",
|
|
38
|
+
"neptune.Table.actionHeader": "Eylem",
|
|
39
|
+
"neptune.Table.emptyData": "Sonuç bulunamadı",
|
|
40
|
+
"neptune.Table.loaded": "Tablo verileri yüklendi",
|
|
41
|
+
"neptune.Table.loading": "Tablo verileri yükleniyor",
|
|
42
|
+
"neptune.Table.refreshPage": "Sayfayı yenile",
|
|
38
43
|
"neptune.Upload.csButtonText": "Başka bir dosya yükleyin?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Yükleme başarısız. Lütfen yine deneyin",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Yükleme tamamlandı!",
|
package/build/i18n/tr.json.js
CHANGED
|
@@ -37,6 +37,11 @@ var tr = {
|
|
|
37
37
|
"neptune.Summary.statusDone": "Tamamlanan aşama",
|
|
38
38
|
"neptune.Summary.statusNotDone": "Yapılacak",
|
|
39
39
|
"neptune.Summary.statusPending": "Bekliyor",
|
|
40
|
+
"neptune.Table.actionHeader": "Eylem",
|
|
41
|
+
"neptune.Table.emptyData": "Sonuç bulunamadı",
|
|
42
|
+
"neptune.Table.loaded": "Tablo verileri yüklendi",
|
|
43
|
+
"neptune.Table.loading": "Tablo verileri yükleniyor",
|
|
44
|
+
"neptune.Table.refreshPage": "Sayfayı yenile",
|
|
40
45
|
"neptune.Upload.csButtonText": "Başka bir dosya yükleyin?",
|
|
41
46
|
"neptune.Upload.csFailureText": "Yükleme başarısız. Lütfen yine deneyin",
|
|
42
47
|
"neptune.Upload.csSuccessText": "Yükleme tamamlandı!",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tr.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tr.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/i18n/tr.json.mjs
CHANGED
|
@@ -35,6 +35,11 @@ var tr = {
|
|
|
35
35
|
"neptune.Summary.statusDone": "Tamamlanan aşama",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Yapılacak",
|
|
37
37
|
"neptune.Summary.statusPending": "Bekliyor",
|
|
38
|
+
"neptune.Table.actionHeader": "Eylem",
|
|
39
|
+
"neptune.Table.emptyData": "Sonuç bulunamadı",
|
|
40
|
+
"neptune.Table.loaded": "Tablo verileri yüklendi",
|
|
41
|
+
"neptune.Table.loading": "Tablo verileri yükleniyor",
|
|
42
|
+
"neptune.Table.refreshPage": "Sayfayı yenile",
|
|
38
43
|
"neptune.Upload.csButtonText": "Başka bir dosya yükleyin?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Yükleme başarısız. Lütfen yine deneyin",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Yükleme tamamlandı!",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tr.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tr.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/build/index.js
CHANGED
|
@@ -153,7 +153,7 @@ Object.defineProperty(exports, "AvatarType", {
|
|
|
153
153
|
});
|
|
154
154
|
exports.Avatar = Avatar;
|
|
155
155
|
exports.AvatarView = AvatarView;
|
|
156
|
-
exports.
|
|
156
|
+
exports.AvatarLayout = AvatarLayout;
|
|
157
157
|
exports.AvatarWrapper = AvatarWrapper;
|
|
158
158
|
exports.Badge = Badge;
|
|
159
159
|
exports.StatusIcon = StatusIcon;
|
package/build/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export { default as Alert, AlertArrowPosition } from './alert/Alert.mjs';
|
|
|
7
7
|
export { AvatarType } from './avatar/avatarTypes.mjs';
|
|
8
8
|
export { default as Avatar } from './avatar/Avatar.mjs';
|
|
9
9
|
export { default as AvatarView } from './avatarView/AvatarView.mjs';
|
|
10
|
-
export { default as
|
|
10
|
+
export { default as AvatarLayout } from './avatarLayout/AvatarLayout.mjs';
|
|
11
11
|
export { default as AvatarWrapper } from './avatarWrapper/AvatarWrapper.mjs';
|
|
12
12
|
export { default as Badge } from './badge/Badge.mjs';
|
|
13
13
|
export { default as StatusIcon } from './statusIcon/StatusIcon.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BadgeProps, BadgeAssetsProps } from '../badge';
|
|
2
2
|
import { HTMLAttributes } from 'react';
|
|
3
3
|
import { ProfileTypeBusiness, ProfileTypePersonal } from '../common';
|
|
4
|
-
export type AvatarViewBadgeProps = BadgeAssetsProps & Pick<BadgeProps, 'aria-label'> & {
|
|
4
|
+
export type AvatarViewBadgeProps = Omit<BadgeAssetsProps, 'size'> & Pick<BadgeProps, 'aria-label'> & {
|
|
5
5
|
/**
|
|
6
6
|
* Custom badge content
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarView.d.ts","sourceRoot":"","sources":["../../../src/avatarView/AvatarView.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAe,UAAU,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5E,OAAO,EAAE,cAAc,EAA+B,MAAM,OAAO,CAAC;AAEpE,OAAO,EAA4B,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAM/F,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,
|
|
1
|
+
{"version":3,"file":"AvatarView.d.ts","sourceRoot":"","sources":["../../../src/avatarView/AvatarView.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAe,UAAU,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5E,OAAO,EAAE,cAAc,EAA+B,MAAM,OAAO,CAAC;AAEpE,OAAO,EAA4B,mBAAmB,EAAE,mBAAmB,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BAAiB,CAAC;AAE5D,QAAA,MAAM,MAAM,uGAsEX,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export { default as SelectOption } from './selectOption';
|
|
|
78
78
|
export { default as Alert } from './alert';
|
|
79
79
|
export { default as Avatar } from './avatar';
|
|
80
80
|
export { default as AvatarView } from './avatarView';
|
|
81
|
-
export { default as
|
|
81
|
+
export { default as AvatarLayout } from './avatarLayout';
|
|
82
82
|
export { default as AvatarWrapper } from './avatarWrapper';
|
|
83
83
|
export { default as Badge } from './badge';
|
|
84
84
|
export { default as Body } from './body';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@transferwise/components",
|
|
3
|
-
"version": "46.83.
|
|
3
|
+
"version": "46.83.3",
|
|
4
4
|
"description": "Neptune React components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"rollup-preserve-directives": "^1.1.1",
|
|
93
93
|
"storybook": "^8.2.2",
|
|
94
94
|
"@transferwise/less-config": "3.1.0",
|
|
95
|
-
"@
|
|
96
|
-
"@
|
|
95
|
+
"@wise/components-theming": "1.6.1",
|
|
96
|
+
"@transferwise/neptune-css": "14.20.1"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"@transferwise/icons": "^3.13.1",
|
|
@@ -18,11 +18,13 @@ exports[`AccordionItem open / close renders an item closed 1`] = `
|
|
|
18
18
|
<div
|
|
19
19
|
class="media-body"
|
|
20
20
|
>
|
|
21
|
-
<
|
|
21
|
+
<div
|
|
22
|
+
aria-level="4"
|
|
22
23
|
class="np-text-body-large-bold text-primary np-option__title"
|
|
24
|
+
role="heading"
|
|
23
25
|
>
|
|
24
26
|
This is title number one
|
|
25
|
-
</
|
|
27
|
+
</div>
|
|
26
28
|
</div>
|
|
27
29
|
<div
|
|
28
30
|
class="media-right"
|
|
@@ -70,11 +72,13 @@ exports[`AccordionItem open / close renders an item open 1`] = `
|
|
|
70
72
|
<div
|
|
71
73
|
class="media-body"
|
|
72
74
|
>
|
|
73
|
-
<
|
|
75
|
+
<div
|
|
76
|
+
aria-level="4"
|
|
74
77
|
class="np-text-body-large-bold text-primary np-option__title"
|
|
78
|
+
role="heading"
|
|
75
79
|
>
|
|
76
80
|
This is title number one
|
|
77
|
-
</
|
|
81
|
+
</div>
|
|
78
82
|
</div>
|
|
79
83
|
<div
|
|
80
84
|
class="media-right"
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
Profile as PersonalProfileIcon,
|
|
11
11
|
} from '@transferwise/icons';
|
|
12
12
|
|
|
13
|
-
export type AvatarViewBadgeProps = BadgeAssetsProps &
|
|
13
|
+
export type AvatarViewBadgeProps = Omit<BadgeAssetsProps, 'size'> &
|
|
14
14
|
Pick<BadgeProps, 'aria-label'> & {
|
|
15
15
|
/**
|
|
16
16
|
* Custom badge content
|
package/src/card/Card.spec.tsx
CHANGED
|
@@ -59,7 +59,9 @@ describe('Card', () => {
|
|
|
59
59
|
renderCard(onClick);
|
|
60
60
|
|
|
61
61
|
expect(screen.queryByRole('button')).not.toBeInTheDocument();
|
|
62
|
-
expect(screen.getByText(defaultProps.title).tagName).toBe('
|
|
62
|
+
expect(screen.getByText(defaultProps.title).tagName).toBe('DIV');
|
|
63
|
+
expect(screen.getByText(defaultProps.title)).toHaveAttribute('role', 'heading');
|
|
64
|
+
expect(screen.getByText(defaultProps.title)).toHaveAttribute('aria-level', '4');
|
|
63
65
|
});
|
|
64
66
|
|
|
65
67
|
it('has an inactive class', () => {
|
|
@@ -86,7 +86,17 @@ const Option = forwardRef<ReferenceType, OptionProps>(
|
|
|
86
86
|
</div>
|
|
87
87
|
)}
|
|
88
88
|
<div className="media-body">
|
|
89
|
-
|
|
89
|
+
{/* @ts-expect-error div can have role and aria-lavel props */}
|
|
90
|
+
<Body
|
|
91
|
+
type="body-large-bold"
|
|
92
|
+
// for a11y this needs to be a header but for SEO it shouldn't be `h*` tag
|
|
93
|
+
// so we enable header semantics via `role` and `aria-level` attrs
|
|
94
|
+
role="heading"
|
|
95
|
+
aria-level="4"
|
|
96
|
+
className="text-primary np-option__title"
|
|
97
|
+
>
|
|
98
|
+
{title}
|
|
99
|
+
</Body>
|
|
90
100
|
{content && <Body className="d-block np-option__body">{content}</Body>}
|
|
91
101
|
</div>
|
|
92
102
|
<div className="media-right">{button}</div>
|
package/src/i18n/es.json
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"neptune.Summary.statusNotDone": "Apartado a completar",
|
|
37
37
|
"neptune.Summary.statusPending": "Apartado pendiente",
|
|
38
38
|
"neptune.Table.actionHeader": "Acción",
|
|
39
|
-
"neptune.Table.emptyData": "
|
|
39
|
+
"neptune.Table.emptyData": "Ningún resultado",
|
|
40
40
|
"neptune.Table.loaded": "Los datos de la tabla se han cargado",
|
|
41
41
|
"neptune.Table.loading": "Los datos de la tabla se están cargando",
|
|
42
42
|
"neptune.Table.refreshPage": "Actualizar página",
|
package/src/i18n/fr.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"neptune.DateLookup.year": "année",
|
|
19
19
|
"neptune.FlowNavigation.back": "revenir à l'étape précédente",
|
|
20
20
|
"neptune.Info.ariaLabel": "Plus d'informations",
|
|
21
|
-
"neptune.Label.optional": "(
|
|
21
|
+
"neptune.Label.optional": "(facultatif)",
|
|
22
22
|
"neptune.Link.opensInNewTab": "(ouvre dans un nouvel onglet)",
|
|
23
23
|
"neptune.MoneyInput.Select.placeholder": "Sélectionner une option...",
|
|
24
24
|
"neptune.MoneyInput.Select.selectCurrencyLabel": "Sélectionnez une devise",
|
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Validé",
|
|
36
36
|
"neptune.Summary.statusNotDone": "À compléter",
|
|
37
37
|
"neptune.Summary.statusPending": "En attente",
|
|
38
|
+
"neptune.Table.actionHeader": "Action",
|
|
39
|
+
"neptune.Table.emptyData": "Aucun résultat trouvé",
|
|
40
|
+
"neptune.Table.loaded": "Les données du tableau ont été chargées",
|
|
41
|
+
"neptune.Table.loading": "Chargement des données du tableau",
|
|
42
|
+
"neptune.Table.refreshPage": "Rafraichir la page",
|
|
38
43
|
"neptune.Upload.csButtonText": "Envoyer un autre fichier ?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Échec du téléchargement. Veuillez réessayer",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Téléchargement terminé !",
|
package/src/i18n/hu.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Kész",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Hátravan",
|
|
37
37
|
"neptune.Summary.statusPending": "Függőben",
|
|
38
|
+
"neptune.Table.actionHeader": "Művelet",
|
|
39
|
+
"neptune.Table.emptyData": "Nincs találat",
|
|
40
|
+
"neptune.Table.loaded": "Táblázatadatok betöltve",
|
|
41
|
+
"neptune.Table.loading": "Táblázatadatok betöltése folyamatban",
|
|
42
|
+
"neptune.Table.refreshPage": "Oldal frissítése",
|
|
38
43
|
"neptune.Upload.csButtonText": "Másik fájl feltöltése?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Feltöltés sikertelen. Kérünk, próbáld újra",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Feltöltés sikeres",
|
package/src/i18n/id.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Item selesai",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Item yang harus dilakukan",
|
|
37
37
|
"neptune.Summary.statusPending": "Item tertunda",
|
|
38
|
+
"neptune.Table.actionHeader": "Tindakan",
|
|
39
|
+
"neptune.Table.emptyData": "Hasil tidak ditemukan",
|
|
40
|
+
"neptune.Table.loaded": "Data tabel telah dimuat",
|
|
41
|
+
"neptune.Table.loading": "Data tabel sedang dimuat",
|
|
42
|
+
"neptune.Table.refreshPage": "Muat ulang halaman",
|
|
38
43
|
"neptune.Upload.csButtonText": "Unggah file lainnya?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Unggahan gagal. Silakan coba lagi",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Pengunggahan selesai!",
|
package/src/i18n/it.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Completato",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Da completare",
|
|
37
37
|
"neptune.Summary.statusPending": "In corso",
|
|
38
|
+
"neptune.Table.actionHeader": "Azione",
|
|
39
|
+
"neptune.Table.emptyData": "Nessun risultato trovato",
|
|
40
|
+
"neptune.Table.loaded": "I dati della tabella sono stati caricati",
|
|
41
|
+
"neptune.Table.loading": "I dati della tabella sono in fase di caricamento",
|
|
42
|
+
"neptune.Table.refreshPage": "Aggiorna la pagina",
|
|
38
43
|
"neptune.Upload.csButtonText": "Carica un altro documento?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Caricamento fallito. Per favore riprova",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Caricamento completato!",
|
package/src/i18n/ja.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "完了",
|
|
36
36
|
"neptune.Summary.statusNotDone": "未完了",
|
|
37
37
|
"neptune.Summary.statusPending": "保留中",
|
|
38
|
+
"neptune.Table.actionHeader": "アクション",
|
|
39
|
+
"neptune.Table.emptyData": "結果が見つかりませんでした",
|
|
40
|
+
"neptune.Table.loaded": "テーブルデータが読み込まれました",
|
|
41
|
+
"neptune.Table.loading": "テーブルデータを読み込み中です",
|
|
42
|
+
"neptune.Table.refreshPage": "ページを更新する",
|
|
38
43
|
"neptune.Upload.csButtonText": "別のファイルをアップロードしますか?",
|
|
39
44
|
"neptune.Upload.csFailureText": "アップロードに失敗しました。もう一度やり直してください。",
|
|
40
45
|
"neptune.Upload.csSuccessText": "アップロードが完了しました。",
|
package/src/i18n/pl.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Czynność wykonana",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Czynność do wykonania",
|
|
37
37
|
"neptune.Summary.statusPending": "Czynność oczekująca",
|
|
38
|
-
"neptune.Table.actionHeader": "
|
|
38
|
+
"neptune.Table.actionHeader": "Działanie",
|
|
39
39
|
"neptune.Table.emptyData": "Nie znaleziono wyników",
|
|
40
40
|
"neptune.Table.loaded": "Wczytano dane tabeli",
|
|
41
41
|
"neptune.Table.loading": "Wczytywanie danych tabeli",
|
package/src/i18n/pt.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Pronto",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Não iniciado",
|
|
37
37
|
"neptune.Summary.statusPending": "Pendente",
|
|
38
|
+
"neptune.Table.actionHeader": "Ação",
|
|
39
|
+
"neptune.Table.emptyData": "Nenhum resultado encontrado",
|
|
40
|
+
"neptune.Table.loaded": "Os dados da tabela foram carregados",
|
|
41
|
+
"neptune.Table.loading": "Os dados da tabela estão sendo carregados",
|
|
42
|
+
"neptune.Table.refreshPage": "Atualizar página",
|
|
38
43
|
"neptune.Upload.csButtonText": "Enviar outro documento?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Falha no envio. Por favor, tente novamente",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Envio concluído!",
|
package/src/i18n/ru.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Этап завершен",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Этап к выполнению",
|
|
37
37
|
"neptune.Summary.statusPending": "Этап в процессе",
|
|
38
|
+
"neptune.Table.actionHeader": "Действие",
|
|
39
|
+
"neptune.Table.emptyData": "Ничего не найдено",
|
|
40
|
+
"neptune.Table.loaded": "Данные таблицы загружены",
|
|
41
|
+
"neptune.Table.loading": "Данные таблицы загружаются",
|
|
42
|
+
"neptune.Table.refreshPage": "Обновить страницу",
|
|
38
43
|
"neptune.Upload.csButtonText": "Загрузить другой файл?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Загрузка не удалась. Пожалуйста, попробуйте снова",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Загрузка завершена!",
|
package/src/i18n/tr.json
CHANGED
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"neptune.Summary.statusDone": "Tamamlanan aşama",
|
|
36
36
|
"neptune.Summary.statusNotDone": "Yapılacak",
|
|
37
37
|
"neptune.Summary.statusPending": "Bekliyor",
|
|
38
|
+
"neptune.Table.actionHeader": "Eylem",
|
|
39
|
+
"neptune.Table.emptyData": "Sonuç bulunamadı",
|
|
40
|
+
"neptune.Table.loaded": "Tablo verileri yüklendi",
|
|
41
|
+
"neptune.Table.loading": "Tablo verileri yükleniyor",
|
|
42
|
+
"neptune.Table.refreshPage": "Sayfayı yenile",
|
|
38
43
|
"neptune.Upload.csButtonText": "Başka bir dosya yükleyin?",
|
|
39
44
|
"neptune.Upload.csFailureText": "Yükleme başarısız. Lütfen yine deneyin",
|
|
40
45
|
"neptune.Upload.csSuccessText": "Yükleme tamamlandı!",
|
package/src/index.ts
CHANGED
|
@@ -106,7 +106,7 @@ export { default as SelectOption } from './selectOption';
|
|
|
106
106
|
export { default as Alert } from './alert';
|
|
107
107
|
export { default as Avatar } from './avatar';
|
|
108
108
|
export { default as AvatarView } from './avatarView';
|
|
109
|
-
export { default as
|
|
109
|
+
export { default as AvatarLayout } from './avatarLayout';
|
|
110
110
|
export { default as AvatarWrapper } from './avatarWrapper';
|
|
111
111
|
export { default as Badge } from './badge';
|
|
112
112
|
export { default as Body } from './body';
|