@cypress-design/react-accordion 0.3.0 → 0.4.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/package.json CHANGED
@@ -1,30 +1,32 @@
1
1
  {
2
- "name": "@cypress-design/react-accordion",
3
- "version": "0.3.0",
4
- "files": [
5
- "*"
6
- ],
7
- "typings": "./dist/react/index.d.ts",
8
- "module": "./dist/index.es.mjs",
9
- "main": "./dist/index.umd.js",
10
- "exports": {
11
- ".": {
12
- "import": "./dist/index.es.mjs",
13
- "require": "./dist/index.umd.js"
14
- }
15
- },
16
- "scripts": {
17
- "build": "yarn build:module && yarn build:types",
18
- "build:module": "rollup -c ./rollup.config.mjs",
19
- "build:types": "tsc --project ./tsconfig.build.json"
20
- },
21
- "dependencies": {
22
- "clsx": "*",
23
- "@cypress-design/details-animation": "*",
24
- "@cypress-design/react-icon": "*"
25
- },
26
- "devDependencies": {
27
- "@cypress-design/css": "*"
28
- },
29
- "license": "MIT"
2
+ "name": "@cypress-design/react-accordion",
3
+ "version": "0.4.0",
4
+ "files": [
5
+ "*"
6
+ ],
7
+ "typings": "./dist/index.d.ts",
8
+ "module": "./dist/index.es.mjs",
9
+ "main": "./dist/index.umd.js",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/index.es.mjs",
13
+ "require": "./dist/index.umd.js",
14
+ "types": "./dist/index.d.ts"
15
+ }
16
+ },
17
+ "scripts": {
18
+ "build": "yarn build:module && yarn build:types",
19
+ "build:module": "rollup -c ./rollup.config.mjs",
20
+ "build:types": "tsc --project ./tsconfig.build.json"
21
+ },
22
+ "dependencies": {
23
+ "clsx": "*",
24
+ "@cypress-design/details-animation": "*",
25
+ "@cypress-design/react-icon": "*"
26
+ },
27
+ "devDependencies": {
28
+ "@cypress-design/constants-accordion": "*",
29
+ "@cypress-design/css": "*"
30
+ },
31
+ "license": "MIT"
30
32
  }
@@ -7,7 +7,7 @@
7
7
  "../constants.ts"
8
8
  ],
9
9
  "compilerOptions": {
10
- "outDir": "dist",
11
- "rootDir": "../"
10
+ "sourceRoot": "./",
11
+ "outDir": "dist"
12
12
  }
13
13
  }
@@ -1,53 +0,0 @@
1
- export declare const CssClasses: {
2
- summary: string;
3
- summaryDiv: string;
4
- summaryColor: string;
5
- summaryTitle: string;
6
- summaryTitleColor: string;
7
- summaryDescription: string;
8
- summaryDescriptionColor: string;
9
- icon: string;
10
- separator: string;
11
- chevron: string;
12
- contentWrapper: string;
13
- content: string;
14
- };
15
- export interface AccordionProps {
16
- /**
17
- * Main indigo title.
18
- * > [NOTE] Its color and font can be customized using `titleClassName`.
19
- */
20
- title: string;
21
- /**
22
- * Second line in the heading.
23
- */
24
- description?: string;
25
- /**
26
- * Icon to be displayed on the left of the the heading.
27
- */
28
- icon?: any;
29
- /**
30
- * Should we add a vertical separator between the icon and the text.
31
- */
32
- separator?: boolean;
33
- /**
34
- * Change the font and color of the heading title
35
- */
36
- titleClassName?: string;
37
- /**
38
- * Change the font and color of the heading description
39
- */
40
- descriptionClassName?: string;
41
- /**
42
- * Additional classes to add to the header of the accordion
43
- * > [NOTE] useful to change the background color of the header
44
- */
45
- headingClassName?: string;
46
- /**
47
- * When using content that needs ti be edge to edge,
48
- * removes the content wrapper from the content.
49
- */
50
- fullWidthContent?: boolean;
51
- }
52
- export declare const FIGMA_URL = "https://www.figma.com/file/1WJ3GVQyMV5e7xVxPg3yID/Design-System?node-id=2232%3A3477";
53
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;CActB,CAAA;AAED,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,GAAG,CAAA;IACV;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,eAAO,MAAM,SAAS,wFACiE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAIlD,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAA;IAC9C;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACzB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAC9B,mBAAmB,GAAG,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAwE1D,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA"}
File without changes