@7shifts/sous-chef 3.41.1 → 3.42.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/dist/index.css +325 -208
- package/dist/index.d.ts +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/lists/Accordion/Accordion.d.ts +12 -0
- package/dist/lists/Accordion/AccordionItem/AccordionItem.d.ts +11 -0
- package/dist/lists/Accordion/AccordionItem/index.d.ts +1 -0
- package/dist/lists/Accordion/index.d.ts +1 -0
- package/package.json +10 -4
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import AccordionItem from './AccordionItem';
|
|
3
|
+
type AccordionItem = {
|
|
4
|
+
title: string;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
id?: string;
|
|
7
|
+
};
|
|
8
|
+
type Props = {
|
|
9
|
+
items: AccordionItem[];
|
|
10
|
+
};
|
|
11
|
+
declare const Accordion: (props: Props) => React.JSX.Element | null;
|
|
12
|
+
export default Accordion;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
type Props = {
|
|
4
|
+
title: string;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
id: string;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
handleAccordionItemOpen: (id: string | null) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const AccordionItem: (props: Props) => React.JSX.Element;
|
|
11
|
+
export default AccordionItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AccordionItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Accordion';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@7shifts/sous-chef",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.42.0",
|
|
4
4
|
"description": "7shifts component library",
|
|
5
5
|
"author": "7shifts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"test": "run-s test:unit test:lint test:build",
|
|
24
24
|
"test:build": "run-s build",
|
|
25
25
|
"test:lint": "eslint --ext .ts --ext .tsx .",
|
|
26
|
-
"test:unit": "
|
|
27
|
-
"test:unit:coverage": "
|
|
28
|
-
"test:watch": "
|
|
26
|
+
"test:unit": "jest --runInBand",
|
|
27
|
+
"test:unit:coverage": "jest --coverage --coveragePathIgnorePatterns .stories.tsx index.ts icon-typescript-template.js types.ts",
|
|
28
|
+
"test:watch": "jest --watch",
|
|
29
29
|
"test:visual": "chromatic --project-token=9226d55e4d56 --exit-zero-on-changes --build-script-name=storybook:chromatic:build",
|
|
30
30
|
"start": "yarn storybook",
|
|
31
31
|
"storybook": "storybook dev -p 6006 --loglevel info",
|
|
@@ -40,6 +40,8 @@
|
|
|
40
40
|
"react-router-dom": ">=5.1.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
+
"@babel/core": "^7.24.4",
|
|
44
|
+
"@babel/preset-env": "^7.24.4",
|
|
43
45
|
"@storybook/addon-essentials": "^7.5.3",
|
|
44
46
|
"@storybook/addon-interactions": "^7.5.3",
|
|
45
47
|
"@storybook/addon-links": "^7.5.3",
|
|
@@ -62,6 +64,7 @@
|
|
|
62
64
|
"@typescript-eslint/eslint-plugin": "^6.11.0",
|
|
63
65
|
"@typescript-eslint/parser": "^6.11.0",
|
|
64
66
|
"@vitejs/plugin-react": "^4.0.3",
|
|
67
|
+
"babel-jest": "^29.7.0",
|
|
65
68
|
"chromatic": "^9.0.0",
|
|
66
69
|
"cross-env": "^7.0.3",
|
|
67
70
|
"eslint": "^8.53.0",
|
|
@@ -78,6 +81,8 @@
|
|
|
78
81
|
"eslint-plugin-standard": "^5.0.0",
|
|
79
82
|
"eslint-plugin-storybook": "^0.6.15",
|
|
80
83
|
"formik": "^2.2.6",
|
|
84
|
+
"jest": "^29.7.0",
|
|
85
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
81
86
|
"jest-environment-jsdom-sixteen": "^2.0.0",
|
|
82
87
|
"microbundle-crl": "^0.13.10",
|
|
83
88
|
"npm-run-all": "^4.1.5",
|
|
@@ -88,6 +93,7 @@
|
|
|
88
93
|
"sass": "^1.48.0",
|
|
89
94
|
"source-map-explorer": "^2.5.3",
|
|
90
95
|
"storybook": "^7.5.3",
|
|
96
|
+
"ts-jest": "^29.1.2",
|
|
91
97
|
"typescript": "^5.3.2",
|
|
92
98
|
"vite": "^4.4.5",
|
|
93
99
|
"yup": "^0.32.9"
|