@arc-ui/community-components 11.21.0
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/LICENSE +21 -0
- package/dist/CopyLead/CopyLead.cjs.js +160 -0
- package/dist/CopyLead/CopyLead.esm.js +134 -0
- package/dist/CopyLead/package.json +7 -0
- package/dist/FeaturePost/FeaturePost.cjs.js +82 -0
- package/dist/FeaturePost/FeaturePost.esm.js +74 -0
- package/dist/FeaturePost/package.json +7 -0
- package/dist/_shared/cjs/index-8f36002b.js +119 -0
- package/dist/_shared/esm/index-a6133951.js +113 -0
- package/dist/index.es.js +310 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +337 -0
- package/dist/index.js.map +1 -0
- package/dist/styles.css +1 -0
- package/dist/types/components/CopyLead/CopyLead.d.ts +38 -0
- package/dist/types/components/CopyLead/components/Button/Button.d.ts +3 -0
- package/dist/types/components/CopyLead/components/Button/index.d.ts +1 -0
- package/dist/types/components/CopyLead/components/Column/Column.d.ts +6 -0
- package/dist/types/components/CopyLead/components/Column/index.d.ts +1 -0
- package/dist/types/components/CopyLead/components/Container/Container.d.ts +9 -0
- package/dist/types/components/CopyLead/components/Container/index.d.ts +1 -0
- package/dist/types/components/CopyLead/components/IconList/IconList.d.ts +8 -0
- package/dist/types/components/CopyLead/components/IconList/index.d.ts +1 -0
- package/dist/types/components/CopyLead/components/Image/Image.d.ts +3 -0
- package/dist/types/components/CopyLead/components/Image/index.d.ts +1 -0
- package/dist/types/components/CopyLead/components/MediaContent/MediaContent.d.ts +7 -0
- package/dist/types/components/CopyLead/components/MediaContent/index.d.ts +1 -0
- package/dist/types/components/CopyLead/index.d.ts +1 -0
- package/dist/types/components/CopyLead/templates/Content/Content.d.ts +10 -0
- package/dist/types/components/CopyLead/templates/Content/index.d.ts +1 -0
- package/dist/types/components/CopyLead/templates/Media/Media.d.ts +14 -0
- package/dist/types/components/CopyLead/templates/Media/index.d.ts +1 -0
- package/dist/types/components/CopyLead/types/copy-lead-button.d.ts +2 -0
- package/dist/types/components/CopyLead/types/copy-lead-image.d.ts +4 -0
- package/dist/types/components/CopyLead/types/copy-lead-list-item.d.ts +6 -0
- package/dist/types/components/CopyLead/types/copy-lead-transcript-link.d.ts +6 -0
- package/dist/types/components/CopyLead/types/index.d.ts +4 -0
- package/dist/types/components/FeaturePost/FeaturePost.d.ts +15 -0
- package/dist/types/components/FeaturePost/components/Image/Image.d.ts +3 -0
- package/dist/types/components/FeaturePost/components/Image/index.d.ts +1 -0
- package/dist/types/components/FeaturePost/index.d.ts +1 -0
- package/dist/types/components/FeaturePost/types/feature-post-app-button-footer.d.ts +6 -0
- package/dist/types/components/FeaturePost/types/feature-post-cta-footer.d.ts +11 -0
- package/dist/types/components/FeaturePost/types/feature-post-image.d.ts +4 -0
- package/dist/types/components/FeaturePost/types/index.d.ts +3 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +97 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Image } from "./Image";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FeaturePost } from "./FeaturePost";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type AvatarProps } from "@arc-ui/components/dist/types/components/Avatar/Avatar";
|
|
2
|
+
import { type ButtonProps } from "@arc-ui/components/dist/types/components/Button/Button";
|
|
3
|
+
export interface FeaturePostCtaFooter {
|
|
4
|
+
type: "cta";
|
|
5
|
+
author?: {
|
|
6
|
+
name: string;
|
|
7
|
+
title: string;
|
|
8
|
+
avatar?: Omit<AvatarProps, "size">;
|
|
9
|
+
};
|
|
10
|
+
button: Pick<ButtonProps, "label" | "onClick" | "href" | "target" | "ariaLabel">;
|
|
11
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ImageSourceProps, type ImageProps as ArcImageProps } from "@arc-ui/components/dist/types/components/Image/Image";
|
|
2
|
+
export interface FeaturePostImage extends Pick<ArcImageProps, "src" | "alt" | "loading" | "sizes" | "srcSet" | "width" | "height" | "fadeOnLoad"> {
|
|
3
|
+
sources?: Pick<ImageSourceProps, "media" | "sizes" | "srcSet">[];
|
|
4
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components";
|
package/package.json
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@arc-ui/community-components",
|
|
3
|
+
"version": "11.21.0",
|
|
4
|
+
"homepage": "https://ui.digital-ent-int.bt.com",
|
|
5
|
+
"author": "BT Business Digital UI Team <ui-digital-ent-int@bt.com>",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.es.js",
|
|
8
|
+
"types": "./dist/types/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"@arc-ui/components": "^11.0.0",
|
|
17
|
+
"@arc-ui/theme-bt-enterprise": "^11.0.0",
|
|
18
|
+
"@arc-ui/theme-bt-business": "^11.0.0",
|
|
19
|
+
"@arc-ui/theme-ee": "^11.0.0",
|
|
20
|
+
"react": "^18.0.0",
|
|
21
|
+
"react-dom": "^18.0.0"
|
|
22
|
+
},
|
|
23
|
+
"peerDependenciesMeta": {
|
|
24
|
+
"@arc-ui/theme-bt-enterprise": {
|
|
25
|
+
"optional": true
|
|
26
|
+
},
|
|
27
|
+
"@arc-ui/theme-bt-business": {
|
|
28
|
+
"optional": true
|
|
29
|
+
},
|
|
30
|
+
"@arc-ui/theme-ee": {
|
|
31
|
+
"optional": true
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@chromatic-com/storybook": "^1.3.3",
|
|
36
|
+
"@cypress/code-coverage": "^3.12.28",
|
|
37
|
+
"@rollup/plugin-commonjs": "^19.0.0",
|
|
38
|
+
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
39
|
+
"@rollup/plugin-typescript": "^8.2.1",
|
|
40
|
+
"@storybook/addon-essentials": "^8.1.6",
|
|
41
|
+
"@storybook/addon-interactions": "^8.1.6",
|
|
42
|
+
"@storybook/addon-links": "^8.1.6",
|
|
43
|
+
"@storybook/addon-themes": "^7.6.16",
|
|
44
|
+
"@storybook/blocks": "^8.1.6",
|
|
45
|
+
"@storybook/manager-api": "^8.1.6",
|
|
46
|
+
"@storybook/react": "^8.1.6",
|
|
47
|
+
"@storybook/react-vite": "^8.1.6",
|
|
48
|
+
"@storybook/test": "^8.1.6",
|
|
49
|
+
"@storybook/theming": "^8.1.6",
|
|
50
|
+
"@testing-library/cypress": "^10.0.1",
|
|
51
|
+
"@types/node": "^12.20.55",
|
|
52
|
+
"@types/react": "18.2.0",
|
|
53
|
+
"@types/react-dom": "18.2.7",
|
|
54
|
+
"classnames": "^2.2.6",
|
|
55
|
+
"cypress": "^13.3.0",
|
|
56
|
+
"postcss": "^8.0.0",
|
|
57
|
+
"postcss-preset-env": "^7.0.0",
|
|
58
|
+
"react": "^18.0.0",
|
|
59
|
+
"react-dom": "^18.0.0",
|
|
60
|
+
"react-is": "^18.0.0",
|
|
61
|
+
"react-syntax-highlighter": "15.5.0",
|
|
62
|
+
"rimraf": "3.0.2",
|
|
63
|
+
"rollup": "^2.50.1",
|
|
64
|
+
"rollup-plugin-delete": "^2.0.0",
|
|
65
|
+
"rollup-plugin-generate-package-json": "^3.2.0",
|
|
66
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
67
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
68
|
+
"sass": "^1.75.0",
|
|
69
|
+
"storybook": "8.1.6",
|
|
70
|
+
"tslib": "^2.0.1",
|
|
71
|
+
"typescript": "^4.9.5",
|
|
72
|
+
"vite": "^4.4.5",
|
|
73
|
+
"vite-plugin-istanbul": "^5.0.0",
|
|
74
|
+
"@arc-ui/components": "^12.0.0-beta.3",
|
|
75
|
+
"@arc-ui/theme-bt-enterprise": "^12.0.0-beta.3",
|
|
76
|
+
"@arc-ui/theme-bt-business": "^12.0.0-beta.3",
|
|
77
|
+
"@arc-ui/theme-ee": "^12.0.0-beta.3",
|
|
78
|
+
"@arc-ui/tokens-arc": "^12.0.0-beta.3",
|
|
79
|
+
"@arc-ui/tokens-bt-enterprise": "^12.0.0-beta.3",
|
|
80
|
+
"@arc-ui/icons-bt": "^12.0.0-beta.3",
|
|
81
|
+
"@arc-ui/icons-ee": "^12.0.0-beta.3"
|
|
82
|
+
},
|
|
83
|
+
"scripts": {
|
|
84
|
+
"build": "rimraf dist && rollup -c",
|
|
85
|
+
"storybook": "storybook dev -p 6006",
|
|
86
|
+
"storybook:build": "storybook build --quiet",
|
|
87
|
+
"storybook:quiet": "pnpm run storybook --quiet",
|
|
88
|
+
"build-storybook": "storybook build",
|
|
89
|
+
"coverage:summary": "pnpm dlx nyc report --reporter=text-summary",
|
|
90
|
+
"coverage:files": "pnpm dlx nyc report --reporter=text",
|
|
91
|
+
"coverage:check": "pnpm dlx nyc report --check-coverage --lines 85 --functions 85 --branches 85 --statements 85",
|
|
92
|
+
"test:components": "cypress open --component",
|
|
93
|
+
"test:components:ci": "cypress run --component --browser chrome",
|
|
94
|
+
"test:components:pipeline": "pnpm run test:components:ci && pnpm run coverage:check",
|
|
95
|
+
"test:components:coverage": "pnpm run test:components:ci && pnpm run coverage:files"
|
|
96
|
+
}
|
|
97
|
+
}
|