@veritone-ce/design-system 1.12.22 → 1.12.23
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/assets/theme.js +70 -70
- package/dist/components/Box/index.js +13 -8
- package/dist/components/Breadcrumbs/breadcrumbs.theme.js +14 -10
- package/dist/components/Breadcrumbs/index.js +9 -9
- package/dist/components/Button/Indicator.js +10 -10
- package/dist/components/Button/button.theme.js +107 -105
- package/dist/components/Button/index.js +26 -18
- package/dist/components/Button/useButtonProps.js +18 -10
- package/dist/components/Checkbox/checkbox.theme.js +21 -17
- package/dist/components/Checkbox/index.js +16 -10
- package/dist/components/CustomSlider/index.js +28 -18
- package/dist/components/Drawer/index.js +13 -8
- package/dist/components/FileUploader/index.js +88 -69
- package/dist/components/FileUploader/useUploadFile.js +148 -51
- package/dist/components/FormControlLabel/index.js +13 -8
- package/dist/components/HomeOutlinedIcon/index.js +13 -8
- package/dist/components/IconGroups/index.js +14 -9
- package/dist/components/IconListItem/index.js +17 -10
- package/dist/components/Input/index.js +16 -10
- package/dist/components/Input/input.theme.js +99 -95
- package/dist/components/LinearProgress/index.js +40 -33
- package/dist/components/LinearProgress/linearProgress.theme.js +17 -13
- package/dist/components/Link/index.js +13 -8
- package/dist/components/List/index.js +13 -8
- package/dist/components/ListItem/index.js +13 -8
- package/dist/components/ListItemButton/index.js +13 -8
- package/dist/components/ListItemText/index.js +13 -8
- package/dist/components/MenuFlyout/constants.js +3 -3
- package/dist/components/MenuFlyout/index.js +21 -13
- package/dist/components/MenuFlyout/menuFlyout.theme.js +47 -39
- package/dist/components/Modal/index.js +20 -13
- package/dist/components/Modal/modal.theme.js +28 -26
- package/dist/components/ModelGridView/index.js +109 -72
- package/dist/components/Panel/index.js +21 -19
- package/dist/components/ProgressIndicator/DefaultProgress.js +16 -10
- package/dist/components/ProgressIndicator/MLProgress.js +16 -10
- package/dist/components/ProgressIndicator/index.js +17 -14
- package/dist/components/RadioButton/RadioButton.theme.js +57 -53
- package/dist/components/RadioButton/index.js +24 -14
- package/dist/components/RadioGroup/index.js +13 -8
- package/dist/components/Select/index.js +48 -33
- package/dist/components/Select/select.theme.js +55 -51
- package/dist/components/StatusChip/constants.js +3 -3
- package/dist/components/StatusChip/index.js +19 -12
- package/dist/components/StatusChip/statusChip.theme.js +33 -29
- package/dist/components/Step/index.js +13 -8
- package/dist/components/StepLabel/index.js +13 -8
- package/dist/components/Stepper/index.js +10 -6
- package/dist/components/Stepper/stepper.theme.js +44 -42
- package/dist/components/Tabs/Badge.js +5 -6
- package/dist/components/Tabs/index.js +42 -23
- package/dist/components/Tabs/tabs.theme.js +32 -28
- package/dist/components/ThemeProvider/index.js +6 -7
- package/dist/components/Toast/index.js +41 -32
- package/dist/components/Typography/index.js +13 -8
- package/dist/components/UtilityRail/index.js +65 -57
- package/dist/components/UtilityRail/mock.js +1 -1
- package/dist/index.js +72 -72
- package/package.json +70 -82
- package/dist/assets/information.svg +0 -3
- package/dist/assets/warning.svg +0 -3
- package/dist/components/Box/__tests__/Box.test.d.ts +0 -1
- package/dist/components/Box/__tests__/Box.test.js +0 -16
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -11
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.js +0 -36
- package/dist/components/Breadcrumbs/__tests__/Breadcrumbs.test.d.ts +0 -1
- package/dist/components/Breadcrumbs/__tests__/Breadcrumbs.test.js +0 -26
- package/dist/components/Button/Button.stories.d.ts +0 -7
- package/dist/components/Button/Button.stories.js +0 -99
- package/dist/components/Button/__tests__/Button.test.d.ts +0 -1
- package/dist/components/Button/__tests__/Button.test.js +0 -59
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -5
- package/dist/components/Checkbox/Checkbox.stories.js +0 -49
- package/dist/components/Checkbox/__tests__/Checkbox.test.d.ts +0 -1
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +0 -15
- package/dist/components/CustomSlider/CustomSlider.stories.d.ts +0 -5
- package/dist/components/CustomSlider/CustomSlider.stories.js +0 -48
- package/dist/components/Drawer/__tests__/Drawer.test.d.ts +0 -1
- package/dist/components/Drawer/__tests__/Drawer.test.js +0 -16
- package/dist/components/FileUploader/FileUploader.stories.d.ts +0 -15
- package/dist/components/FileUploader/FileUploader.stories.js +0 -25
- package/dist/components/FileUploader/__tests__/FileUploader.test.d.ts +0 -1
- package/dist/components/FileUploader/__tests__/FileUploader.test.js +0 -226
- package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.d.ts +0 -1
- package/dist/components/FormControlLabel/__tests__/FormControlLabel.test.js +0 -19
- package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.d.ts +0 -7
- package/dist/components/HomeOutlinedIcon/HomeOutlinedIcon.stories.js +0 -20
- package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.d.ts +0 -1
- package/dist/components/HomeOutlinedIcon/__tests__/HomeOutlinedIcon.test.js +0 -15
- package/dist/components/IconGroups/IconGroups.stories.d.ts +0 -7
- package/dist/components/IconGroups/IconGroups.stories.js +0 -20
- package/dist/components/IconGroups/__tests__/IconGroups.test.d.ts +0 -1
- package/dist/components/IconGroups/__tests__/IconGroups.test.js +0 -15
- package/dist/components/IconListItem/__tests__/IconListItem.test.d.ts +0 -1
- package/dist/components/IconListItem/__tests__/IconListItem.test.js +0 -15
- package/dist/components/Input/Input.stories.d.ts +0 -11
- package/dist/components/Input/Input.stories.js +0 -113
- package/dist/components/Input/__tests__/Input.test.d.ts +0 -1
- package/dist/components/Input/__tests__/Input.test.js +0 -14
- package/dist/components/LinearProgress/LinearProgress.stories.d.ts +0 -14
- package/dist/components/LinearProgress/LinearProgress.stories.js +0 -43
- package/dist/components/LinearProgress/__tests__/LinearProgress.test.d.ts +0 -1
- package/dist/components/LinearProgress/__tests__/LinearProgress.test.js +0 -40
- package/dist/components/Link/__tests__/Link.test.d.ts +0 -1
- package/dist/components/Link/__tests__/Link.test.js +0 -15
- package/dist/components/List/__tests__/List.test.d.ts +0 -1
- package/dist/components/List/__tests__/List.test.js +0 -15
- package/dist/components/ListItem/__tests__/ListItem.test.d.ts +0 -1
- package/dist/components/ListItem/__tests__/ListItem.test.js +0 -15
- package/dist/components/ListItemButton/__tests__/ListItemButton.test.d.ts +0 -1
- package/dist/components/ListItemButton/__tests__/ListItemButton.test.js +0 -15
- package/dist/components/ListItemText/__tests__/ListItemText.test.d.ts +0 -1
- package/dist/components/ListItemText/__tests__/ListItemText.test.js +0 -15
- package/dist/components/MenuFlyout/MenuFlyout.stories.d.ts +0 -31
- package/dist/components/MenuFlyout/MenuFlyout.stories.js +0 -60
- package/dist/components/MenuFlyout/__tests__/MenuFlyout.test.d.ts +0 -1
- package/dist/components/MenuFlyout/__tests__/MenuFlyout.test.js +0 -42
- package/dist/components/Modal/Modal.stories.d.ts +0 -15
- package/dist/components/Modal/Modal.stories.js +0 -195
- package/dist/components/Modal/__tests__/Modal.test.d.ts +0 -1
- package/dist/components/Modal/__tests__/Modal.test.js +0 -17
- package/dist/components/ModelGridView/ModelGridView.stories.d.ts +0 -5
- package/dist/components/ModelGridView/ModelGridView.stories.js +0 -41
- package/dist/components/ModelGridView/__tests__/ModelGridView.test.d.ts +0 -1
- package/dist/components/ModelGridView/__tests__/ModelGridView.test.js +0 -48
- package/dist/components/Panel/Panel.stories.d.ts +0 -14
- package/dist/components/Panel/Panel.stories.js +0 -63
- package/dist/components/Panel/__tests__/Panel.test.d.ts +0 -1
- package/dist/components/Panel/__tests__/Panel.test.js +0 -74
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.d.ts +0 -7
- package/dist/components/ProgressIndicator/ProgressIndicator.stories.js +0 -45
- package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.d.ts +0 -1
- package/dist/components/ProgressIndicator/__tests__/ProgressIndicator.test.js +0 -32
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -10
- package/dist/components/RadioButton/RadioButton.stories.js +0 -38
- package/dist/components/RadioButton/__tests__/RadioButton.test.d.ts +0 -1
- package/dist/components/RadioButton/__tests__/RadioButton.test.js +0 -14
- package/dist/components/RadioGroup/__tests__/RadioGroup.test.d.ts +0 -1
- package/dist/components/RadioGroup/__tests__/RadioGroup.test.js +0 -15
- package/dist/components/Select/Select.stories.d.ts +0 -5
- package/dist/components/Select/Select.stories.js +0 -86
- package/dist/components/Select/__tests__/Select.test.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.test.js +0 -40
- package/dist/components/StatusChip/StatusChip.stories.d.ts +0 -51
- package/dist/components/StatusChip/StatusChip.stories.js +0 -59
- package/dist/components/StatusChip/__tests__/StatusChip.test.d.ts +0 -1
- package/dist/components/StatusChip/__tests__/StatusChip.test.js +0 -45
- package/dist/components/Step/__tests__/Step.test.d.ts +0 -1
- package/dist/components/Step/__tests__/Step.test.js +0 -15
- package/dist/components/StepLabel/__tests__/StepLabel.test.d.ts +0 -1
- package/dist/components/StepLabel/__tests__/StepLabel.test.js +0 -15
- package/dist/components/Stepper/Stepper.stories.d.ts +0 -21
- package/dist/components/Stepper/Stepper.stories.js +0 -38
- package/dist/components/Stepper/__tests__/Stepper.test.d.ts +0 -1
- package/dist/components/Stepper/__tests__/Stepper.test.js +0 -15
- package/dist/components/Tabs/Tabs.stories.d.ts +0 -6
- package/dist/components/Tabs/Tabs.stories.js +0 -56
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +0 -1
- package/dist/components/Tabs/__tests__/Tabs.test.js +0 -53
- package/dist/components/ThemeProvider/__tests__/Button.test.d.ts +0 -1
- package/dist/components/ThemeProvider/__tests__/Button.test.js +0 -15
- package/dist/components/Toast/Toast.stories.d.ts +0 -14
- package/dist/components/Toast/Toast.stories.js +0 -108
- package/dist/components/Toast/__tests__/Toast.test.d.ts +0 -1
- package/dist/components/Toast/__tests__/Toast.test.js +0 -48
- package/dist/components/Typography/Typography.stories.d.ts +0 -20
- package/dist/components/Typography/Typography.stories.js +0 -21
- package/dist/components/Typography/__tests__/Typography.test.d.ts +0 -1
- package/dist/components/Typography/__tests__/Typography.test.js +0 -16
- package/dist/components/UtilityRail/UtilityRail.stories.d.ts +0 -8
- package/dist/components/UtilityRail/UtilityRail.stories.js +0 -23
- package/dist/components/UtilityRail/__tests__/UtilityRail.test.d.ts +0 -1
- package/dist/components/UtilityRail/__tests__/UtilityRail.test.js +0 -18
- package/dist/modules.d.js +0 -1
- package/dist/setupTests.d.ts +0 -1
- package/dist/setupTests.js +0 -3
- package/dist/utils/tests/helpers.d.ts +0 -6
- package/dist/utils/tests/helpers.js +0 -32
package/package.json
CHANGED
|
@@ -1,140 +1,128 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veritone-ce/design-system",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.23",
|
|
4
4
|
"private": false,
|
|
5
|
+
"description": "Design System for Veritone CE",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"design system",
|
|
8
|
+
"ui library"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/veritone/design-system#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/veritone/design-system/issues"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+ssh://git@github.com/veritone/design-system.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"author": {
|
|
20
|
+
"name": "Veritone"
|
|
21
|
+
},
|
|
22
|
+
"main": "dist/index.js",
|
|
23
|
+
"module": "dist/index.js",
|
|
24
|
+
"types": "dist/index.d.ts",
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
5
28
|
"scripts": {
|
|
6
|
-
"
|
|
7
|
-
"type-check": "tsc",
|
|
8
|
-
"transpile": "babel src --out-dir dist --extensions '.ts,.tsx'",
|
|
9
|
-
"type-emit": "tsc --declaration --emitDeclarationOnly --declarationDir dist --noEmit false",
|
|
10
|
-
"build": "yarn type-check && yarn transpile && yarn type-emit && tsc-alias && cp src/assets/*.svg dist/assets/",
|
|
11
|
-
"lint": "eslint src",
|
|
29
|
+
"build": "yarn types:check:build && yarn transpile && yarn types:emit && tsc-alias",
|
|
12
30
|
"build-docs": "yarn build-storybook-docs",
|
|
13
|
-
"
|
|
14
|
-
"storybook": "start-storybook -p 6006 -s public",
|
|
15
|
-
"release": "auto shipit --base-branch=main",
|
|
16
|
-
"generate": "yarn plop --plopfile generators/plopfile.js",
|
|
17
|
-
"build-storybook": "build-storybook -s public",
|
|
18
|
-
"test-storybook": "test-storybook",
|
|
31
|
+
"build-storybook": "storybook build",
|
|
19
32
|
"build-storybook-docs": "build-storybook --docs",
|
|
20
|
-
"
|
|
33
|
+
"chromatic": "npx chromatic --project-token=2d24b3ec5211 --exit-zero-on-changes",
|
|
21
34
|
"commit": "cz",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
35
|
+
"lint": "eslint src",
|
|
36
|
+
"lint:fix": "prettier --write '**/*.{js,jsx,cjs,ts,tsx,css,md}' && eslint --fix '**/*.{js,jsx,ts,tsx}'",
|
|
37
|
+
"prepare": "husky install",
|
|
38
|
+
"release": "auto shipit --base-branch=main",
|
|
39
|
+
"start": "yarn storybook",
|
|
40
|
+
"storybook": "storybook dev -p 6006",
|
|
41
|
+
"test": "jest",
|
|
42
|
+
"test-storybook": "test-storybook",
|
|
43
|
+
"transpile": "babel src --config-file ./.build.babelrc --out-dir dist --extensions '.js,.jsx,.ts,.tsx'",
|
|
44
|
+
"types:check": "tsc --noEmit",
|
|
45
|
+
"types:check:build": "tsc --project tsconfig.build.json --noEmit",
|
|
46
|
+
"types:emit": "tsc --project tsconfig.build.json --declaration --emitDeclarationOnly --declarationDir dist --noEmit false"
|
|
47
|
+
},
|
|
48
|
+
"lint-staged": {
|
|
49
|
+
"*.{js,jsx,ts,tsx}": "eslint --cache --fix",
|
|
50
|
+
"*.{js,jsx,cjs,ts,tsx,css,md,mdx}": "prettier --write"
|
|
24
51
|
},
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"not op_mini all"
|
|
30
|
-
],
|
|
31
|
-
"development": [
|
|
32
|
-
"last 1 chrome version",
|
|
33
|
-
"last 1 firefox version",
|
|
34
|
-
"last 1 safari version"
|
|
35
|
-
]
|
|
52
|
+
"config": {
|
|
53
|
+
"commitizen": {
|
|
54
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
55
|
+
}
|
|
36
56
|
},
|
|
37
57
|
"dependencies": {
|
|
38
|
-
"@fontsource/dosis": "^4.5.10",
|
|
39
|
-
"@fontsource/nunito-sans": "^4.5.10",
|
|
40
|
-
"@fontsource/roboto": "^4.5.8",
|
|
41
58
|
"axios": "^1.2.1",
|
|
42
59
|
"react-dropzone": "^14.2.3"
|
|
43
60
|
},
|
|
44
61
|
"devDependencies": {
|
|
45
62
|
"@babel/cli": "^7.21.5",
|
|
46
63
|
"@babel/core": "^7.21.8",
|
|
47
|
-
"@babel/preset-env": "^7.
|
|
64
|
+
"@babel/preset-env": "^7.22.9",
|
|
48
65
|
"@babel/preset-react": "^7.18.6",
|
|
49
66
|
"@babel/preset-typescript": "^7.21.5",
|
|
50
67
|
"@commitlint/cli": "^17.0.3",
|
|
51
68
|
"@commitlint/config-conventional": "^17.0.3",
|
|
52
69
|
"@emotion/babel-plugin": "^11.10.5",
|
|
53
70
|
"@emotion/jest": "^11.10.5",
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
60
|
-
"@storybook/
|
|
61
|
-
"@storybook/
|
|
62
|
-
"@storybook/
|
|
63
|
-
"@storybook/
|
|
64
|
-
"@storybook/
|
|
65
|
-
"@storybook/
|
|
66
|
-
"@storybook/
|
|
71
|
+
"@emotion/react": "^11.10.4",
|
|
72
|
+
"@emotion/styled": "^11.10.4",
|
|
73
|
+
"@fontsource/dosis": "^5.0.5",
|
|
74
|
+
"@fontsource/nunito-sans": "^5.0.5",
|
|
75
|
+
"@mui/icons-material": "^5.10.6",
|
|
76
|
+
"@mui/material": "^5.10.8",
|
|
77
|
+
"@storybook/addon-a11y": "^7.0.27",
|
|
78
|
+
"@storybook/addon-essentials": "^7.0.27",
|
|
79
|
+
"@storybook/addon-interactions": "^7.0.27",
|
|
80
|
+
"@storybook/addon-links": "^7.0.27",
|
|
81
|
+
"@storybook/blocks": "^7.0.27",
|
|
82
|
+
"@storybook/react": "^7.0.27",
|
|
83
|
+
"@storybook/react-webpack5": "^7.0.27",
|
|
84
|
+
"@storybook/testing-library": "^0.0.14-next.2",
|
|
67
85
|
"@testing-library/jest-dom": "^5.14.1",
|
|
68
86
|
"@testing-library/react": "^13.4.0",
|
|
69
87
|
"@testing-library/user-event": "^13.2.1",
|
|
70
88
|
"@types/jest": "^27.0.1",
|
|
71
89
|
"@types/node": "^16.7.13",
|
|
90
|
+
"@types/react": "^18.0.0",
|
|
91
|
+
"@types/react-dom": "^18.0.0",
|
|
72
92
|
"@types/react-dropzone": "^5.1.0",
|
|
73
93
|
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
|
74
94
|
"@typescript-eslint/parser": "^5.45.0",
|
|
95
|
+
"@vitejs/plugin-react": "^4.0.3",
|
|
75
96
|
"auto": "^10.37.6",
|
|
76
97
|
"babel-jest": "^29.3.1",
|
|
77
|
-
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
78
98
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
79
|
-
"babel-plugin-macros": "^3.1.0",
|
|
80
|
-
"babel-plugin-named-exports-order": "^0.0.2",
|
|
81
99
|
"chromatic": "^6.10.1",
|
|
82
|
-
"cross-env": "^7.0.3",
|
|
83
100
|
"cz-conventional-changelog": "^3.3.0",
|
|
84
101
|
"eslint": "^8.45.0",
|
|
85
102
|
"eslint-config-prettier": "^8.5.0",
|
|
86
103
|
"eslint-plugin-prettier": "^4.2.1",
|
|
87
104
|
"eslint-plugin-react": "^7.32.2",
|
|
88
105
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
106
|
+
"eslint-plugin-storybook": "^0.6.12",
|
|
89
107
|
"husky": "8.0.2",
|
|
90
|
-
"install-peers-cli": "^2.2.0",
|
|
91
108
|
"jest": "^29.3.1",
|
|
92
109
|
"jest-environment-jsdom": "^29.3.1",
|
|
93
|
-
"plop": "^3.1.1",
|
|
94
110
|
"prettier": "^2.8.0",
|
|
95
111
|
"prop-types": "^15.8.1",
|
|
96
|
-
"react
|
|
112
|
+
"react": "^18.2.0",
|
|
113
|
+
"react-dom": "^18.2.0",
|
|
114
|
+
"storybook": "^7.0.27",
|
|
97
115
|
"tsc-alias": "^1.8.2",
|
|
98
116
|
"typescript": "^4.4.2",
|
|
99
|
-
"webpack": "^5.
|
|
117
|
+
"webpack": "^5.88.1"
|
|
100
118
|
},
|
|
101
119
|
"peerDependencies": {
|
|
102
120
|
"@emotion/react": "^11.10.4",
|
|
103
121
|
"@emotion/styled": "^11.10.4",
|
|
104
122
|
"@mui/icons-material": "^5.10.6",
|
|
105
123
|
"@mui/material": "^5.10.8",
|
|
106
|
-
"@types/react": "^18.0.0",
|
|
107
|
-
"@types/react-dom": "^18.0.0",
|
|
108
124
|
"react": "^18.2.0",
|
|
109
125
|
"react-dom": "^18.2.0"
|
|
110
126
|
},
|
|
111
|
-
"description": "Design System for Veritone CE",
|
|
112
|
-
"repository": {
|
|
113
|
-
"type": "git",
|
|
114
|
-
"url": "git+ssh://git@github.com/veritone/design-system.git"
|
|
115
|
-
},
|
|
116
|
-
"author": {
|
|
117
|
-
"name": "Veritone"
|
|
118
|
-
},
|
|
119
|
-
"license": "MIT",
|
|
120
|
-
"bugs": {
|
|
121
|
-
"url": "https://github.com/veritone/design-system/issues"
|
|
122
|
-
},
|
|
123
|
-
"homepage": "https://github.com/veritone/design-system#readme",
|
|
124
|
-
"keywords": [
|
|
125
|
-
"design system",
|
|
126
|
-
"ui library"
|
|
127
|
-
],
|
|
128
|
-
"main": "dist/index.js",
|
|
129
|
-
"module": "dist/index.js",
|
|
130
|
-
"files": [
|
|
131
|
-
"dist"
|
|
132
|
-
],
|
|
133
|
-
"types": "dist/index.d.ts",
|
|
134
|
-
"config": {
|
|
135
|
-
"commitizen": {
|
|
136
|
-
"path": "./node_modules/cz-conventional-changelog"
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
127
|
"readme": "ERROR: No README data found!"
|
|
140
128
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM13.674 16.5561L13.8146 15.9808C13.7422 16.0149 13.625 16.0543 13.4631 16.0991C13.3011 16.1438 13.1562 16.1662 13.0284 16.1662C12.7557 16.1662 12.5639 16.1214 12.4531 16.0319C12.3423 15.9425 12.2869 15.7741 12.2869 15.527C12.2869 15.429 12.304 15.2841 12.3381 15.0923C12.3722 14.9006 12.4105 14.7301 12.4531 14.5809L12.9773 12.7209C13.0284 12.5504 13.0636 12.3629 13.0827 12.1584C13.1019 11.9538 13.1115 11.8111 13.1115 11.7301C13.1115 11.3381 12.9741 11.0195 12.6992 10.7745C12.4244 10.5295 12.0334 10.407 11.5263 10.407C11.245 10.407 10.9467 10.457 10.6314 10.5572C10.316 10.6573 9.9858 10.7777 9.64062 10.9183L9.5 11.4936C9.60227 11.4552 9.72479 11.4148 9.86754 11.3722C10.0103 11.3295 10.1499 11.3082 10.2862 11.3082C10.5632 11.3082 10.7507 11.3551 10.8487 11.4489C10.9467 11.5426 10.9957 11.7088 10.9957 11.9474C10.9957 12.0795 10.9798 12.2255 10.9478 12.3853C10.9158 12.5451 10.8764 12.7145 10.8295 12.8935L10.3054 14.7599C10.2585 14.9559 10.2244 15.1317 10.2031 15.2873C10.1818 15.4428 10.1712 15.5952 10.1712 15.7443C10.1712 16.1278 10.3129 16.4442 10.5962 16.6935C10.8796 16.9428 11.277 17.0675 11.7883 17.0675C12.1207 17.0675 12.4126 17.0238 12.6641 16.9364C12.9155 16.8491 13.2521 16.7223 13.674 16.5561ZM13.5813 9.0039C13.8263 8.77592 13.9489 8.5 13.9489 8.17613C13.9489 7.85227 13.8263 7.57528 13.5813 7.34517C13.3363 7.11506 13.0412 7 12.696 7C12.3508 7 12.0547 7.11506 11.8075 7.34517C11.5604 7.57528 11.4368 7.85227 11.4368 8.17613C11.4368 8.5 11.5604 8.77592 11.8075 9.0039C12.0547 9.23189 12.3508 9.34588 12.696 9.34588C13.0412 9.34588 13.3363 9.23189 13.5813 9.0039Z" fill="#214167"/>
|
|
3
|
-
</svg>
|
package/dist/assets/warning.svg
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M17.075 17.075C18.8848 15.2651 20 12.7605 20 10C20 7.23949 18.8848 4.73492 17.075 2.92505C15.2651 1.11517 12.7605 0 10 0C7.23949 0 4.73492 1.11517 2.92505 2.92505C1.11517 4.73492 0 7.23949 0 10C0 12.7605 1.11517 15.2651 2.92505 17.075C4.73492 18.8848 7.23949 20 10 20C12.7605 20 15.2651 18.8848 17.075 17.075ZM11.3528 13.8574C11.3528 13.1079 10.7495 12.5046 10 12.5046C9.25046 12.5046 8.62889 13.1079 8.62889 13.8574C8.62889 14.6069 9.25046 15.2285 10 15.2285C10.7495 15.2285 11.3528 14.6069 11.3528 13.8574ZM10 11.1335C9.5064 11.1335 9.14077 10.7313 9.08592 10.2194L8.62889 6.1426C8.55576 5.42962 9.3053 4.77148 10 4.77148C10.6947 4.77148 11.4442 5.42962 11.3528 6.1426L10.9141 10.2194C10.8592 10.7313 10.4936 11.1335 10 11.1335Z" fill="#FFBB0A"/>
|
|
3
|
-
</svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _helpers = require("../../../utils/tests/helpers");
|
|
4
|
-
var _react = require("@testing-library/react");
|
|
5
|
-
var _ = _interopRequireDefault(require(".."));
|
|
6
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
7
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
-
describe('<Box />', () => {
|
|
9
|
-
it('should render the Box component', () => {
|
|
10
|
-
(0, _helpers.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
11
|
-
"data-testid": "box",
|
|
12
|
-
children: "Box"
|
|
13
|
-
}));
|
|
14
|
-
expect(_react.screen.getByTestId('box')).toBeInTheDocument();
|
|
15
|
-
});
|
|
16
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ComponentStory, Story, ComponentMeta } from '@storybook/react';
|
|
2
|
-
import BreadcrumbsComponent from '.';
|
|
3
|
-
declare const _default: ComponentMeta<({ links }: {
|
|
4
|
-
'data-testid'?: string | undefined;
|
|
5
|
-
links: {
|
|
6
|
-
href: string;
|
|
7
|
-
label: string;
|
|
8
|
-
}[];
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
-
export default _default;
|
|
11
|
-
export declare const Default: ComponentStory<typeof BreadcrumbsComponent> | Story;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Default = void 0;
|
|
7
|
-
var _ = _interopRequireDefault(require("."));
|
|
8
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
const links = [{
|
|
11
|
-
label: 'Home',
|
|
12
|
-
href: '/'
|
|
13
|
-
}, {
|
|
14
|
-
label: 'About',
|
|
15
|
-
href: '/about'
|
|
16
|
-
}, {
|
|
17
|
-
label: 'Contact',
|
|
18
|
-
href: '/contact'
|
|
19
|
-
}];
|
|
20
|
-
var _default = {
|
|
21
|
-
title: 'Components/BreadcrumbsComponent',
|
|
22
|
-
component: _.default,
|
|
23
|
-
argTypes: {
|
|
24
|
-
links: {
|
|
25
|
-
defaultValue: ['.pdf', '.format']
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
exports.default = _default;
|
|
30
|
-
const Default = ({
|
|
31
|
-
...args
|
|
32
|
-
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
33
|
-
...args,
|
|
34
|
-
links: links
|
|
35
|
-
});
|
|
36
|
-
exports.Default = Default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _helpers = require("../../../utils/tests/helpers");
|
|
4
|
-
var _react = require("@testing-library/react");
|
|
5
|
-
var _ = _interopRequireDefault(require(".."));
|
|
6
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
7
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
-
const links = [{
|
|
9
|
-
label: 'Home',
|
|
10
|
-
href: '/'
|
|
11
|
-
}, {
|
|
12
|
-
label: 'About',
|
|
13
|
-
href: '/about'
|
|
14
|
-
}, {
|
|
15
|
-
label: 'Contact',
|
|
16
|
-
href: '/contact'
|
|
17
|
-
}];
|
|
18
|
-
describe('<Breadcrumbs />', () => {
|
|
19
|
-
it('should render the Breadcrumbs component', () => {
|
|
20
|
-
(0, _helpers.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
21
|
-
links: links,
|
|
22
|
-
"data-testid": "breadcrumbs"
|
|
23
|
-
}));
|
|
24
|
-
expect(_react.screen.getByTestId('breadcrumbs')).toBeInTheDocument();
|
|
25
|
-
});
|
|
26
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
2
|
-
import { ButtonProps } from './';
|
|
3
|
-
declare const _default: ComponentMeta<({ children, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Contained: ComponentStory<({ children, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
6
|
-
export declare const Outlined: ComponentStory<({ children, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
-
export declare const Text: ComponentStory<({ children, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Text = exports.Outlined = exports.Contained = void 0;
|
|
7
|
-
var _material = require("@mui/material");
|
|
8
|
-
var _ = _interopRequireDefault(require("./"));
|
|
9
|
-
var _CalendarTodayOutlined = _interopRequireDefault(require("@mui/icons-material/CalendarTodayOutlined"));
|
|
10
|
-
var _react = require("react");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
// import { userEvent, within } from '@storybook/testing-library'
|
|
14
|
-
// import { expect } from '@storybook/jest'
|
|
15
|
-
var _default = {
|
|
16
|
-
title: 'Components/Button',
|
|
17
|
-
component: _.default,
|
|
18
|
-
// argType: {
|
|
19
|
-
// variant: `contained`,
|
|
20
|
-
// },
|
|
21
|
-
parameters: {
|
|
22
|
-
componentSubtitle: 'Clickable Button with many variations',
|
|
23
|
-
controls: {
|
|
24
|
-
exclude: ['variant', 'classes']
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
exports.default = _default;
|
|
29
|
-
const previewProps = [{}, {
|
|
30
|
-
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CalendarTodayOutlined.default, {})
|
|
31
|
-
}, {
|
|
32
|
-
endIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CalendarTodayOutlined.default, {})
|
|
33
|
-
}];
|
|
34
|
-
const Template = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
35
|
-
sx: {
|
|
36
|
-
display: `grid`,
|
|
37
|
-
gridTemplateColumns: `repeat(4, min-content)`,
|
|
38
|
-
justifyItems: `flex-start`,
|
|
39
|
-
gap: 2
|
|
40
|
-
},
|
|
41
|
-
children: previewProps.map((props, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
42
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
43
|
-
...props,
|
|
44
|
-
...args,
|
|
45
|
-
children: "Button"
|
|
46
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
47
|
-
...props,
|
|
48
|
-
color: `error`,
|
|
49
|
-
...args,
|
|
50
|
-
children: "Button"
|
|
51
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
52
|
-
...props,
|
|
53
|
-
disabled: true,
|
|
54
|
-
...args,
|
|
55
|
-
children: "Button"
|
|
56
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
57
|
-
...props,
|
|
58
|
-
isLoading: true,
|
|
59
|
-
...args,
|
|
60
|
-
children: "Button"
|
|
61
|
-
})]
|
|
62
|
-
}, index))
|
|
63
|
-
});
|
|
64
|
-
const Contained = Template.bind({});
|
|
65
|
-
exports.Contained = Contained;
|
|
66
|
-
Contained.args = {
|
|
67
|
-
variant: 'contained'
|
|
68
|
-
};
|
|
69
|
-
const Outlined = Template.bind({});
|
|
70
|
-
exports.Outlined = Outlined;
|
|
71
|
-
Outlined.args = {
|
|
72
|
-
variant: 'outlined'
|
|
73
|
-
};
|
|
74
|
-
const Text = Template.bind({});
|
|
75
|
-
exports.Text = Text;
|
|
76
|
-
Text.args = {
|
|
77
|
-
variant: `text`
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
/*
|
|
81
|
-
* New story using the play function.
|
|
82
|
-
* See https://storybook.js.org/docs/react/writing-stories/play-function
|
|
83
|
-
* to learn more about the play function.
|
|
84
|
-
*/
|
|
85
|
-
// export const WithInteractions = (args) => <Button {...args} />;
|
|
86
|
-
// export const WithInteractions = Template.bind({})
|
|
87
|
-
// WithInteractions.args = {
|
|
88
|
-
// href: 'http://storybook.js.org',
|
|
89
|
-
// }
|
|
90
|
-
|
|
91
|
-
// WithInteractions.play = async ({ canvasElement }) => {
|
|
92
|
-
// // Assigns canvas to the component root element
|
|
93
|
-
// const canvas = within(canvasElement)
|
|
94
|
-
// await userEvent.click(canvas.getByRole('link'))
|
|
95
|
-
// expect(canvas.getByRole('link')).toHaveAttribute(
|
|
96
|
-
// 'href',
|
|
97
|
-
// 'http://storybook.js.org',
|
|
98
|
-
// )
|
|
99
|
-
// }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _helpers = require("../../../utils/tests/helpers");
|
|
4
|
-
var _react = require("@testing-library/react");
|
|
5
|
-
var _ = _interopRequireDefault(require(".."));
|
|
6
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
7
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
-
describe('<Button />', () => {
|
|
9
|
-
it('should render the Button component', () => {
|
|
10
|
-
(0, _helpers.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
11
|
-
children: "Button"
|
|
12
|
-
}));
|
|
13
|
-
expect(_react.screen.getByText('Button')).toBeInTheDocument();
|
|
14
|
-
});
|
|
15
|
-
it('should render error Button component', () => {
|
|
16
|
-
(0, _helpers.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
17
|
-
color: "error",
|
|
18
|
-
children: "Button"
|
|
19
|
-
}));
|
|
20
|
-
expect(_react.screen.getByText('Button')).toBeInTheDocument();
|
|
21
|
-
});
|
|
22
|
-
it('should render loading Button component', () => {
|
|
23
|
-
(0, _helpers.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
24
|
-
isLoading: true,
|
|
25
|
-
children: "Button"
|
|
26
|
-
}));
|
|
27
|
-
expect(_react.screen.getByTestId('loading-indicator')).toBeInTheDocument();
|
|
28
|
-
});
|
|
29
|
-
it('should render outlined Button component', () => {
|
|
30
|
-
(0, _helpers.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
31
|
-
variant: "outlined",
|
|
32
|
-
children: "Button"
|
|
33
|
-
}));
|
|
34
|
-
expect(_react.screen.getByText('Button')).toBeInTheDocument();
|
|
35
|
-
});
|
|
36
|
-
it('should render error outlined Button component', () => {
|
|
37
|
-
(0, _helpers.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
38
|
-
variant: "outlined",
|
|
39
|
-
color: "error",
|
|
40
|
-
children: "Button"
|
|
41
|
-
}));
|
|
42
|
-
expect(_react.screen.getByText('Button')).toBeInTheDocument();
|
|
43
|
-
});
|
|
44
|
-
it('should render text Button component', () => {
|
|
45
|
-
(0, _helpers.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
46
|
-
variant: "text",
|
|
47
|
-
children: "Button"
|
|
48
|
-
}));
|
|
49
|
-
expect(_react.screen.getByText('Button')).toBeInTheDocument();
|
|
50
|
-
});
|
|
51
|
-
it('should render error text Button component', () => {
|
|
52
|
-
(0, _helpers.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
53
|
-
variant: "text",
|
|
54
|
-
color: "error",
|
|
55
|
-
children: "Button"
|
|
56
|
-
}));
|
|
57
|
-
expect(_react.screen.getByText('Button')).toBeInTheDocument();
|
|
58
|
-
});
|
|
59
|
-
});
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
-
declare const _default: ComponentMeta<({ label, ...props }: import(".").CheckboxProps) => import("react/jsx-runtime").JSX.Element>;
|
|
3
|
-
export default _default;
|
|
4
|
-
export declare const Default: ComponentStory<({ label, ...props }: import(".").CheckboxProps) => import("react/jsx-runtime").JSX.Element>;
|
|
5
|
-
export declare const WithoutLabel: ComponentStory<({ label, ...props }: import(".").CheckboxProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.WithoutLabel = exports.Default = void 0;
|
|
7
|
-
var _material = require("@mui/material");
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _ = _interopRequireDefault(require("."));
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
var _default = {
|
|
13
|
-
title: 'Components/Checkbox',
|
|
14
|
-
component: _.default
|
|
15
|
-
};
|
|
16
|
-
exports.default = _default;
|
|
17
|
-
const Template = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
18
|
-
sx: {
|
|
19
|
-
display: `grid`,
|
|
20
|
-
gridTemplateRows: `repeat(5, min-content)`,
|
|
21
|
-
gap: 2
|
|
22
|
-
},
|
|
23
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.default.Fragment, {
|
|
24
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
25
|
-
...args
|
|
26
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
27
|
-
...args,
|
|
28
|
-
checked: true
|
|
29
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
30
|
-
...args,
|
|
31
|
-
indeterminate: true
|
|
32
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
33
|
-
...args,
|
|
34
|
-
disabled: true
|
|
35
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
36
|
-
...args,
|
|
37
|
-
disabled: true,
|
|
38
|
-
checked: true
|
|
39
|
-
})]
|
|
40
|
-
})
|
|
41
|
-
});
|
|
42
|
-
const Default = Template.bind({});
|
|
43
|
-
exports.Default = Default;
|
|
44
|
-
Default.args = {
|
|
45
|
-
label: 'Label'
|
|
46
|
-
};
|
|
47
|
-
const WithoutLabel = Template.bind({});
|
|
48
|
-
exports.WithoutLabel = WithoutLabel;
|
|
49
|
-
WithoutLabel.args = {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _helpers = require("../../../utils/tests/helpers");
|
|
4
|
-
var _react = require("@testing-library/react");
|
|
5
|
-
var _ = _interopRequireDefault(require(".."));
|
|
6
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
7
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
-
describe('<Checkbox />', () => {
|
|
9
|
-
it('should render the Checkbox component', () => {
|
|
10
|
-
(0, _helpers.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
11
|
-
"data-testid": "checkbox"
|
|
12
|
-
}));
|
|
13
|
-
expect(_react.screen.getByTestId('checkbox')).toBeInTheDocument();
|
|
14
|
-
});
|
|
15
|
-
});
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = exports.Default = void 0;
|
|
7
|
-
var _ = _interopRequireDefault(require("."));
|
|
8
|
-
var _Box = _interopRequireDefault(require("../Box"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
var _default = {
|
|
12
|
-
title: 'Components/CustomSlider',
|
|
13
|
-
component: _.default,
|
|
14
|
-
argTypes: {
|
|
15
|
-
value: {
|
|
16
|
-
control: {
|
|
17
|
-
type: 'range',
|
|
18
|
-
min: 0,
|
|
19
|
-
max: 3,
|
|
20
|
-
step: 0.1
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
onChange: {
|
|
24
|
-
action: 'onChange'
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
exports.default = _default;
|
|
29
|
-
const Template = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
30
|
-
display: "flex",
|
|
31
|
-
justifyContent: "center",
|
|
32
|
-
alignItems: "center",
|
|
33
|
-
height: "100vh",
|
|
34
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
35
|
-
...args
|
|
36
|
-
})
|
|
37
|
-
});
|
|
38
|
-
const onChangeSlider = (event, value) => {
|
|
39
|
-
console.log('onChangeSlider', event, value);
|
|
40
|
-
};
|
|
41
|
-
const Default = Template.bind({});
|
|
42
|
-
exports.Default = Default;
|
|
43
|
-
Default.args = {
|
|
44
|
-
value: 1,
|
|
45
|
-
onChange: onChangeSlider,
|
|
46
|
-
max: 3,
|
|
47
|
-
step: 0.1
|
|
48
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _helpers = require("../../../utils/tests/helpers");
|
|
4
|
-
var _react = require("@testing-library/react");
|
|
5
|
-
var _ = _interopRequireDefault(require(".."));
|
|
6
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
7
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
-
describe('<Drawer />', () => {
|
|
9
|
-
it('should render the Drawer component', () => {
|
|
10
|
-
(0, _helpers.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
|
|
11
|
-
"data-testid": "drawer",
|
|
12
|
-
open: true
|
|
13
|
-
}));
|
|
14
|
-
expect(_react.screen.getByTestId('drawer')).toBeInTheDocument();
|
|
15
|
-
});
|
|
16
|
-
});
|